Instructions to use harness-hub/Inkling-2-Mini-pi-adapted-preview with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use harness-hub/Inkling-2-Mini-pi-adapted-preview with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("thinkingmachines/Inkling-2-Mini") model = PeftModel.from_pretrained(base_model, "harness-hub/Inkling-2-Mini-pi-adapted-preview") - Notebooks
- Google Colab
- Kaggle
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.
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
| Benchmark | Base model | This adapter (step 200) | Difference (95%) | Tool calls on tasks both solve |
|---|---|---|---|---|
| Terminal-Bench 2.1 (87 tasks) | 54.0% | 56.3% | +2.3 ± 7.8 | −27% |
| SWE-bench Pro, hard 51 | 70.6% | 74.5% | +3.9 ± 10.9 | −39% |
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.
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/:
hf download harness-hub/Inkling-2-Mini-pi-adapted-preview --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 \
--default-chat-template-kwargs '{"reasoning_effort": "none"}' --max-model-len 131072
Then add it to ~/.pi/agent/models.json ("api": "openai-completions" matters: the adapter was not trained with the
Responses API):
{
"providers": {
"local": {
"baseUrl": "http://localhost:8000/v1",
"api": "openai-completions",
"apiKey": "dummy",
"models": [{ "id": "inkling-pi" }]
}
}
}
pi --provider local --model inkling-pi
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
noneonly. - Small benchmarks: the 95% intervals on the accuracy differences are about ±8 and ±11 points.
- Downloads last month
- -


