[Image blocked: No description]
A LoRA adapter for thinkingmachines/Inkling-2-Mini, trained
with reinforcement learning in TRL to work as the model behind the pi coding
agent, at the default reasoning effort (high).
[!Tip]
Same accuracy, with much less work. With a generous time budget, this adapter solves as many Terminal-Bench 2.1
tasks as the base model, with 22–33% fewer tool calls and about 40% fewer output tokens on the tasks both solve.
Under a 1-hour limit per task, that efficiency turns into +13 points on Terminal-Bench 2.1 (44.2% → 56.9%).
It does not make the model more capable when time is unlimited.
- Terminal-Bench 2.1, 1 h per task: 44.2% → 56.9% avg@3 (+12.7 ± 6.4 points); pass@3 56.2% → 70.8%.
- Terminal-Bench 2.1, 4 h per task: 58.1% → 61.0% avg@3 (+3.0 ± 4.7, not significant).
- Less work per solved task: 22% (Terminal-Bench 2.1) and 33% (SWE-bench Pro) fewer tool calls, 38% and 40% fewer
output tokens.
- Faster to a solution: on the Terminal-Bench 2.1 tasks both solve, time to solve goes from 17 to 10 minutes on
average (1 h budget); with a generous budget, the median drops from 12 to 8 minutes.
[!Note]
All results are under the pi harness, reasoning effort high, temperature 1.0, a 131k-token context, up to 32k
output tokens per turn and a 100-step limit, in HF Sandboxes. Base model and adapter run under the same settings and
are paired per task. Our base scores are lower than the ones on the
Inkling-2-Mini card (71.6% on Terminal-Bench 2.1 under pi
v0.83.0): we use pi 1.7.0, HF Sandboxes and a vLLM nightly. Compare base and adapter only within this card.
This adapter is for reasoning effort high. For effort none, see the earlier
harness-hub/Inkling-2-Mini-pi-adapted-preview.
Pick your setup
One Terminal-Bench 4.1 task under pi, embedding-drift-monitor, which both models solve. The base model takes 45 tool
calls, 78.7k output tokens and 35 minutes; this adapter takes 16 tool calls, 18.4k tokens and 19 minutes.
[Image blocked: No description]
Still version, and the task
[Image blocked: No description]
This is an illustration, not a typical case. Across 6 attempts, this adapter solves this task 3 times and the base
model 5 times. Each line is one tool call as the trajectory recorded it, cut to fit.
[blocked]
Results
[Image blocked: No description]
Tasks solved over time, base model and adapter: Terminal-Bench 2.1 (pass@3, 1 h per task) and SWE-bench Pro hard 51
(2 h per task). With the 1 h budget, the adapter reaches the base model's final Terminal-Bench 2.1 pass@3 after 25
minutes; the base model gets there at the 60-minute timeout.
± is the 95% interval of the paired difference. Only the 1 h Terminal-Bench 2.1 gains are significant.
Where the 1 h gain comes from
- Medium tasks. The gain is on the 55 medium tasks (+14.5 ± 8.3 points). On hard tasks it is +6.7 ± 9.6, within
noise.
- Fewer timeouts. Agent timeouts drop from 124 to 67 of 267 attempts.
- New tasks. By pass@3, 14 tasks are solved only by the adapter and 1 only by the base model.
With a generous budget, accuracy is about equal
[Image blocked: No description]
- 4 h per task. The attempts that timed out at 1 h were rerun with a 4 h limit. The base model then catches up:
58.1% → 61.0% avg@3 (+3.0 ± 4.7, not significant), pass@3 69.7% → 73.0%. Provisional: a few attempts are still
running.
- 256k context, 64k output per turn, 4 h. Both models run from scratch on one server. Accuracy is about equal
(avg@3 54.3% for the adapter vs 56.6% for the base model, −2.2 ± 5.7; pass@3 66.3% vs 68.5%). Median time to solve drops
from 12 to 8 minutes (−36%). Provisional.
Work per solved task
[Image blocked: No description]
Means per task over the tasks both models solve: same tasks, same outcome, so the numbers measure only how much work
each needed. Intervals are 95% bootstrap intervals over tasks.
- Time to solve. Terminal-Bench 2.1 with the 1 h budget: −40% on average (17 → 10 minutes). SWE-bench Pro: median 74 → 40
minutes.
- SWE-bench Pro coverage. Token and tool counts are available for 13 of the tasks both models solve.
Still version
[Image blocked: No description]
Evaluation setup
- Harness. pi 1.7.0, reasoning effort
high, temperature 1.0, 131k-token context, up to 32k output tokens per
turn, 100 agent steps per attempt (unless stated).
- Serving. vLLM nightly
b976fff86af82c559b19aa676f52ea193eb0c188, the adapter loaded as a runtime LoRA.
- Sandboxes. HF Sandboxes, for the base model and the adapter alike.
- Benchmarks.
- Terminal-Bench 2.1: all 89 tasks, 3 attempts
each. avg@3 is the mean pass rate over the 3 attempts; pass@3 counts a task as solved if any attempt solves it.
- SWE-bench Pro (hard 51): the 51
hardest tasks of SWE-bench Pro, 1 attempt each, 2 h per task.
- Terminal-Bench 4.1: a 10-task subset, 3 attempts each, 2 h per task.
Contamination check
We compared every training task with Terminal-Bench 2.1, SWE-bench Pro hard 51 and the Terminal-Bench 4.1 subset. No
training task shares a task, repository, image or test file with them. The highest instruction overlap between a
training and an evaluation task is a word 5-gram Jaccard of 0.0045. The training set was not built with an explicit
step that excludes evaluation tasks: we checked it was clean after the fact.
[blocked]
Use with pi
Serve the adapter with vLLM and point pi at it
1. Serve the adapter with vLLM
Inkling 2 Mini needs a vLLM nightly; we used commit b976fff86af82c559b19aa676f52ea193eb0c188. The adapter under
vLLM's module names is in vllm/:
This is the configuration of the evaluations. The chat template's default reasoning effort is high, which is what
this adapter was trained and evaluated with, so no template argument is needed. Do not set reasoning_effort to
none: for that, use the preview adapter.
2. Point pi at it
Install pi (Node.js 22.19 or newer):
Add the server to ~/.pi/agent/models.json:
"api": "openai-completions" matters: without it pi uses the Responses API, which this adapter was not trained or
evaluated with.
The evaluations allowed up to 32k output tokens per turn. Give pi at least that much room if you change its limits.
[blocked]
Use with pi (transformers serve)
Serve with transformers and point pi at it
transformers serve is a lightweight
OpenAI-compatible server, for local use and experimentation (vLLM is faster under load). Serve the merged checkpoint
from Merge the adapter into the base model:
The server listens on http://localhost:8000, so the pi configuration from the vLLM section works as
is, with the model id set to the name the server serves, here ./Inkling-2-Mini-pi-merged:
[blocked]
Use with pi (llama.cpp)
Serve the GGUF with llama.cpp and point pi at it
The GGUF version of Inkling-2-Mini-pi-adapted is in
harness-hub/Inkling-2-Mini-pi-adapted-GGUF: the
adapter merged into the base model as one Q8_0 file, and the adapter alone as an F16 LoRA.
The merged model, in one command:
Or the adapter on top of a GGUF of the base model:
Then point pi at it:
The adapter was trained on the base model's own weights: the closer the base GGUF is to them, the closer you get to the
trained behavior. Q8_0 is a good default; lower-bit quants drift further. The GGUF version has not been re-evaluated.
[blocked]
Merge the adapter into the base model
Get a standalone model, with no LoRA at serving time
The adapter can be merged into the base weights with PEFT. The result is a regular Inkling-2-Mini checkpoint that any
engine serves without LoRA support. Merge on CPU if the GPU is needed for serving afterwards:
The adapter at the repository root uses PEFT's module names; the copy in vllm/ is for vLLM. Then serve the merged
model like the base model, without the LoRA flags:
[blocked]
Training
Method, data, hyperparameters and hardware
This checkpoint is step 100 of a run trained on coding and cyber tasks.
The training scripts are in .
The model learns to do less during training. On solved rollouts, from the first 10 steps to the 10 steps before step
100, tool calls drop from 10.1 to 7.2 (−28%) and output tokens from 9.8k to 5.9k (−40%):
[Image blocked: No description]
[blocked]
Evaluation trajectories
Every evaluation attempt behind this card, solved or not, is in the
harness-hub/harness-adapters-trajectories
bucket, under inkling-2-mini/: base model and adapter, on Terminal-Bench 2.1 (1 h, 4 h and 256k budgets), SWE-bench
Pro and the Terminal-Bench 4.1 subset, with each attempt's grade, trajectory, harness log and verifier output, scrubbed
of secrets. The files carry canary strings: keep them out of training data.
Links