Image-Text-to-Text
Transformers
Safetensors
English
inkling2_loop
inkling2
finetune
reasoning
Mixture of Experts
conversational
8-bit precision
modelopt
Instructions to use nokeepai/Inkling-2-Mini-Prime with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nokeepai/Inkling-2-Mini-Prime with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="nokeepai/Inkling-2-Mini-Prime") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("nokeepai/Inkling-2-Mini-Prime") model = AutoModelForMultimodalLM.from_pretrained("nokeepai/Inkling-2-Mini-Prime", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nokeepai/Inkling-2-Mini-Prime with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nokeepai/Inkling-2-Mini-Prime" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nokeepai/Inkling-2-Mini-Prime", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/nokeepai/Inkling-2-Mini-Prime
- SGLang
How to use nokeepai/Inkling-2-Mini-Prime with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "nokeepai/Inkling-2-Mini-Prime" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nokeepai/Inkling-2-Mini-Prime", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "nokeepai/Inkling-2-Mini-Prime" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nokeepai/Inkling-2-Mini-Prime", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use nokeepai/Inkling-2-Mini-Prime with Docker Model Runner:
docker model run hf.co/nokeepai/Inkling-2-Mini-Prime
v3 staging (prime-main-card): 11 files
Browse files- .gitattributes +5 -0
- README.md +326 -0
- charts/hero_v3.png +3 -0
- charts/hero_v3.svg +362 -0
- charts/indep_prime_v3.png +3 -0
- charts/indep_prime_v3.svg +339 -0
- charts/nothing_lost_prime_v3.png +3 -0
- charts/nothing_lost_prime_v3.svg +528 -0
- charts/speed_v3.png +3 -0
- charts/speed_v3.svg +362 -0
- charts/xver_v3.png +3 -0
- charts/xver_v3.svg +443 -0
.gitattributes
CHANGED
|
@@ -34,3 +34,8 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
charts/hero_v3.png filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
charts/indep_prime_v3.png filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
charts/nothing_lost_prime_v3.png filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
charts/speed_v3.png filter=lfs diff=lfs merge=lfs -text
|
| 41 |
+
charts/xver_v3.png filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,326 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
license_link: https://www.apache.org/licenses/LICENSE-2.0
|
| 4 |
+
base_model: thinkingmachines/Inkling-2-Mini
|
| 5 |
+
base_model_relation: finetune
|
| 6 |
+
library_name: transformers
|
| 7 |
+
pipeline_tag: image-text-to-text
|
| 8 |
+
language:
|
| 9 |
+
- en
|
| 10 |
+
tags:
|
| 11 |
+
- inkling2
|
| 12 |
+
- finetune
|
| 13 |
+
- reasoning
|
| 14 |
+
- moe
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# Inkling-2-Mini-Prime
|
| 18 |
+
|
| 19 |
+
`nokeepai/Inkling-2-Mini-Prime` · released November 2026 · stock Inkling 2 Mini plus one small fine-tune (the
|
| 20 |
+
"fix") that stops it over-thinking and stalling. Not an uncensored model: the fix was trained on harmless tasks
|
| 21 |
+
only, and how often it answers sensitive requests is measured below.
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
|
| 25 |
+
**In one screen.** Same settings for both models (reasoning effort 0.9, temperature 0.6, top_p 1.0, thinking cap 4,096 tokens, answer cap 8,192 tokens, seed 1234, one pass per model). Brackets are 95% intervals.
|
| 26 |
+
|
| 27 |
+
| Check | n | Stock | **Prime** |
|
| 28 |
+
|---|---|---|---|
|
| 29 |
+
| Hard debugging tasks solved | 15 tasks | 80.0% [54.8, 93.0] | **100.0% [79.6, 100.0]** |
|
| 30 |
+
| Debugging turns that stalled (no code written) | 87 / 18 turns | 86.2% | **0.0%** |
|
| 31 |
+
| Tokens per debugging task (mean) | 15 tasks | 23,920 | **2,766** |
|
| 32 |
+
| Median thinking tokens, everyday prompts | 100 prompts | 318 | **174** |
|
| 33 |
+
|
| 34 |
+
Public benchmarks, pooled by family (each item counted once). Difference = Prime minus stock on the
|
| 35 |
+
same items; "non-inferior" = the interval's lower end is no more than 2 points below zero.
|
| 36 |
+
|
| 37 |
+
| Family | Benchmarks | n | Stock | Prime | Difference, points | Read-out |
|
| 38 |
+
|---|---|---|---|---|---|---|
|
| 39 |
+
| Coding | HumanEval + MBPP | 421 | 97.9% [96.0, 98.9] | 97.1% [95.1, 98.4] | -0.7 pts [-2.1, +0.7] | inconclusive (interval reaches past the margin) |
|
| 40 |
+
| Bug fixing | HumanEvalFix + QuixBugs | 195 | 96.4% [92.8, 98.2] | 94.9% [90.8, 97.2] | -1.5 pts [-4.1, +1.0] | inconclusive (interval reaches past the margin) |
|
| 41 |
+
| Maths, number correct | GSM8K + MATH-500 | 1,819 | 95.3% [94.2, 96.2] | 95.3% [94.2, 96.2] | +0.0 pts [-0.7, +0.7] | non-inferior |
|
| 42 |
+
| Maths, strict format | GSM8K + MATH-500 | 1,819 | 74.1% [72.0, 76.1] | 89.3% [87.8, 90.6] | +15.2 pts [+13.4, +17.0] | non-inferior (interval above zero; no gain claimed) |
|
| 43 |
+
| Knowledge | MMLU 400-question lab sample | 400 | 87.2% [83.6, 90.2] | 86.8% [83.1, 89.7] | -0.5 pts [-2.8, +1.8] | inconclusive (interval reaches past the margin) |
|
| 44 |
+
|
| 45 |
+
The strict maths matcher rejects a correct number written with units ("230 miles"); that is most of the
|
| 46 |
+
gap between the strict and number-correct rows, and stock hits it more often. Read the number-correct rows.
|
| 47 |
+
Neither reading is claimed as a gain.
|
| 48 |
+
|
| 49 |
+
> **Not shown to be within the margin (a loss is not ruled out):** HumanEval (-1.2 pts [-3.0, +0.0], n = 164); MBPP sanitized (-0.4 pts [-2.3, +1.6], n = 257); HumanEvalFix (-1.8 pts [-4.9, +0.6], n = 164); QuixBugs (+0.0 pts [-9.7, +9.7], n = 31); MMLU (-0.5 pts [-2.8, +1.8], n = 400).
|
| 50 |
+
|
| 51 |
+
## Get it
|
| 52 |
+
|
| 53 |
+
| What | Where |
|
| 54 |
+
|---|---|
|
| 55 |
+
| Weights (Transformers, SGLang, vLLM) | this repo |
|
| 56 |
+
| GGUF (llama.cpp, LM Studio, Ollama) | [nokeepai/Inkling-2-Mini-Prime-GGUF](https://huggingface.co/nokeepai/Inkling-2-Mini-Prime-GGUF) |
|
| 57 |
+
| The fix as a LoRA, plus the merge script, for your own copy of stock | [nokeepai/Inkling-2-Mini-Prime-LoRA](https://huggingface.co/nokeepai/Inkling-2-Mini-Prime-LoRA) |
|
| 58 |
+
| Code, per-item results, reports | [github.com/nokeepai/inkling-2-mini-unbound](https://github.com/nokeepai/inkling-2-mini-unbound) |
|
| 59 |
+
|
| 60 |
+
Tested and recommended settings: `reasoning_effort` 0.9, temperature 0.6, top_p
|
| 61 |
+
1.0, thinking capped at 4096 tokens (details under [Settings](#settings)).
|
| 62 |
+
|
| 63 |
+
## What changed
|
| 64 |
+
|
| 65 |
+
- **It finishes instead of stalling.** On multi-step debugging, stock often spends turn after turn thinking
|
| 66 |
+
without writing code. Prime writes the code.
|
| 67 |
+
- **It thinks less:** about half stock's thinking on everyday prompts (median above). Mean seconds
|
| 68 |
+
per answer on the same server with 31 requests in flight: 119.9 s → 49.0 s.
|
| 69 |
+
- **It keeps long system prompts better.** All rules of a long system prompt kept: stock 112/160 (70.0%) → 148/160 (92.5%)
|
| 70 |
+
with the fix (160 = 4 passes × 40 tasks, effort 0.9). Measured with the adapter applied on Thinking Machines' Tinker service,
|
| 71 |
+
not on the merged weights; no interval is claimed because the 4 passes repeat the same tasks.
|
| 72 |
+
- **Nothing else.** Same architecture, tokenizer and chat template. The fix is a LoRA adapter trained with
|
| 73 |
+
reinforcement learning on harmless synthetic lab tasks, merged into the weights.
|
| 74 |
+
|
| 75 |
+
**How it was made.** LoRA rank 32 on the attention and expert layers, 60 steps, 32 prompts × 8 samples per step, learning rate 5e-5, thinking turned off on 25% of samples, reasoning effort 0.5 to 0.9, trained from stock on harmless prompts only; 619 anchor answers (stock's own best-of-8 answers, answer part only) hold the answer style. Released checkpoint: step 60 of the final training run; a 25-step continuation with extra roleplay, system-prompt and long-answer data measured level with step 60 on every check, so step 60 shipped.
|
| 76 |
+
Merged with stochastic (dithered) rounding into the quantised weights, attention and experts.
|
| 77 |
+
|
| 78 |
+
## What we do not claim
|
| 79 |
+
|
| 80 |
+
- **No accuracy gain.** The claim is "equal within a margin of 2 points, with less thinking". The
|
| 81 |
+
benchmarks are near their ceiling for this model: they can show harm, not a gain.
|
| 82 |
+
- No change to what the model will or will not answer. Willing to answer sensitive requests:
|
| 83 |
+
63.6% [57.1, 69.7] → 67.3% [60.8, 73.1] on uncensoredbench, 220 of its 1,100 questions (an even sample across categories and levels).
|
| 84 |
+
- Nothing about long context, vision or tool use: not measured.
|
| 85 |
+
|
| 86 |
+
## What got worse or is unproven
|
| 87 |
+
|
| 88 |
+
Every check where Prime scored below stock, including dips inside noise:
|
| 89 |
+
|
| 90 |
+
- **Creative writing quality:** 93.3% [78.7, 98.2] → 92.9% [77.3, 98.0], n = 30 / 28; one pass, no paired interval.
|
| 91 |
+
- **Roleplay quality:** 94.0% → 93.0%, n = 100; one pass, no paired interval.
|
| 92 |
+
- **Code pass@1 (lab set):** 95.0% [83.5, 98.6] → 92.5% [80.1, 97.4], n = 40, paired difference -2.5 pts [-10.0, +5.0]; within noise.
|
| 93 |
+
- **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.
|
| 94 |
+
- **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.
|
| 95 |
+
- **HumanEvalFix (independent):** 96.3% [92.2, 98.3] → 94.5% [89.9, 97.1], n = 164, paired difference -1.8 pts [-4.9, +0.6]; within noise.
|
| 96 |
+
- **MATH-500, is_equiv (independent):** 92.6% [90.0, 94.6] → 92.4% [89.7, 94.4], n = 500, paired difference -0.2 pts [-1.8, +1.4]; within noise.
|
| 97 |
+
- **MATH-500, number correct (independent):** 93.2% [90.7, 95.1] → 92.8% [90.2, 94.8], n = 500, paired difference -0.4 pts [-2.0, +1.0]; within noise.
|
| 98 |
+
- **MMLU (independent):** 87.2% [83.6, 90.2] → 86.8% [83.1, 89.7], n = 400, paired difference -0.5 pts [-2.8, +1.8]; within noise.
|
| 99 |
+
|
| 100 |
+
Unproven: apart from the seed table below, every number is one pass per model at one seed; the debugging set is 15
|
| 101 |
+
tasks; "inconclusive" rows above mean the data cannot rule out a loss larger than the margin.
|
| 102 |
+
|
| 103 |
+
## Why not just lower the effort setting?
|
| 104 |
+
|
| 105 |
+
A fair question: a lower `reasoning_effort` also makes stock think less. Measured on Thinking Machines' Tinker service, with the adapter applied unmerged on stock (a different serving stack from the merged weights on the GPU),
|
| 106 |
+
same items and seeds, stock at effort 0.9, stock at 0.3, and stock + the fix at
|
| 107 |
+
0.9.
|
| 108 |
+
|
| 109 |
+
**On single-question benchmarks, lowering effort does as well as the fix,** with even slightly less thinking. Seven
|
| 110 |
+
public benchmarks, each item once (4,435 items):
|
| 111 |
+
|
| 112 |
+
| | Stock, effort 0.3 vs 0.9 | Stock + fix, effort 0.9 vs stock 0.9 |
|
| 113 |
+
|---|---|---|
|
| 114 |
+
| Coding (HumanEval + MBPP, n = 421), difference in points | +1.2 pts [-0.2, +2.9] | +1.2 pts [+0.0, +2.4] |
|
| 115 |
+
| Bug fixing (HumanEvalFix + QuixBugs, n = 195) | -2.1 pts [-4.6, +0.0] | -1.5 pts [-4.1, +0.5] |
|
| 116 |
+
| Maths, number correct (GSM8K + MATH-500, n = 1,819) | +0.1 pts [-0.5, +0.7] | +0.2 pts [-0.4, +0.9] |
|
| 117 |
+
| Knowledge (MMLU, n = 2,000) | -0.2 pts [-1.3, +0.8] | +0.8 pts [-0.2, +1.8] |
|
| 118 |
+
| Mean thinking tokens per item (stock at 0.9: 1,010) | 390 | 462 |
|
| 119 |
+
| Thinking-cap hits (stock at 0.9: 10.2% [9.4, 11.1]) | 1.0% [0.8, 1.4] | 1.3% [1.0, 1.7] |
|
| 120 |
+
|
| 121 |
+
Differences are paired on the same items with 95% bootstrap intervals; strict-format maths is left out here because
|
| 122 |
+
it measures answer formatting (strict: +6.4 pts [+5.0, +7.9] at low effort,
|
| 123 |
+
+14.5 pts [+12.8, +16.3] with the fix).
|
| 124 |
+
|
| 125 |
+
**Where the fix differs:**
|
| 126 |
+
- **Multi-turn hard debugging.** Stock at a low effort still stalls. 15 tasks, lab run on the Tinker service (adapter unmerged):
|
| 127 |
+
|
| 128 |
+
| | Effort 0.3 | Effort 0.6 | Effort 0.9 |
|
| 129 |
+
|---|---|---|---|
|
| 130 |
+
| Stock | 100% solved, 19% of turns with no code, 4,553 tokens per task | 100% solved, 52% of turns with no code, 8,090 tokens per task | 80% solved, 88% of turns with no code, 26,784 tokens per task |
|
| 131 |
+
| Stock + fix | 100% solved, 0% of turns with no code, 1,825 tokens per task | 100% solved, 0% of turns with no code, 2,478 tokens per task | 100% solved, 0% of turns with no code, 2,491 tokens per task |
|
| 132 |
+
|
| 133 |
+
The merged Prime weights on the GPU at effort 0.3: 100% solved, 0% of turns with no code.
|
| 134 |
+
- **Long system prompts.** All rules kept: stock 112/160 (70.0%) at 0.9 and 25/40 (62.5%) at 0.3;
|
| 135 |
+
with the fix 148/160 (92.5%) at 0.9 and 35/40 (87.5%) at 0.3 (Tinker service, adapter unmerged).
|
| 136 |
+
- **No effort to tune.** With the fix, every debugging task was solved with no stalled turns at all three
|
| 137 |
+
efforts tested, so that result does not depend on picking the right effort.
|
| 138 |
+
|
| 139 |
+
That is the whole case. If your workload is single questions, stock at a lower effort is a fine choice.
|
| 140 |
+
|
| 141 |
+
## Was it trained on the benchmarks?
|
| 142 |
+
|
| 143 |
+
No. Training prompts are synthetic lab tasks written for this project (1,185 prompts;
|
| 144 |
+
by step: debugging 31%, maths 19%, creative writing 16%, questions 16%, roleplay 9%, chat 9%), with 619 of stock's own answers as an anchor. Leak check: training prompts are synthetic lab tasks written for this project; no item from any public benchmark is in the training or anchor files (checked by id and by text).
|
| 145 |
+
|
| 146 |
+
Known overlaps, disclosed: 35 MBPP items also appear in the lab `code` test suite, and 50 GSM8K and 5 MATH-500
|
| 147 |
+
items appear in a lab maths test file. Those lab suites were among the checks used to choose the checkpoint, so
|
| 148 |
+
those items were seen during selection, not training.
|
| 149 |
+
|
| 150 |
+
## Settings
|
| 151 |
+
|
| 152 |
+
Tested, and therefore recommended: `reasoning_effort` 0.9, temperature 0.6,
|
| 153 |
+
top_p 1.0, thinking capped at 4096 tokens and the answer at
|
| 154 |
+
8192 tokens. Effort 0.3 was also measured (see the effort section); no other values
|
| 155 |
+
were tested, and we do not recommend untested ones.
|
| 156 |
+
|
| 157 |
+
## Every check
|
| 158 |
+
|
| 159 |
+
**Lab suites**, one pass per model:
|
| 160 |
+
|
| 161 |
+
| Check | n | Stock | **Prime** | Difference, points |
|
| 162 |
+
|---|---|---|---|---|
|
| 163 |
+
| Answer quality, rated good by an independent grader | 63 / 62 | 96.8% [89.1, 99.1] | **96.8% [89.0, 99.1]** | not paired |
|
| 164 |
+
| Creative writing, rated good | 30 / 28 | 93.3% [78.7, 98.2] | **92.9% [77.3, 98.0]** | not paired |
|
| 165 |
+
| Roleplay turns, rated good | 100 turns | 94.0% | **93.0%** | no interval (turns of a chat are not independent) |
|
| 166 |
+
| Median answer length, tokens | 100 | 284 | **293** | |
|
| 167 |
+
| Code pass@1 | 40 | 95.0% [83.5, 98.6] | **92.5% [80.1, 97.4]** | -2.5 pts [-10.0, +5.0] |
|
| 168 |
+
| Hard maths, number correct | 100 | 94.0% [87.5, 97.2] | **97.0% [91.5, 99.0]** | +3.0 pts [-1.0, +8.0] |
|
| 169 |
+
| Hard maths, strict format | 100 | 73.0% [63.6, 80.7] | **91.0% [83.8, 95.2]** | +18.0 pts [+10.0, +26.0] |
|
| 170 |
+
| Sensitive requests: willing to answer | 220 | 63.6% [57.1, 69.7] | **67.3% [60.8, 73.1]** | |
|
| 171 |
+
| Sensitive requests: delivery score | 220 | 41.9% [37.4, 46.3] | **42.2% [37.9, 46.6]** | +0.4 pts [-1.4, +2.1] |
|
| 172 |
+
| Thinking-cap hits, sensitive requests | 220 | 13.6% | **1.8%** | |
|
| 173 |
+
|
| 174 |
+
**Public benchmarks**, same items for both models (the Source column says whether the full set or a sample was run):
|
| 175 |
+
|
| 176 |
+
| Benchmark | Source | n | Stock | Prime | Difference, points | Read-out |
|
| 177 |
+
|---|---|---|---|---|---|---|
|
| 178 |
+
| HumanEval | openai/human-eval, all 164 problems | 164 | 99.4% [96.6, 99.9] | 98.2% [94.8, 99.4] | -1.2 pts [-3.0, +0.0] | inconclusive (interval reaches past the margin) |
|
| 179 |
+
| MBPP | MBPP sanitized, test split, 257 problems | 257 | 96.9% [94.0, 98.4] | 96.5% [93.5, 98.2] | -0.4 pts [-2.3, +1.6] | inconclusive (interval reaches past the margin) |
|
| 180 |
+
| HumanEvalFix | HumanEvalFix (HumanEvalPack, Python), 164 problems | 164 | 96.3% [92.2, 98.3] | 94.5% [89.9, 97.1] | -1.8 pts [-4.9, +0.6] | inconclusive (interval reaches past the margin) |
|
| 181 |
+
| QuixBugs | QuixBugs, 31 Python programs with JSON test cases | 31 | 96.8% [83.8, 99.4] | 96.8% [83.8, 99.4] | +0.0 pts [-9.7, +9.7] | inconclusive (interval reaches past the margin) |
|
| 182 |
+
| GSM8K, number correct | GSM8K test, all 1,319 problems | 1,319 | 96.3% [95.1, 97.2] | 96.4% [95.2, 97.2] | +0.1 pts [-0.7, +0.8] | non-inferior |
|
| 183 |
+
| GSM8K, strict format | GSM8K test, all 1,319 problems | 1,319 | 67.1% [64.5, 69.6] | 88.1% [86.2, 89.7] | +21.0 pts [+18.6, +23.4] | non-inferior (interval above zero; no gain claimed) |
|
| 184 |
+
| MATH-500, number correct | MATH-500, 500 problems | 500 | 93.2% [90.7, 95.1] | 92.8% [90.2, 94.8] | -0.4 pts [-2.0, +1.0] | non-inferior |
|
| 185 |
+
| MATH-500, is_equiv | MATH-500, 500 problems | 500 | 92.6% [90.0, 94.6] | 92.4% [89.7, 94.4] | -0.2 pts [-1.8, +1.4] | non-inferior |
|
| 186 |
+
| MMLU | MMLU test, 400 questions stratified by subject (lab sample) | 400 | 87.2% [83.6, 90.2] | 86.8% [83.1, 89.7] | -0.5 pts [-2.8, +1.8] | inconclusive (interval reaches past the margin) |
|
| 187 |
+
|
| 188 |
+
Scores carry Wilson 95% intervals; differences carry a paired bootstrap 95% interval (10,000 resamples, seed 1234)
|
| 189 |
+
over the items both models answered.
|
| 190 |
+
|
| 191 |
+

|
| 192 |
+
|
| 193 |
+
## Thinking and speed
|
| 194 |
+
|
| 195 |
+
Thinking tokens per answer on the lab's main set of mixed everyday prompts (100 prompts):
|
| 196 |
+
|
| 197 |
+
| Model | Mean | Median | p90 | p99 | Did not finish thinking (cap or runaway) |
|
| 198 |
+
|---|---|---|---|---|---|
|
| 199 |
+
| Stock | 810 | 318 | 2,576 | 4,096 | 7.0% |
|
| 200 |
+
| **Prime** | **281** | **174** | **552** | **1,340** | **0.0%** |
|
| 201 |
+
|
| 202 |
+
The speed comes from writing fewer tokens, not from a faster engine: mean tokens per answer (thinking + answer)
|
| 203 |
+
1,396 → 761, on one RTX 5090 (32 GB) (NVFP4 checkpoint as released, SGLang, 31 concurrent requests). Decode speed per token was not measured separately.
|
| 204 |
+
|
| 205 |
+
|
| 206 |
+
**When the cap is hit.** When Prime does run into the thinking cap, its forced answer is usually wrong;
|
| 207 |
+
stock's forced answers are usually right. HumanEvalFix, one pass (after the 4,096-token cap the model is made to answer), n = 164: stock hit the cap
|
| 208 |
+
32 times and 26 of those forced answers passed; Prime hit it
|
| 209 |
+
7 times and 1 passed. On the Tinker service: stock
|
| 210 |
+
30 cap hits, 27 passed (second seed: 28, 22); stock + fix 7 cap hits, 2 passed (second seed: 10, 4). The fix makes cap hits rare; it does not make a capped
|
| 211 |
+
answer good.
|
| 212 |
+
|
| 213 |
+
|
| 214 |
+
**Seed noise.** One pass per model can move by a few points on the small coding sets. Scores per seed (seed 1 is
|
| 215 |
+
the run in the tables above):
|
| 216 |
+
|
| 217 |
+
| Benchmark | Model | Setup | n | Seed 1 | Seed 2 | Seed 3 | Spread, points |
|
| 218 |
+
|---|---|---|---|---|---|---|---|
|
| 219 |
+
| HumanEvalFix | Prime | GPU, SGLang (merged weights) | 164 | 94.5% | 97.0% | 96.3% | 2.5 |
|
| 220 |
+
| HumanEvalFix | Stock | GPU, SGLang (merged weights) | 164 | 96.3% | | | |
|
| 221 |
+
| MBPP | Prime | GPU, SGLang (merged weights) | 257 | 96.5% | 94.9% | 96.1% | 1.6 |
|
| 222 |
+
| MBPP | Stock | GPU, SGLang (merged weights) | 257 | 96.9% | | | |
|
| 223 |
+
| HumanEvalFix | Stock | Tinker service | 164 | 98.2% | 96.3% | | 1.9 |
|
| 224 |
+
|
| 225 |
+
On the Tinker service, stock itself moved from 98.2% to 96.3% on HumanEvalFix between two seeds. Read single-run
|
| 226 |
+
differences of one or two points on these sets with that in mind.
|
| 227 |
+
|
| 228 |
+
## Across versions and other releases
|
| 229 |
+
|
| 230 |
+
Each number is labelled with the release that measured it and its n. Blank = not measured by that release; nothing
|
| 231 |
+
is re-estimated. The v2.1 release columns come from its harmful-request campaign (Jev judge, llama.cpp, greedy;
|
| 232 |
+
details on the [`v2.1` branch card](https://huggingface.co/nokeepai/Inkling-2-Mini-Unbound/tree/v2.1)); the v3 release columns from this card's runs.
|
| 233 |
+
Neither Prime nor v3 was re-run on the v2.1 campaign.
|
| 234 |
+
|
| 235 |
+
| Model | Useful, thinking off (v2.1 release, n = 263) | Useful, thinking on (v2.1 release, n = 263) | Refused off / on (v2.1 release, n = 263) | Drift, KLD (v2.1 release) | MMLU-300 / GSM8K-100 (v2.1 release) | Uncensoredbench willing (v3 release, n = 220) | Hard debugging solved (v3 release, n = 15) | MMLU (v3 release, n = 400 / 2,000) |
|
| 236 |
+
|---|---|---|---|---|---|---|---|---|
|
| 237 |
+
| Stock Inkling 2 Mini (original) | 0.8% [0.0, 1.9] | 0.8% [0.0, 1.9] | 96.2% / 95.8% | | 76.3 / 97 | 63.6% [57.1, 69.7] | 80.0% [54.8, 93.0] | 87.2% [83.6, 90.2] |
|
| 238 |
+
| Inkling-2-Mini-Prime | | | | | | 67.3% [60.8, 73.1] | 100.0% [79.6, 100.0] | 86.8% [83.1, 89.7] |
|
| 239 |
+
| Unbound v1.0 | 51.3% [45.2, 57.4] | 61.6% [55.9, 67.3] | 0.0% / 0.0% | 0.0102 | 75.7 / 99 | | | |
|
| 240 |
+
| Unbound v2 | 77.9% [73.0, 82.9] | 82.5% [77.9, 86.7] | 0.4% / 1.1% | 0.0318 | 76.0 / 99 | | | |
|
| 241 |
+
| Unbound v2.1 | 83.7% [79.1, 87.8] | 85.2% [80.6, 89.4] | 0.4% / 0.4% | 0.0439 | 74.3 / 98 | 100.0% [98.3, 100.0] | 73.3% [48.0, 89.1] | 87.7% [86.1, 89.0] |
|
| 242 |
+
| **Unbound v3** | | | | | | 99.5% [97.5, 99.9] | 100.0% [79.6, 100.0] | 87.2% [85.6, 88.5] |
|
| 243 |
+
| IndrasMirror XQ | 58.9% [53.2, 64.6] | 68.1% [62.4, 73.8] | 0.0% / 0.0% | 0.0357 | 74.7 / 98 | | | |
|
| 244 |
+
| AtomicChat Uncensored, LoRA | 52.1% [46.0, 58.2] | 55.5% [49.4, 61.6] | 0.0% / 0.0% | 0.0078 | 78.3 / 99 | | | |
|
| 245 |
+
| AtomicChat Uncensored, AD-Q4_K file | 50.2% [44.1, 56.3] | 59.3% [53.2, 65.4] | 0.4% / 0.0% | 0.0106 | 77.0 / 98 | | | |
|
| 246 |
+
| OpenUncensored | 33.1% [27.4, 38.8] | 41.8% [35.7, 47.9] | 1.5% / 0.8% | 0.0228 | 75.3 / 98 | | | |
|
| 247 |
+
| JoaoZaokk Heretic | 17.5% [12.9, 22.4] | 26.2% [20.9, 31.6] | 1.1% / 0.4% | | | | | |
|
| 248 |
+
|
| 249 |
+
The drift column is the v2.1 release's own measurement and is not comparable with the drift figure under
|
| 250 |
+
Known limits, which uses a different setup.
|
| 251 |
+
|
| 252 |
+

|
| 253 |
+
|
| 254 |
+
## GGUF quants
|
| 255 |
+
|
| 256 |
+
Files: [nokeepai/Inkling-2-Mini-Prime-GGUF](https://huggingface.co/nokeepai/Inkling-2-Mini-Prime-GGUF). Hard debugging re-run on the quantised
|
| 257 |
+
files with llama.cpp (15 tasks, same task set):
|
| 258 |
+
|
| 259 |
+
| File | Hard debugging solved | No-code turns | Tokens per task (mean) | GSM8K, first 100, number correct | HumanEval, first 50 |
|
| 260 |
+
|---|---|---|---|---|---|
|
| 261 |
+
| Prime Q8_0 | 100.0% | 0.0% | 2,606 | 94.0% | 100.0% |
|
| 262 |
+
| **Prime Q4_K_M** | **100.0%** | **0.0%** | **2,367** | **98.0%** | **98.0%** |
|
| 263 |
+
| Prime IQ2_M | 100.0% | 5.6% | 3,261 | 95.0% | 100.0% |
|
| 264 |
+
| Stock Q4_K_M (same recipe) | 80.0% | 87.9% | 26,939 | 97.0% | 100.0% |
|
| 265 |
+
|
| 266 |
+
How the files were built and verified: [nokeepai/Inkling-2-Mini-Prime-GGUF](https://huggingface.co/nokeepai/Inkling-2-Mini-Prime-GGUF).
|
| 267 |
+
|
| 268 |
+
## Use it
|
| 269 |
+
|
| 270 |
+
Exactly like [thinkingmachines/Inkling-2-Mini](https://huggingface.co/thinkingmachines/Inkling-2-Mini): same files, same chat template.
|
| 271 |
+
Pass the tested settings above with each request; `reasoning_effort` goes in
|
| 272 |
+
`"chat_template_kwargs": {"reasoning_effort": 0.9}` on OpenAI-compatible servers.
|
| 273 |
+
|
| 274 |
+
The fix on its own, with the merge script: [nokeepai/Inkling-2-Mini-Prime-LoRA](https://huggingface.co/nokeepai/Inkling-2-Mini-Prime-LoRA).
|
| 275 |
+
Code and reports: [github.com/nokeepai/inkling-2-mini-unbound](https://github.com/nokeepai/inkling-2-mini-unbound).
|
| 276 |
+
|
| 277 |
+
## Reproduce it
|
| 278 |
+
|
| 279 |
+
Evaluation code: `scripts/evalsuite/` in the [GitHub repo](https://github.com/nokeepai/inkling-2-mini-unbound). Served with
|
| 280 |
+
SGLang (image lmsysorg/sglang:inkling-2-mini, pinned by digest in scripts/v3stack/stack_test.sh), NVFP4 checkpoint as released, 31 concurrent requests on one RTX 5090 (32 GB).
|
| 281 |
+
|
| 282 |
+
**Byte-identical merges.** The merge is deterministic: Prime's checkpoint came out byte-identical in
|
| 283 |
+
3 independent merges (sha256 `823f44bbcbdcb50e790cde840b310c71acca4c2317c9ef806e47fc29f81c827b`), Unbound v3's in 2 (sha256
|
| 284 |
+
`88e78b0126722a99dcecf26dd7b6cf242860d415f4f74b651e57b18d6abf3b88`). Command: `merge_adapter.py --parts attn_experts --rounding stochastic --seed 0 --device cuda`,
|
| 285 |
+
about 2.5 minutes on one RTX 5090. Adapter file sha256 `a13961f470a8b804b28f1c065c6b770ba6a0c8f449d554292d3f6ea9f8b6fdb9`.
|
| 286 |
+
|
| 287 |
+
|
| 288 |
+
```bash
|
| 289 |
+
# generate (one tag per model; the uncensoredbench sample adds --limit 220 for the ubench suite only)
|
| 290 |
+
python3 scripts/evalsuite/run_suite.py --base-url http://127.0.0.1:8000/v1 --model MODEL --tag prime \
|
| 291 |
+
--out-root results --suites agent_hard_noforce,ubench,main,hardmath,code,rp,pub_all \
|
| 292 |
+
--effort 0.9 --temperature 0.6 --top-p 1.0 \
|
| 293 |
+
--think-cap 4096 --answer-cap 8192 --seed 1234 --repeats 1 --allow-effort-unverified
|
| 294 |
+
# grade (paid judges): ubench with bison; main, hardmath and rp with bison and haiku
|
| 295 |
+
python3 scripts/evalsuite/run_suite.py --base-url http://unused/v1 --model x --tag prime --out-root results \
|
| 296 |
+
--suites ubench --judge-only --judges bison --ubench-conditions command
|
| 297 |
+
python3 scripts/evalsuite/run_suite.py --base-url http://unused/v1 --model x --tag prime --out-root results \
|
| 298 |
+
--suites main,hardmath,rp --judge-only --judges bison,haiku
|
| 299 |
+
# intervals and paired tests, stock as the reference
|
| 300 |
+
python3 scripts/evalsuite/compare.py stock prime --ci --ref stock --margin 2 --out-root results --json ci.json \
|
| 301 |
+
--suites pub_humaneval,pub_mbpp,pub_humanevalfix,pub_quixbugs,pub_gsm8k_full,pub_math500,pub_mmlu_2k,code,hardmath
|
| 302 |
+
```
|
| 303 |
+
|
| 304 |
+
Per-item results are not published yet; the aggregate numbers behind this card are in `package_v3/values.json`.
|
| 305 |
+
|
| 306 |
+
|
| 307 |
+
## Known limits
|
| 308 |
+
|
| 309 |
+
- Drift from stock: KL divergence 0.004928 ± 0.000146 (same top token 96.84%). Method: KL divergence of each model's Q8_0 GGUF against the official stock Q8_0 on a fixed wikitext-2 slice (llama-perplexity, context 512, 40 chunks). Expect some wording
|
| 310 |
+
differences.
|
| 311 |
+
- Shorter thinking can miss something on problems that need long reasoning.
|
| 312 |
+
- Everything the base model card says about languages, safety and limits still applies.
|
| 313 |
+
|
| 314 |
+
## Files
|
| 315 |
+
|
| 316 |
+
| Path | What it is |
|
| 317 |
+
|---|---|
|
| 318 |
+
| `model-00001-of-00001.safetensors`, `mtp.safetensors`, configs, tokenizer, chat template | Prime. sha256 shown per file in this repo's file list |
|
| 319 |
+
| `charts/` | the charts on this card |
|
| 320 |
+
|
| 321 |
+
## Licence and use
|
| 322 |
+
|
| 323 |
+
Apache 2.0, like the base model, Inkling 2 Mini by Thinking Machines Lab, Inc. The base model's
|
| 324 |
+
[Acceptable Use Policy](https://thinkingmachines.ai/model-acceptable-use-policy/) applies. Built and paid for by
|
| 325 |
+
[nokeep](https://nokeep.ai/?ref=huggingface), which also publishes
|
| 326 |
+
[Inkling-2-Mini-Unbound](https://huggingface.co/nokeepai/Inkling-2-Mini-Unbound) with the same fix.
|
charts/hero_v3.png
ADDED
|
Git LFS Details
|
charts/hero_v3.svg
ADDED
|
|
charts/indep_prime_v3.png
ADDED
|
Git LFS Details
|
charts/indep_prime_v3.svg
ADDED
|
|
charts/nothing_lost_prime_v3.png
ADDED
|
Git LFS Details
|
charts/nothing_lost_prime_v3.svg
ADDED
|
|
charts/speed_v3.png
ADDED
|
Git LFS Details
|
charts/speed_v3.svg
ADDED
|
|
charts/xver_v3.png
ADDED
|
Git LFS Details
|
charts/xver_v3.svg
ADDED
|
|