Run this model with HF Jobs

Run nokeepai/Inkling-2-Mini-Prime-LoRA 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/nokeepai/Inkling-2-Mini-Prime-LoRA. 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/nokeepai/Inkling-2-Mini-Prime-LoRA 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.

Configuration Parsing Warning:In adapter_config.json: "peft.base_model_name_or_path" must be a string

Inkling-2-Mini-Prime v1.1

Inkling-2-Mini-Prime-LoRA

The Prime add-on: a small adapter that makes Inkling 2 Mini stop over-thinking and finish its work, with the script that applies it. This is the updated add-on of Prime v1.1: it loops less than the v1.0 add-on.

A LoRA adapter is a small file of weight changes added on top of a model's own weights. This repo holds one, the Prime add-on, plus its merge script. Merged into Inkling 2 Mini, Thinking Machines Lab's open-weights reasoning model, it gives Inkling-2-Mini-Prime v1.1: a drop-in replacement with shorter, more decisive thinking, that writes code instead of only talking about it on debugging tasks, and loops less. It is not uncensored: the merged model refuses about as often as the original, and v1.1 is slightly more cautious on sensitive requests than v1.0 (details on the Prime card).

The same add-on is merged into nokeep's uncensored model: Inkling-2-Mini-Unbound v2.1 plus this add-on is Unbound v3.1, and the Unbound repo keeps its own copy in the lora-v3.1/ folder.

Built and paid for by nokeep. Released 2026-11-30.

Do you need this repo?

Probably not. If you just want to run the model, download a merged one, ready to use:

You want Get
The original model with the Prime add-on, on a GPU server nokeepai/Inkling-2-Mini-Prime
The same, on your own computer (llama.cpp, LM Studio, Ollama) nokeepai/Inkling-2-Mini-Prime-GGUF
The uncensored model with the Prime add-on nokeepai/Inkling-2-Mini-Unbound

This repo is for people who want to apply the Prime add-on themselves, for example to their own copy of the original model, or who want to check our work: rebuild the released model byte for byte and compare.

What changed in this version

The add-on in this repo is the v1.0 add-on trained for 20 more steps, aimed at loops: the model repeating the same stretch of thinking until it runs out of room, or calling the same tool with the same arguments again and again in long agent sessions. It is still one adapter, the same size and shape as before (rank 32, attention and expert weights), so it replaces the v1.0 file; it is not a second adapter to stack on the first.

