Skip to content

skills: add slice-model - #30677

Merged
ngxson merged 3 commits into
masterfrom
xsn/skill_slice_model
Oct 17, 2026
Merged

ngxson merged 3 commits into
masterfrom
xsn/skill_slice_model

Conversation

@ngxson

@ngxson ngxson commented Oct 16, 2026

Copy link
Copy Markdown
Collaborator

Overview

Add slice-model which allows downloading a slice of a given model for local testing

For example, if HF safetensors model is 32B, this script allow slicing just some layers and only download the necessary tensors, resulting in a 1B model that can run locally.

The main benefit of this approach compared to generating a random weight:

  • config.json stays the same (sometimes transformers can generate different json based on which version is running)
  • Same numerical range as real model

Disclosure: I've been already using this technique for testing many models

Requirements

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Oct 16, 2026
@ngxson
ngxson merged commit ea0c4c2 into master Oct 17, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant