Inkling-2-Mini-pi-adapted-preview
adapter for efficient pi agent performance
2 min readupdated
This release is a LoRA (a small add-on over a base model) for the thinkingmachines/Inkling-2-Mini language model. The adapter was trained using reinforcement learning methods in TRL to optimize its performance as a backend for the pi coding agent with zero reasoning effort (none). The model's main goal is to preserve the base architecture's accuracy while significantly reducing token generation and tool calls during task execution. This model will be useful for developers and engineers who use autonomous agents for writing code and working in the terminal.
Key features
- Token cost reduction: decreases the number of generated tokens by 37–47% on comparable tasks.
- Fewer tool calls: requires 27–39% fewer requests to external tools.
- Accuracy preservation: shows results on par with or better than the base model (within the margin of error on small tests).
- Training via AsyncGRPO: used a modern asynchronous reinforcement learning method in TRL on debugging tasks and terminal assignments.
What you can do
- Run locally: deploy the adapter combined with the base model via vLLM to work with an OpenAI-compatible API.
- Connect to the pi agent: configure the integration in the configuration file for interaction via the command line.
- Test on programming tasks: use in automated bug fixing and terminal task workflows.
Example
Example command to run the model via vLLM with the LoRA module attached:
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 \
--default-chat-template-kwargs '{"reasoning_effort": "none"}' --max-model-len 131072Read more
DetailsBenchmarks: Terminal-Bench 2.1 — 56.3% (vs. 54.0% for base); SWE-bench Pro — 74.5% (vs. 70.6%).
Training: 200 steps on 2× NVIDIA B300 using Harbor datasets and the TRL framework.
Limitations: tested exclusively with the pi agent and reasoning disabled (
none), wide confidence intervals due to the small benchmark volume.









Comments