Views
No views yet
Tiiny/SmallThinker-4BA0.6B-Instruct.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.safetensors shards, tokenizer files, config, and custom
SmallThinker modeling code.
Code:https://github.com/sasa200004/reap-smallthinkerTiiny/SmallThinker-4BA0.6B-Instructtheblackcat102/evol-codealpaca-v10.206 / 320.1875264model_max_length=2048batches_per_category=128batch_size=1batch_group_size=8truncate=false| 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. |
12.284 seconds
across the three prompts on the test machine with CPU offload.trust_remote_code=True.1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3repo_id = "sasa2000/SmallThinker-4BA0.6B-Instruct-REAP-0.20"
4
5tokenizer = AutoTokenizer.from_pretrained(repo_id, trust_remote_code=True)
6model = AutoModelForCausalLM.from_pretrained(
7 repo_id,
8 trust_remote_code=True,
9 torch_dtype="auto",
10 device_map="auto",
11)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"from transformers.cache_utils import HybridCacheLossKwargs, 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.