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.

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 none only.
  • Small benchmarks: the 95% intervals on the accuracy differences are about ±8 and ±11 points.
Downloads last month
412
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for harness-hub/Inkling-2-Mini-pi-adapted-preview

Adapter
(116)
this model
Adapters
5 models
Merges
1 model
Quantizations
1 model

Datasets used to train harness-hub/Inkling-2-Mini-pi-adapted-preview