Inkling-2-Mini-Opus-Reasoning-GGUF
A LoRA for Inkling-2-Mini that makes it think shorter. It was trained with SFT on short Opus reasoning traces, at the template's default effort (0.9).
- 4.4× less thinking on code: 645 → 147 thinking tokens on average, with the same 20/20 tests passed.
- 2.7× less thinking on general prompts: 2,648 → 983 thinking tokens over 5 mixed prompts.
| Method | LoRA SFT, rank 32, attention only, on Tinker |
| Data | 10,464 rows / 7.5M tokens, deduplicated: Roman1111111/claude-opus-4.6-10000x, lordx64/reasoning-distill-claude-opus-4-7-max, nohurry/Opus-4.6-Reasoning-3000x-filtered |
| Training | 1 epoch (327 steps), lr 5e-4 linear decay, batch 32, max length 8,192 |
| Files | Full model with the LoRA merged, in 4 sizes (below), mmproj-F16.gguf (image input), lora/ (llama.cpp --lora GGUF and PEFT adapter) |
Thinking length, base vs this LoRA
Default settings (effort 0.9), temperature 0.7. 10 small Python tasks, 2 samples each; the code was run against asserts.
| Task | Base thinking tokens | Opus-Reasoning | Tests passed (base / LoRA) |
|---|---|---|---|
| Fibonacci, O(log n) | 1,238 | 184 | 2/2 / 2/2 |
| Bracket matching | 1,192 | 58 | 2/2 / 2/2 |
| Flatten nested list | 1,018 | 85 | 2/2 / 2/2 |
| Two-sum | 656 | 433 | 2/2 / 2/2 |
| Longest common subsequence | 516 | 115 | 2/2 / 2/2 |
| Merge intervals | 457 | 122 | 2/2 / 2/2 |
| Sieve of Eratosthenes | 442 | 107 | 2/2 / 2/2 |
| Palindrome check | 362 | 56 | 2/2 / 2/2 |
| Roman to int | 347 | 110 | 2/2 / 2/2 |
| Binary search | 222 | 198 | 2/2 / 2/2 |
| Average | 645 | 147 | 20/20 / 20/20 |
Example: the pens question.
- Base thinking: "The shop sells pens at 3 for $2. So each group of 3 pens costs $2. For 18 pens: 18 ÷ 3 = 6 groups. 6 groups × $2 = $12. … This is a simple math problem. Let me verify: 3 for $2, so 1 pen = $2/3. 18 × $2/3 = $36/3 = $12. Yes, $12."
- This LoRA's thinking: "18 pens at 3 for $2 → 18/3 × $2 = $12."
Standard benchmarks
On Tinker (BF16), temperature 0.7, up to 16K new tokens, 1 sample per problem, effort 0.9.
| Benchmark | Base | Opus-Reasoning | Base thinking tokens (avg) | Opus-Reasoning thinking tokens (avg) |
|---|---|---|---|---|
| MATH-500 (500) | 97.2% | 90.0% | 1,346 | 783 |
| HumanEval+ (164) | 94.5% | 81.7% | 1,563 | 409 |
Files
| File | Size | Fits in (RAM + VRAM together) |
|---|---|---|
Inkling-2-Mini-Opus-Reasoning-Q2_K_XL.gguf | 9.9 GB | 16 GB |
Inkling-2-Mini-Opus-Reasoning-IQ3_XXS.gguf | 12.3 GB | 16 GB, tight |
Inkling-2-Mini-Opus-Reasoning-Q3_K_XL.gguf | 14.3 GB | 24 GB |
Inkling-2-Mini-Opus-Reasoning-Q4_K_M.gguf | 17.2 GB | 24 GB |
mmproj-F16.gguf | 0.6 GB | image input (the base model's projector) |
Each file is the matching unsloth/Inkling-2-Mini-GGUF UD quant with the LoRA merged into the attention weights, which stay at F16 (about +0.6 GB per file).
Quick start
Pick a size from the table and put its name after the colon.
llama.cpp (b12622 or newer):
llama-server -hf banyohavlusu23/Inkling-2-Mini-Opus-Reasoning-GGUF:Q3_K_XL --jinja
Ollama:
ollama run hf.co/banyohavlusu23/Inkling-2-Mini-Opus-Reasoning-GGUF:Q3_K_XL
LM Studio: search Inkling-2-Mini-Opus-Reasoning-GGUF and pick a size.
8 GB GPU + 32 GB RAM (measured on an RTX 4060 laptop: 17.7 tok/s at 64K context, against 4.6 tok/s with --fit). Layers 6-17 run three times per token, so the experts of layers 6-14 (as many as fit) stay on the GPU and the other experts go to system RAM:
llama-server -m Inkling-2-Mini-Opus-Reasoning-Q4_K_M.gguf --jinja -ngl 99 -fa on \
-ctk q8_0 -ctv q8_0 -ub 128 -c 65536 -np 1 \
-ot "blk\.([0-5]|1[5-9]|2[0-3])\.ffn_.*_exps\.=CPU"
LoRA only, on top of any unsloth/Inkling-2-Mini-GGUF quant:
llama-server -hf unsloth/Inkling-2-Mini-GGUF:Q4_K_XL \
--lora lora/Inkling-2-Mini-Opus-Reasoning-LoRA-F16.gguf --jinja
To bake the LoRA into your own quant (Q8, IQ4, anything else):
llama-export-lora -m Inkling-2-Mini-UD-Q8_K_XL.gguf \
--lora lora/Inkling-2-Mini-Opus-Reasoning-LoRA-F16.gguf \
-o Inkling-2-Mini-Opus-Reasoning-Q8_K_XL.gguf
Transformers + PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = AutoModelForCausalLM.from_pretrained("thinkingmachines/Inkling-2-Mini", device_map="auto")
model = PeftModel.from_pretrained(base, "banyohavlusu23/Inkling-2-Mini-Opus-Reasoning-GGUF", subfolder="lora")
Credits
Base model: Thinking Machines (Apache 2.0). Quantized base files: unsloth. Data: the three datasets above (MIT / Apache 2.0).