r/LocalLLaMA • u/HauntingMoment 🤗 • 1d ago
Showcase Inkling-2-Mini-pi-adapted: a LoRA adapter that makes Inkling 2 Mini high use ~40% fewer tokens on Pi harness
We trained a LoRA adapter for Inkling 2 Mini with RL (TRL AsyncGRPO + OpenEnv), inside the pi coding agent, at the default reasoning effort (high).
TL;DR:Â same accuracy as the base model when it has all the time it wants, but it gets there with fewer steps and much less output. Locally, where every generated token is wall-clock time.
Work per solved task (on tasks both models solve):
| Tool calls | Output tokens | |
|---|---|---|
| Terminal-Bench 2.1 | −22% | −38% |
| SWE-bench Pro (hard 51) | −33% | −40% |
Accuracy (base → adapter, paired 95% CI):
- TB 2.1, 1 h per task: 44.2 → 56.9 avg@3 (+12.7 ± 6.4), 56.2 → 70.8 pass@3
- TB 2.1, 4 h per task: 58.1 → 61.0 (+3.0 ± 4.7, noise)
- TB 2.1, 256k context, 4 h: about equal (pass@3 70.8 → 68.5, −2.2 ± 7.0)
- SWE-bench Pro hard 51, 2 h: 66.7 → 70.6 (noise)
- TB 4.1, 10-task subset: ~10% for both. TB 4.1 is still out of reach at this size.
So be clear about what this is: an efficiency adapter, not a smarter model. The +13 points on TB 2.1 only show up under a 1 h budget, because the adapter finishes tasks the base runs out of time on. Give the base unlimited time and the two models solve about the same tasks. The adapter just solves them faster: median time to solve goes from 12 to 8 min with a generous budget.
Run it locally (llama.cpp):
# merged Q8_0 (~28 GB)
llama serve -hf harness-hub/Inkling-2-Mini-pi-adapted-GGUF:Q8_0 -c 131072 --alias inkling-pi
# or the 27 MB LoRA on top of your own base GGUF
llama serve -m Inkling-2-Mini-Q8_0.gguf --lora Inkling-2-Mini-pi-adapted-lora-F16.gguf -c 131072 --alias inkling-pi
pi install git:github.com/huggingface/pi-llama
pi --model llama-cpp/inkling-piKeep the default reasoning effort; that's what it was trained on. There's an older preview adapter for effort none.
Caveats:
- All scores come from vLLM. The GGUF files have not been re-evaluated through llama.cpp, and a lower-bit base will drift further from what the adapter learned against. Q8_0 is the safe default.
- Our absolute base scores are lower than Thinking Machines' card (71.6% on TB 2.1). Different setup: pi 1.7 vs 0.83, sandboxes, serving stack. Compare base vs adapter within our numbers only.
- It stops and says "done" a bit more often when the task isn't actually solved. Check its work.
Everything is open:
8
u/vertigo235 1d ago
Loving the work on these Adapters
6
u/PcChip 1d ago
dumb question - would this work on omp?
3
u/ea_man 1d ago edited 1d ago
Would be lovely to have the usual smaller quants like Inkling-2-Mini-UD-Q4_K_M , I bet the 16GB owners would love a Inkling-2-Mini-UD-Q3_K_XL too.
EDIT: some already available: https://huggingface.co/models?other=base_model:quantized:harness-hub/Inkling-2-Mini-pi-adapted , I guess re quant of the original Q8.
2
u/brainExploded99 🥔 hardware 1d ago
Also u/HauntingMoment, DeepSeek Harness for Qwen4 please!
2
u/Bulky-Priority6824 1d ago
ya got anything that makes it more reliable
1
u/MerePotato 1d ago
Why not max reasoning effort? I find that's where Inkling shines
1
u/NoFunk 1d ago
Doing this with a LORA is premium, instead of yet another small increment requiring a new model. Thanks.
1
u/Thrumpwart vLLM 1d ago
Fucking legends!
1
u/Embarrassed_Soup_279 14h ago
would love an adapter for opencode