Loops are less frequent, not gone. Merged into the original model, v1.0 against v1.1 on held-out prompts never used in training, at the recommended temperature 0.6: loops 1.6% [0.8, 2.9] β†’ 0.8% [0.3, 1.8], paired difference -0.8 pts [-1.9, +0.2] (the two models' answers to the same prompts compared one by one; numbers in brackets are 95% intervals, the range the true value plausibly sits in). Ship rule, checked against v1.0: Not fully passed: held-out loop rate vs Prime v1.0: -0.9 pts [-1.6, -0.2] (beyond noise), lower; but one release metric came out below Prime v1.0 beyond noise. It is stated in the full results against Prime v1.0 on the Inkling-2-Mini-Prime card, and this version shipped with that stated. The full loop table is on the Inkling-2-Mini-Prime card.

Loop rates, the v1.0 add-on against v1.1, merged into the original model

The v1.0 add-on stays available at the v1.0 tag of this repo.

What the add-on does

The adapter was trained with reinforcement learning: the model attempted tasks and was rewarded for finishing them correctly without wasted thinking, and penalised for answers that run away (and, in the v1.1 steps, for repeated passages on loop-prone prompts). All training prompts were harmless (debugging, maths, writing, everyday questions, and for v1.1 loop-prone prompts of the same kinds). No harmful requests and no benchmark questions. To keep answer length and quality where they were, each training step also included some of the original model's own answers.

Prime v1.1 (the original model plus this adapter) against the original Inkling 2 Mini: hard debugging tasks solved, turns with no code written, and tokens used per task

Merged into the original model (that is Inkling-2-Mini-Prime v1.1), with the same settings for both:

What we measured Original With the Prime add-on
Hard debugging tasks solved (15 tasks) 80.0% [54.8, 93.0] 100.0% [79.6, 100.0]
Debugging turns where it wrote no code 86.2% 0.0%
Tokens used per debugging task 23,920 2,092
Thinking per everyday prompt (median tokens) 318 137
Seconds per everyday answer, same server 119.9 s 39.9 s

How to read the table:

  • Hard debugging tasks are small programs with three interacting bugs each. The model sees the failing test output, proposes a fix, sees the new output, and repeats for up to 12 turns. A "turn with no code written" is a turn it spent only thinking.
  • A token is roughly three quarters of a word. Fewer tokens means faster answers.

What it does not do. It does not make the model smarter: public coding, maths and knowledge benchmarks are the check that nothing was lost, and no accuracy gain is claimed. It does not make the model more willing to answer sensitive requests either. Everything that scored lower than the original, however slightly, merged into the original model:

Below the original Inkling 2 Mini beyond noise (whole paired interval below zero):

  • uncensoredbench delivery score: 35.9% [34.0, 37.7] β†’ 31.8% [30.1, 33.5], n = 1,100, paired difference -4.1 pts [-4.9, -3.2]; beyond noise.

Lower, but inside noise:

  • Roleplay quality: 94.0% β†’ 87.0%, n = 100; one pass, no paired interval.
  • HumanEval (independent): 99.4% [96.6, 99.9] β†’ 98.2% [94.8, 99.4], n = 164, paired difference -1.2 pts [-3.0, +0.0]; within noise.
  • MBPP sanitized (independent): 96.9% [94.0, 98.4] β†’ 96.5% [93.5, 98.2], n = 257, paired difference -0.4 pts [-2.3, +1.6]; within noise.
  • HumanEvalFix (independent): 96.3% [92.2, 98.3] β†’ 95.1% [90.7, 97.5], n = 164, paired difference -1.2 pts [-4.3, +1.8]; within noise.
  • MMLU (independent): 89.7% [88.2, 90.9] β†’ 89.0% [87.6, 90.3], n = 2,000, paired difference -0.6 pts [-1.6, +0.5]; within noise.

The full evaluation, including the comparison with v1.0, is on the Inkling-2-Mini-Prime card.

How to apply it

Inkling 2 Mini stores most of its weights in compact 4-bit and 8-bit formats. The adapter changes those weights very slightly, and ordinary rounding back to 4 or 8 bits would throw most of the change away. So the merge script uses stochastic rounding: each weight rounds up or down at random, in proportion to how close it is to each side, so the change survives on average.

hf download nokeepai/Inkling-2-Mini-Prime-LoRA --local-dir prime-addon
hf download thinkingmachines/Inkling-2-Mini --revision ed40e7da625f594fc9c4990f5f66be24873c22d7 --local-dir original
python3 prime-addon/merge_adapter.py --base original --adapter prime-addon --out prime \
    --parts attn_experts --rounding stochastic --seed 0 --device cuda   # or --device cpu (slower)

What the options mean:

  • --parts attn_experts merges the adapter into both the attention and the expert weights. Without it, the script merges attention only.
  • --rounding stochastic is required. The default, nearest rounding, throws most of the change away.
  • --seed 0 fixes the random rounding, so the result is the same every time.

The result is byte-identical every time. This is the exact merge used for the evaluated models. With the same base, seed and device, the output matches the released files:

Merge sha256 of model-00001
Original model + this adapter = Inkling-2-Mini-Prime v1.1 29c56deace7c5624a3ca6bacc6297dc6d198275e1f2e4096a483c6f652176023
Unbound v2.1 + this adapter = Unbound v3.1 2618268a13d1781e73a166baabdf144db18833aacabc619de64316403fc0aca1

Check the adapter file itself first: sha256sum prime-addon/adapter_model.safetensors should print 7cd104c405b354e7a7ab3612a516ad84ae602d60a5c0ba4b53f0cdd4da6cbe33. You can also compare with the sha256 that Hugging Face shows for each file in nokeepai/Inkling-2-Mini-Prime. The released files were merged with --device cuda; a CPU merge has not been compared byte for byte. The script also writes prime.merge_report.json, which says how much of the change survived rounding, per group of weights.

To make Unbound v3.1 instead, use the same command with Unbound v2.1 as the base: the v2.1 tag of nokeepai/Inkling-2-Mini-Unbound.

Other fine-tunes of Inkling 2 Mini may work, but we have not measured any. If you try one, run your own checks.

How the evaluated models were merged

The evaluated models were merged by scripts/v3stack/cand.sh in the GitHub repo, which runs the command above inside a pinned SGLang container image for torch and safetensors, with --device cuda and seed 0.

A second, independent check

The numbers above come from the merged weights, served on our own GPU server. We also ran the public benchmarks a second way: on Thinking Machines' own hosted service for fine-tuning and running their models. There the adapter is applied on the fly, without merging and so without our rounding step, on software we did not write. This rules out the merge or our serving setup as the reason for the results. Same questions, same seeds, effort 0.9, the original model against the original plus this adapter. Average thinking per question: 1,010 tokens for the original, 391 with the adapter.

Every benchmark on the hosted service, one row each

"Difference" is the adapter minus the original, on the same questions. Non-inferior means the whole 95% interval of the difference stays above βˆ’2 points: no meaningful loss. Inconclusive means the test was too small to rule out a larger loss. Scores carry Wilson 95% intervals; differences carry a paired bootstrap 95% interval. "Strict format" maths rejects a correct number written with units, such as "230 miles", which the original model does more often; read the "number correct" row.

Benchmark What it tests Questions Original Original + adapter Difference, points Verdict
HumanEval writing short Python functions 164 98.2% [94.8, 99.4] 98.2% [94.8, 99.4] +0.0 pts [-2.4, +2.4] inconclusive (interval reaches past the margin)
MBPP writing short Python functions 257 95.3% [92.0, 97.3] 96.1% [93.0, 97.9] +0.8 pts [-1.6, +3.1] non-inferior
HumanEvalFix fixing a bug in a function 164 98.2% [94.8, 99.4] 97.0% [93.1, 98.7] -1.2 pts [-3.0, +0.0] inconclusive (interval reaches past the margin)
QuixBugs fixing a bug in a classic algorithm 31 96.8% [83.8, 99.4] 90.3% [75.1, 96.7] -6.5 pts [-19.4, +6.5] inconclusive (interval reaches past the margin)
GSM8K, number correct maths word problems 1,319 96.5% [95.4, 97.4] 97.0% [95.9, 97.8] +0.5 pts [-0.3, +1.2] non-inferior
GSM8K, strict format the same, exact answer format 1,319 69.7% [67.2, 72.2] 93.4% [91.9, 94.6] +23.7 pts [+21.3, +26.0] non-inferior (interval above zero; no gain claimed)
MATH-500 competition maths 500 92.4% [89.7, 94.4] 94.0% [91.6, 95.8] +1.6 pts [+0.2, +3.0] non-inferior (interval above zero; no gain claimed)
MMLU general knowledge, multiple choice 2,000 89.1% [87.7, 90.4] 88.7% [87.2, 90.0] -0.5 pts [-1.5, +0.7] non-inferior
How much scores move by chance (repeated runs with different seeds)

A seed fixes the random choices the model makes while writing. Some benchmarks were run several times per model, each time with a different seed, to show how much a score moves by chance alone.

Benchmark Model Setup n Seed 1 Seed 2 Seed 3 Spread, points
HumanEvalFix Prime v1.0 our GPU server, released weights 164 94.5% 97.0% 96.3% 2.5
HumanEvalFix Original our GPU server, released weights 164 96.3% 95.7% 94.5% 1.8
MBPP Original our GPU server, released weights 257 96.9% 97.7% 96.5% 1.2
MBPP Prime v1.0 our GPU server, released weights 257 96.5% 94.9% 96.1% 1.6
HumanEvalFix Unbound v3 our GPU server, released weights 164 96.3% 93.3% 95.1% 3.0
HumanEvalFix Unbound v2.1 our GPU server, released weights 164 95.7% 97.6% 95.7% 1.9
MBPP Unbound v2.1 our GPU server, released weights 257 97.7% 95.3% 96.5% 2.4
MBPP Unbound v3 our GPU server, released weights 257 96.1% 96.5% 96.5% 0.4
HumanEvalFix Original Thinking Machines' hosted service, adapter not merged 164 98.2% 96.3% 1.9
HumanEvalFix Prime v1.1 our GPU server, released weights 164 95.1% 94.5% 97.6% 3.1
MBPP Prime v1.1 our GPU server, released weights 257 96.5% 96.1% 96.5% 0.4
HumanEvalFix Unbound v3.1 our GPU server, released weights 164 96.3% 97.0% 95.7% 1.3
MBPP Unbound v3.1 our GPU server, released weights 257 95.7% 94.6% 95.7% 1.1

Seeds pooled (every item run once per seed; paired difference with a bootstrap that resamples items as clusters, 10,000 resamples):

Benchmark Items Γ— seeds Original Prime v1.1 Difference, points Read-out
HumanEvalFix 164 Γ— 3 470/492 (95.5%) 471/492 (95.7%) +0.2 pts [-1.4, +1.8] non-inferior
MBPP 257 Γ— 3 748/771 (97.0%) 743/771 (96.4%) -0.7 pts [-1.6, +0.3] non-inferior

Files

File What it is
adapter_model.safetensors, adapter_config.json The adapter: LoRA rank 32 (its size setting), changing the attention and expert weights, trained 60 steps for v1.0 plus 20 for v1.1.
merge_adapter.py The script that merges the adapter into an Inkling 2 Mini checkpoint, with stochastic rounding.
Checksums
  • Adapter file sha256: 7cd104c405b354e7a7ab3612a516ad84ae602d60a5c0ba4b53f0cdd4da6cbe33 (1.46 GB)
  • Merged Inkling-2-Mini-Prime v1.1, model-00001 sha256: 29c56deace7c5624a3ca6bacc6297dc6d198275e1f2e4096a483c6f652176023
  • Merged Unbound v3.1, model-00001 sha256: 2618268a13d1781e73a166baabdf144db18833aacabc619de64316403fc0aca1
  • The v1.0 add-on, for comparison (at the v1.0 tag): a13961f470a8b804b28f1c065c6b770ba6a0c8f449d554292d3f6ea9f8b6fdb9

Hugging Face also shows each file's size and sha256 in this repo's file list.

Limits

  • Loops are less frequent, not gone. See "What changed in this version".
  • Measured on two models only: the original Inkling 2 Mini and Unbound v2.1.
  • No accuracy gain. See "What the add-on does".
  • Small debugging test. The headline debugging result is 15 tasks. The direction is clear; the exact percentages are not precise.
  • Not measured: long documents and images. Tool calling was measured only in the long agent sessions of the loop test. Only English was tested.

Licence

Apache 2.0, like the base model, Inkling 2 Mini by Thinking Machines Lab, Inc. The base model's Acceptable Use Policy applies.

Downloads last month
387
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for nokeepai/Inkling-2-Mini-Prime-LoRA

Adapter
(113)
this model
Quantizations
1 model

Collection including nokeepai/Inkling-2-Mini-Prime-LoRA