RL-trained LoRA cuts Inkling 2 Mini's output tokens ~40% and solves tasks 1.5x faster

HauntingMoment · reddit · 2026-12-01

A developer trained a LoRA adapter for Inkling 2 Mini with RL (TRL AsyncGRPO + OpenEnv) inside the pi coding agent at default high reasoning effort. It's an efficiency adapter, not a smarter model: similar solvability, but fewer steps and far less output — and locally, every generated token is wall-clock time.

Per solved task (tasks both models solve): Terminal-Bench 2.1 tool calls −22%, output tokens −38%; SWE-bench Pro hard 51: −33% / −40%.

Accuracy (paired 95% CI): TB 2.1 at 1 h budget: 44.2 → 56.9 avg@3 (+12.7 ± 6.4), pass@3 56.2 → 70.8. With 4 h the gap shrinks to noise (+3.0 ± 4.7) — the gain is speed under a time limit. 256k-context and SWE-bench Pro hard 51 roughly equal. TB 4.1 10% for both, still out of reach at this size. Median time-to-solve drops from 12 to 8 minutes.

Run locally (llama.cpp): merged 28 GB Q80 GGUF, or the 27 MB LoRA on your own base GGUF, plus the pi-llama plugin. Keep default reasoning effort.

Caveats: all scores from vLLM; GGUFs not re-evaluated in llama.cpp; base absolute scores differ from the official card (different setup — compare internally only); the adapter says "done" more often on unsolved tasks.

Adapter, GGUF, training data (UltraTerminals) and recipe are all open.

Related event: Hugging Face open-sources RL-trained LoRA adapter that adapts Inkling-2-Mini to the pi coding agent(21 posts)→

Original post →

More from coding & agent

coding & agent channel →