Run this model with HF Jobs
Run harness-hub/Inkling-2-Mini-pi-adapted-preview on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/harness-hub/Inkling-2-Mini-pi-adapted-preview. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/harness-hub/Inkling-2-Mini-pi-adapted-preview on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/harness-hub/Inkling-2-Mini-pi-adapted-preview. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Quantize for lower memory use
Use HF Jobs to create a 4-bit version of https://huggingface.co/harness-hub/Inkling-2-Mini-pi-adapted-preview. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
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
- 412
Model tree for harness-hub/Inkling-2-Mini-pi-adapted-preview
Base model
thinkingmachines/Inkling-2-Mini

