[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, with reasoning effort none.
[!Tip]
The same accuracy for much less work. On the tasks both solve, 27% (Terminal-Bench 2.1) and 39% (SWE-bench Pro)
fewer tool calls than the base model, and 37% and 47% fewer generated tokens.
Results
[Image blocked: No description]
pi, reasoning effort none, one attempt per task at temperature 0.8, paired against the base model. The accuracy gains
are within noise; the efficiency gains are not.
[Image blocked: No description]
Use with pi
Serve the adapter with vLLM (Inkling 2 Mini needs a nightly; we used commit b976fff86af82c559b19aa676f52ea193eb0c188).
The adapter under vLLM's module names is in vllm/:
Then add it to ~/.pi/agent/models.json ("api": "openai-completions" matters: the adapter was not trained with the
Responses API):
For llama.cpp, see harness-hub/Inkling-2-Mini-pi-adapted-preview-GGUF.
Training
AsyncGRPO (TRL) with LoRA (r = 32, attention projections),
on 1,050 Harbor tasks (scale800 bug fixing and
TermGrade terminal tasks) run in HF Sandboxes
through OpenEnv, with tool calls screened by
safeagents. 200 steps at learning rate 2e-5, 8 rollouts per task, on 2×
NVIDIA B300. Recipe:
trl-lib/trl-recipes.
Limitations
- Trained and evaluated with pi and reasoning effort
none only.
- Small benchmarks: the 95% intervals on the accuracy differences are about ±8 and ±11 points.