Inkling-2-Mini-pi-adapted: What the Pi Coding LoRA Really Changes
Inkling-2-Mini-pi-adapted is a Hugging Face LoRA that teaches Inkling-2-Mini to work efficiently inside the pi coding agent. Its one-hour Terminal-Bench 2.1 pass@3 rises from 56.2% to 70.8%, but the four-hour gain is not significant. We cover the verified numbers, training recipe, serving commands, and caveats.
View 3 referencesAllow the functional cookie to save your likes. Privacy details
What is Inkling-2-Mini-pi-adapted?
Inkling-2-Mini-pi-adapted is a LoRA adapter for Thinking Machines Lab's Inkling-2-Mini, trained with reinforcement learning to act as the model behind the pi coding agent at reasoning effort "high." It is Apache 2.0 licensed and published by harness-hub on Hugging Face.
It is not a new base model and not a generally smarter version of Inkling-2-Mini. The model card says plainly that with a generous time budget it solves about as many tasks as the base model. What changes is how much work it does to get there.
That distinction is the key to reading every number in this article: the adapter buys efficiency under deadlines, not raw capability.
What does the adapter actually change?
On Terminal-Bench 2.1 with a one-hour limit per task, pass@3 rises from 56.2% to 70.8%, average@3 rises from 44.2% to 56.9%, and agent timeouts fall from 124 to 67 of 267 attempts. Each figure is paired, meaning base and adapter ran on the same tasks under the same settings.
The one-hour result is the headline. The model card reports +12.7 ± 6.4 points on avg@3 and +14.6 ± 8.0 on pass@3. On tasks both models solve in the four-hour evaluations, tool calls fall by 22% on Terminal-Bench 2.1 and 33% on SWE-bench Pro hard 51, while output tokens fall by 38% and 40%.
Time to a solution also drops: from 17 to 10 minutes on average under the one-hour budget, and from a 12-minute to an 8-minute median with a generous budget.
When does the advantage disappear?
The gain is significant only under the one-hour budget. At four hours, avg@3 moves from 58.1% to 61.0% (+3.0 ± 4.7, not significant), and in a 256k-context four-hour run the adapter is slightly behind the base model. That pattern is more useful than the headline number alone.
The card breaks this down further. The one-hour improvement comes mostly from the 55 medium-difficulty tasks (+14.5 ± 8.3 points); the gain on hard tasks is within noise. With four hours, the base model catches up on the tasks that previously timed out. With a 256k context and 64k output per turn, accuracy is about equal while median solve time still drops 36%.
So the correct claim is: this adapter finishes sooner and wastes fewer tokens, which matters when you have real deadlines. It does not raise the ceiling on difficult tasks.
How was Inkling-2-Mini-pi-adapted trained?
It was trained with asynchronous GRPO in TRL using LoRA, on Harbor tasks executed inside HF Sandboxes with the pi harness at reasoning effort "high." The dataset and training settings are documented in the repository metadata and the accompanying methodology post.
The repository metadata lists 531 agentic coding tasks (SWE-smith Python 363, SWE-smith Go 159, Tasksmith 9) plus 900 cybersecurity tasks covering Cedar and OpenFGA authorization. The related UltraTerminals release contains 2,597 reinforcement-learning environments. Coverage reporting from Ashutosh AI identifies NVIDIA B300 GPUs as the training hardware.
The team ran a contamination check after training: no training task shared a task, repository, image, or test file with the evaluation sets, and the highest instruction overlap was a word 5-gram Jaccard of 0.0045. They note honestly that exclusion was verified after the fact rather than built into dataset construction.
How do you serve the adapter with pi?
You download the vLLM-specific adapter files, serve Inkling-2-Mini with --enable-lora, and point pi at the local OpenAI-compatible endpoint with "api": "openai-completions". The steps below are the configuration used for the published evaluations, so deviating from them changes the comparison. Follow it exactly for a fair test.
The documented setup uses a vLLM nightly:
hf download harness-hub/Inkling-2-Mini-pi-adapted --include "vllm/*" --local-dir inkling-pi
vllm serve thinkingmachines/Inkling-2-Mini \
--enable-lora --max-lora-rank 32 --lora-modules inkling-pi=./inkling-pi/vllm \
--enable-auto-tool-choice --tool-call-parser inkling --reasoning-parser inkling \
--max-model-len 131072
Then install pi with Node.js 22.19 or newer, add a provider entry with baseUrl set to http://localhost:8000/v1 and "api": "openai-completions", and run:
pi --provider local --model inkling-pi --print "Find out why the tests in tests/test_parser.py fail and fix the bug."
The openai-completions setting matters: without it pi uses the Responses API, which this adapter was not trained or evaluated with. Do not set reasoning effort to "none" — use the preview adapter for that.
What are the alternative ways to run it?
You can serve a merged checkpoint with transformers or llama.cpp, or use the published GGUF build. Merging removes the roughly 20% speed cost of loading the adapter as a runtime LoRA. Each route has a different trade-off between setup effort and serving speed.
The GGUF repository provides the adapter merged into the base model as a single Q8_0 file and the adapter alone as an F16 LoRA:
llama serve -hf harness-hub/Inkling-2-Mini-pi-adapted-GGUF:Q8_0 -c 131072 --alias inkling-pi
The existing DSpark drafter also works unchanged. The card reports it keeps 97% of the base model's acceptance length and gives a 2.1× single-request speedup, rising from 167 to 348 output tokens per second on one B300. Note that the GGUF version has not been re-evaluated, so its behavior may drift from the tested checkpoint.
What are the limitations of this adapter?
The limits are scope and measurement. It is trained for pi at high reasoning effort, under a specific vLLM nightly, a 131k context, 32k output tokens per turn, and a 100-step cap. Read those caveats before treating any single task demonstration as representative.
The card explicitly warns that its base scores are lower than the 71.6% on Inkling-2-Mini's own card, which used pi v0.83.0. Compare base and adapter only within this card. Several benchmark rows show no significant difference, and one Terminal-Bench 4.1 subset shows the adapter slightly behind. A single task illustration where it used 16 tool calls instead of 45 is labeled as illustrative rather than typical — across six attempts the adapter solved it three times and the base five.
Frequently asked questions about Inkling-2-Mini-pi-adapted
These answers cover packaging, compatibility, and performance. All benchmark figures are from the primary model card, because its authors warn that its base scores differ from those on the upstream model card. Compare within that card, not across different harness versions.
Is Inkling-2-Mini-pi-adapted a full model download?
No. It is a LoRA adapter that requires the Inkling-2-Mini base model. A separate GGUF repository provides a pre-merged standalone build if you do not want to handle LoRA loading.
Does it work with other coding agents?
It was trained and evaluated specifically for pi. The underlying project has shown that separate adapters can be trained per harness and merged, but this particular LoRA should not be assumed to work with OpenCode or Hermes Agent.
Why is my speedup smaller under heavy load?
The drafter's advantage is largest at low concurrency — 2.1× for one request versus 1.2× at 64 concurrent requests. Local coding agents usually run at low concurrency, which is where this adapter is designed to help.
Bottom line
Inkling-2-Mini-pi-adapted is a well-documented case of harness-specific training: it cuts tool calls and token use dramatically, converting into a large one-hour benchmark gain, while leaving the four-hour ceiling unchanged. Use it if you run pi under time or token limits. Do not read it as a general upgrade to Inkling-2-Mini.