Downloads · 30 days
19
4% of all-time downloads
sasa2000/SmallThinker-4BA0.6B-Instruct-REAP-0.20
SmallThinker-4BA0.6B-Instruct-REAP-0.20 is a text generation model from sasa2000. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This repository contains a REAP-pruned checkpoint derived from Tiiny/SmallThinker-4BA0.6B-Instruct.
Downloads · 30 days
19
4% of all-time downloads
All-time downloads
499
Public
Parameters
3.4B
6.7 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors6.7 GB · 100%
From the Hugging Face model README
This repository contains a REAP-pruned checkpoint derived from
Tiiny/SmallThinker-4BA0.6B-Instruct.
The requested pruning ratio was 0.20. Because SmallThinker has 32 primary
experts per layer and REAP prunes an integer number of experts, the actual
pruning is 6 / 32 = 0.1875. The output directory is therefore named with the
rounded effective ratio 0.19.
The files in this repository are the model files directly at repository root,
including the safetensors shards, tokenizer files, config, and custom
SmallThinker modeling code.
Code:https://github.com/sasa200004/reap-smallthinker
This pruned checkpoint was prepared in Codex with GPT5.5 assistance at the repository owner's direction. Codex was used to adapt the REAP workflow for SmallThinker, run pruning and smoke evaluation, and prepare the upload artifacts.
Tiiny/SmallThinker-4BA0.6B-Instructtheblackcat102/evol-codealpaca-v10.206 / 320.1875264model_max_length=2048batches_per_category=128batch_size=1batch_group_size=8truncate=falseGreedy generation was checked on Japanese, English, and Chinese prompts.
| Language | Language check | Notes |
|---|---|---|
| Japanese | OK | Understands the language, but output can become repetitive or partially degraded. |
| English | OK | Most stable among the three tested languages. |
| Chinese | OK | Produces Chinese answers, though sentence-count instructions may not be followed exactly. |
Average generation time in the local smoke run was about 12.284 seconds
across the three prompts on the test machine with CPU offload.
This model uses custom code, so load it with trust_remote_code=True.
from transformers import AutoModelForCausalLM, AutoTokenizer
repo_id = "sasa2000/SmallThinker-4BA0.6B-Instruct-REAP-0.20"
tokenizer = AutoTokenizer.from_pretrained(repo_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
repo_id,
trust_remote_code=True,
torch_dtype="auto",
device_map="auto",
)
This checkpoint uses Hugging Face custom modeling code. If loading in Google
Colab or another notebook environment fails while importing
modeling_smallthinker.py with an error such as
cannot import name 'HybridCache' from 'transformers.cache_utils', the installed
Transformers package is too old for the SmallThinker custom code. Upgrade
Transformers and restart the runtime before loading the model:
!pip -q install -U "transformers>=4.55.0" "accelerate>=1.7.0" "safetensors"
After restarting, this import should succeed:
from transformers.cache_utils import HybridCache
If your installed Transformers version raises a later import error involving
LossKwargs, upgrade Transformers or apply an equivalent compatibility shim.
The local pruning run was tested with transformers==4.55.0 plus a REAP-side
compatibility shim. GGUF runtimes may work even when this Python loading path
fails, because GGUF does not execute Hugging Face modeling_smallthinker.py.
This is an experimental pruned checkpoint. It was validated with load and short generation smoke tests, not a full benchmark suite. Quality can vary by language and task, especially in Japanese after pruning.