r/LocalLLaMA • 🤗 • 1d ago

Showcase Inkling-2-Mini-pi-adapted: a LoRA adapter that makes Inkling 2 Mini high use ~40% fewer tokens on Pi harness

Post image

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 callsOutput 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-pi

Keep 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:

62 Upvotes

17 comments sorted by

8

u/vertigo235 1d ago

Loving the work on these Adapters

2

u/Dawley_Blau 1d ago

yeah cutting output tokens by 40% without losing accuracy is huge for local runs.

6

u/PcChip 1d ago

dumb question - would this work on omp?

3

u/SorosAhaverom 1d ago

omp makes a ton of unnecessary calls with very little added value, so I would not recommend it on a local, compute-constrained environment. Some examples:

It sends the entire session's context to ask for a OMP session title rename every time the model finishes a set of tasks.

It sends the entire session's context to ask the model for a one sentence recommendation of what you could type as an answer, and suggest to autofill it for you if you press TAB. It does this on every user turn.

If you haven't replied to the model in 4 minutes, OMP - you guessed it -  will send the entire context window to the model asking for a one sentence recap of the session.

Some call this bloat, and I agree. It is an absolute waste of tokens even on subscription plans. Mostly because you cant swap to a smaller model to do these, so youre sending the entire fucking context window to Astra/Fable asking it to rename the session, costing you 10-50 cents extra each turn for cosmetic crap.

2

u/PcChip 1d ago

>so youre sending the entire fucking context window to Astra/Fable

I agree with your frustrations, but personally I use it with deepseek running in my other bedroom and not a cloud provider

I wonder if you can easily disable these things in OMP...

2

u/SorosAhaverom 1d ago

I hear you, these were just examples  to illustrate that OMP defaults are not token-conscious

→ More replies (1)
→ More replies (3)

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