- Python 93.1%
- Dockerfile 4.6%
- Shell 2.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| bench | ||
| scripts | ||
| w4a16 | ||
| .gitignore | ||
| docker-compose.lane-a.yml | ||
| docker-compose.yml | ||
| Dockerfile | ||
| README.md | ||
inkling2-mini-vllm
Inkling 2 Mini, Thinking Machines' model released on 2026-11-20, served by vLLM on trogdor, measured against Qwen3.8-27B, the production model (stack 126, qwen38-vllm-flashinfer).
Status, 2026-11-21: ready, not run. vLLM cannot run this model on trogdor's four Quadro RTX 5000s (Turing), so the test waits for the two RTX A6000s (Ampere), which are bought but not installed. This repo holds what the test needs: the research, a patched image for Ampere, the stack, a download script and the benchmark. llama.cpp can run the model on the RTX 5000s now, slowly for the moment: cmoriarty/inkling2-mini-llamacpp (2026-11-21; its test waits for llama.cpp's fixes, the owner's call).
| Piece | State on 2026-11-21 |
|---|---|
| Research (this page) | Done. Sources at the end |
| Dockerfile: vLLM's Inkling image with an Ampere patch | Written. The patch applies to vLLM main ab18334 and compiles. Never run on an Ampere card |
| docker-compose.yml: the stack for Lane A | Written. Not deployed |
| scripts/download-model.sh | Written; its file list checked against the Hugging Face API. Not run (20.2 GB) |
| bench/inkbench.py, bench/run-check.sh | Written. Every part ran against a fake server, and with tiny requests against production Qwen on 2026-11-21 (8/8 function checks; all five parts ran). Reads llama-server too since that evening: tested against a fake llama-server, and the vLLM side again against production Qwen (function and soak parts, 16:55 New York time) |
The model
From the model card, config.json, the weight files' headers (Hugging Face, revision ed40e7d, 2026-11-21) and
vLLM's blog post of 2026-11-20.
| Inkling 2 Mini | |
|---|---|
| Kind | Mixture of experts (MoE): each token uses 8 of 128 experts per layer. Text and images in, text out. Apache 2.0 |
| Size | 26.4B parameters, 3.4B active per token |
| Looping | 24 layers. Layers 6-17 run three times per token with the same weights, so a token makes 48 layer visits. Each pass keeps its own KV cache. The maker counts 5.4B weight activations per token |
| Attention | 20 sliding-window layers (1,024 tokens) and 4 full-attention layers; 24 query and 8 key/value heads; a learned relative-position bias, a gate and a sink |
| Window | 1,048,576 tokens |
| Speculative decoding | DSpark: a 3-layer draft model in the checkpoint proposes 7 tokens per step, and the model checks them |
| Files | 19.53 GB of model weights plus a 0.64 GB draft model, 20.2 GB in all |
| Precision as shipped | Experts in NVFP4 (layers 0-19) and MXFP8 (layers 20-23); everything else BF16, a few small tensors FP32 |
NVFP4 stores each weight in 4 bits, with one 8-bit scale per block of 16 weights. MXFP8 stores 8-bit weights with one scale per block of 32. BF16 is the 16-bit format models are usually trained in.
What the maker claims against Qwen3.8-27B
The model card's own table, not checked here. Higher is better.
| Benchmark | Inkling 2 Mini | Qwen3.8-27B |
|---|---|---|
| Artificial Analysis Index v5.0 | 20.1 | 20.1 |
| SWE-bench Verified (bash only) | 79.2% | 77.8% |
| SWE-bench Pro v2, hard | 77.9% | 73.8% |
| DeepSWE v1.1 | 48.2% | 42.2% |
| Vibe Code Bench v1.1 | 77.9% | 64.9% |
| Terminal Bench v2.1 | 71.6% | 73.0% |
| MCP Atlas (tool use) | 82.7% | 77.3% |
| LongBench v2 | 66.9% | 52.3% |
| MRCR v2, 8 needles, 256k-512k | 46.4% | 38.0% |
| GDPVal-AA v2.1 (knowledge work) | 1319 | 1427 |
| AutomationBench-AA v1.0.6 | 41.8% | 48.2% |
| MMMU Pro (vision) | 74.9% | 76.3% |
| AA-Omniscience, rate of not making things up | 63.4% | 71.4% |
So the claims are: better at agentic coding and long context, worse at knowledge work and factual recall, level overall. The announcement adds that it trails Qwen on multi-turn chat and on instructions with many constraints. The card warns of long reasoning loops when debugging code, and that it may delete or overwrite files without asking. For Braid, the test that settles it is a Braid run (see "Pass lines").
Precision: the 4-bit weights are the original
On Qwen3.8-27B the 8-bit weights were more faithful than the 4-bit ones: KL divergence 0.0017 against 0.040 at 4k tokens (2026-10-31, the qwen38 repo's README). KL divergence (KLD) measures how far a setup's predictions drift from a reference; lower is closer. Both Qwen builds were made by compressing a BF16 original, so the smaller one lost more.
Inkling 2 Mini has no BF16 original. Thinking Machines trained the experts in NVFP4 "on all forward passes from pretraining through RL", and say its weights are "deployed in the same numeric precision they were trained on ... so there is no conversion loss" (announcement, 2026-11-20). An 8-bit copy cannot be more faithful:
- Widening the 4-bit values to 8 or 16 bits adds nothing. It only costs memory and speed.
- A fresh 8-bit quantization moves the weights off the grid they were trained on. ggml-org measured its Q8_0 build at KLD 0.0030 from the BF16 widening, with the same top token 97.6% of the time (40 x 512 tokens of wikitext-2, ggml-org's README).
What is left to choose:
| Lever | Choice | Why |
|---|---|---|
| Weights | The checkpoint as shipped | It is the trained model |
| KV cache | BF16 (--kv-cache-dtype auto) |
The reference's own. vLLM allows nothing else for this model except on SM 12.x cards. The pool is large anyway (see "Memory") |
| Activations into the experts | BF16 | The model was trained with these activations quantized too (NVFP4 / MXFP8). Only Blackwell does that natively. vLLM's Hopper path, which vLLM verified, also feeds BF16, and Ampere takes the same path. The size of this difference is not published; the fidelity check measures it |
| Speculative decoding | DSpark, drafts sampled from the draft's distribution | The model checks every draft, so the output distribution does not change. Measured with and without, for speed |
Why not on the RTX 5000s
Read from vLLM main ab18334 (2026-11-21, "[Model] Add Inkling 2 Mini (#69028)"). vLLM verifies the model on
Hopper, Blackwell and DGX Spark only. Turing fails at the root:
- Turing has no BF16, and the model runs in BF16 throughout. vLLM refuses BF16 below compute capability 8.0
(
vllm/platforms/cuda.py: "Bfloat16 is only supported on GPUs with compute capability of at least 8.0"). The Inkling code fixes BF16 in its loop controllers, caches and kernels, uses a BF16 rounding instruction (cvt.rn.bf16.f32) that needs SM 8.0, and requires a BF16 KV cache on every card but SM 12.x. - The expert kernels need SM 8.0 for BF16. Humming, vLLM's kernel library for these experts, supports Turing only with FP16 activations (Humming 0.1.20's support matrix).
- Several kernels use Hopper features. These can be patched, as for Ampere below.
Running it on Turing would mean porting most of the model's kernels to FP16. FP16 tops out at 65,504, and the model's activations were trained in BF16 and FP32, which reach far higher, so the port would change the model's arithmetic: the opposite of the fidelity goal. Not attempted.
The RTX 5000s could run it today under llama.cpp, with ggml-org's GGUF builds: BF16 (52.2 GB, the widened original) or Q8_0 (27.8 GB). That is a different engine, and not tried.
The Ampere patch
Ampere has BF16 and runs Triton, the language most of vLLM's Inkling kernels are written in. On any card that is not Blackwell or SM 12.x, vLLM takes its Hopper path: Humming expert kernels with BF16 activations, and Triton attention. That path needs Hopper in four places. The Dockerfile changes each one, and stops the build if the text it expects is not there.
| Edit | File (under vllm/models/inkling2/nvidia/) |
Why |
|---|---|---|
| 1 | ops/conv_mix.py |
Calls a CUDA kernel built only for SM 9.0a and 10.x. Use the Triton fallback vLLM already runs on SM 12.x (DGX Spark) |
| 2 | ops/linear.py |
Uses TMA and warp specialization (SM 9.0+). Use the plain Triton kernel, at most 2 stages, as on SM 12.x: both have about 100 KB of shared memory per SM |
| 3 | vision.py |
Asks for FlashAttention 3, which is Hopper-only. Use FlashAttention 2, as on SM 12.x |
| 4 | 9 files in ops/ |
26 waits and 19 launches use programmatic dependent launch (PTX griddepcontrol, SM 9.0+). Launch the ordinary way. This removes an overlap between kernels, not any arithmetic |
Tested on 2026-11-21 against a copy of vLLM main ab18334: every edit applies once, the files compile, and a second
run refuses. The image was pushed on 2026-11-20, before that commit, so its code may differ; the build checks.
Not run on an Ampere card. What could still go wrong on the first boot: a Triton kernel tuned on Hopper asking for
more shared memory than Ampere has (most of these kernels also run on SM 12.x, which has the same 100 KB), and
Humming's first compile for SM 8.6. Speed on Ampere is unknown.
Upstream does not support Ampere for this model, so the patch is ours to keep until it does.
Memory on Lane A (estimate, not checked)
The weights take 20.2 GB. vLLM's recipe gives about 69 KB of KV cache per token on one card, in BF16. Each A6000 has 48 GB, about 45 GB with ECC on.
| Layout | Weights per card | Cache per token per card | Pool, roughly |
|---|---|---|---|
One A6000 (INKLING_TP=1) |
20.2 GB | 69 KB | 250,000-300,000 tokens |
Both A6000s (INKLING_TP=2, the default) |
about 10 GB | about 35 KB | 800,000-900,000 tokens |
Both A6000s should hold the full 1,048,576-token window for one request, or about three Braid agents at 245,760 tokens each. Production Qwen's pool is 496,770. The first boot's log line "GPU KV cache size" gives the real figure.
Build, download, deploy
Each step changes trogdor, so each needs the owner's yes. Run them after the GPU window.
-
Build the image on trogdor. The Dockerfile needs no context:
DOCKER_HOST=ssh://cmoriarty@trogdor docker build -t vllm-openai-inkling2-ampere:2026-11-20 - < Dockerfile -
Download the model as cmoriarty. It checks sizes and sha256 against the Hugging Face API, and resumes if run again:
bash scripts/download-model.sh. -
Create a Portainer git stack on endpoint 39 from this repo,
refs/heads/main, PullImage off, with the variables listed at the top of docker-compose.yml: the A6000s' UUIDs, node 1's CPUs,INKLING_TPandINKLING_MAX_LEN. The first boot compiles kernels for SM 8.6, so give it up to 20 minutes.
The benchmark
bench/inkbench.py measures any vLLM or llama-server endpoint the same way. Run it against
Inkling and against Qwen on the same day, and set the results side by side with inkbench.py compare. It is
standard-library Python and runs on trogdor's python3.
It tells the engines apart by /props, which only llama-server answers. On llama-server it counts prompt tokens
with /apply-template and /tokenize, takes the window from /props, and reads prefix-cache hits and drafts from
llama-server's /metrics (start it with --metrics). llama-server has no preemptions, so that cell stays empty.
inkbench.py log <result> <log file> adds what a saved engine log says: the KV pool, and for llama.cpp each card's
model, KV and compute buffers.
| Part | Measures | Like |
|---|---|---|
| function | Reasoning kept apart from the answer; tool calls plain, streamed and parallel; a tool result round trip; a system message that is not first; one image; 18 images in one request | fcheck.py core, img18.py |
| speed | Temperature 0, thinking off: decode short, at 20k and on a code edit; a cold 18k prompt's first token; that prompt replayed, and with a new question appended; 2, 4 and 6 streams | xbench.py, rebuilt here |
| sample | The model's own sampling, as Braid sends it: prose and code with thinking off, reasoning with thinking on, six streams; drafts accepted per step | sampleprobe.py, request for request |
| needle | A passphrase halfway into 206,000 and 245,760 tokens; 4 of 8 code words spread through 128,000 and 245,760 tokens | vprobe.py, plus a harder test of long context |
| soak | 6 sessions x 5 turns at once, a screenshot every turn: errors, broken output, later turns' first token, prefix-cache hits, preemptions | soak.py 6 5 |
How comparable each row is with the 2026-11-20 Qwen numbers:
- sample sends the same requests as
sampleprobe.py, on the same text: the standard library of the Python that runs it. Run on trogdor's hostpython3, these rows match the earlier ones. - function, needle and soak check the same things, with this script's own prompts.
- speed is this script's own version of
xbench.py, which lives only in~/exp1004on trogdor. So take those rows from the same-day Qwen run, not from the old table. - Thinking off is
enable_thinking: falsefor Qwen andreasoning_effort: "none"for Inkling. Inkling still reasons a little at that setting (model card).
Run it as cmoriarty on trogdor, in tmux, with Braid paused. On Qwen a run should take about 30 minutes (an estimate: its two needles took 229 and 304 s on 2026-11-20, and the facts test adds two more long prompts):
bash bench/run-check.sh qwen-$(date +%m%d) qwen38 http://localhost:8090 qwen38-vllm-fi
bash bench/run-check.sh inkling-tp2-$(date +%m%d) inkling2 http://localhost:8001 inkling2-mini
python3 bench/inkbench.py compare /var/tmp/qwen-MMDD.json /var/tmp/inkling-tp2-MMDD.json
--size smoke runs every part with tiny requests, to test the script, in under a minute.
Results
Not run. The Qwen column is the live check of 2026-11-20 (prod-drv620, the qwen38 repo's README), measured with
the scripts in ~/exp1004:
| Qwen3.8-27B, 2026-11-20 | Inkling 2 Mini | |
|---|---|---|
| KV pool (tokens) | 496,770 | not run |
| Window (tokens) | 262,144 | not run |
| Function checks | fcheck core and 18 images passed | not run |
| Braid's sampling: reasoning / prose / code (t/s) | 69.1 / 72.4 / 117.4 | not run |
| Braid's sampling: six streams (t/s) | 232.9 | not run |
| Temperature 0: short / at 20k / code (t/s) | 71.2 / 82.3 / 128.4 | not run |
| Cold 18k prompt, first token | 11.17 s | not run |
| 2 / 4 / 6 streams (slowest-stream totals, t/s) | 88.2 / 125.8 / 138.7 | not run |
| Needle at about 206k / at 245,760: seconds | 229.2 / 303.9, both found | not run |
| Soak 6 x 5 | 30/30, 0 preemptions | not run |
| VRAM peak per card | 14,796 MiB of 16,384 | not run |
Pass lines (proposed; the owner's call)
Written before any run, as the commissioning plan asks.
| Line | Source | |
|---|---|---|
| Speed | At least 35 t/s for one stream; a cold 20k prompt under 60 s | The commissioning plan's Lane A bars |
| Function | Every core check passes | As for Qwen |
| Long context | Both passphrases found; facts 4/4 at 128,000 | As for Qwen; the facts line is new |
| Stability | Soak 30/30, 0 preemptions, 0 engine error lines | As for Qwen |
| Fidelity | Below | To be set before the fidelity run |
| Quality | A Greeter run with no failed attempt, then a Midway run beside run 195 | The commissioning plan's Tiers 2 and 3 |
The last line answers whether Inkling beats Qwen at Braid's work. The model card's numbers cannot.
Fidelity check (planned)
The model was trained with its expert activations quantized, and on Ampere they run in BF16. Two references could
measure that difference, with the qwen38 repo's method (experiments/fidelity/vkld.py: the top 20 log-probabilities
of every prompt token):
- llama.cpp on the CPU with ggml-org's BF16 GGUF. The original weights, with full-precision arithmetic, but BF16 activations too. It checks the Ampere engine's own arithmetic, not the activation difference. Free, and slow.
- Thinking Machines' Tinker API. Their own engine, with the activations quantized as in training: the true reference. It needs an account, costs money, and sends text out, so use public text, not Braid transcripts.
Sources (read 2026-11-21)
- Model card,
config.json,hf_quant_config.jsonand the weight files' headers: huggingface.co/thinkingmachines/Inkling-2-Mini, revisioned40e7da625f594fc9c4990f5f66be24873c22d7 - Announcement: thinkingmachines.ai/news/inkling-2-mini
- vLLM: the blog post and the
recipe (vLLM 0.35.0 or later, nightly only), and the
code at main
ab18334a4f60da74db7de89fe95594e5ed0cda36 - Image
vllm/vllm-openai:inkling-2-mini, pushed 2026-11-20 21:36 UTC, index digestsha256:c2dc759f5984f69c1e2418c6af7c26eb756f5ed2a8934c768ae1253645d1449e(Docker Hub API) - Humming 0.1.20, the support matrix in its README (PyPI
humming-kernels) - ggml-org/Inkling-2-Mini-GGUF, its README
The bake-off of 2026-11-29
docker-compose.yml now holds the best setup found for the two RTX A6000s. The figures are warm runs with a
262,144-token window: one stream, six streams at once, and the time to the first token on a cold prompt of
about 16,000 tokens.
| Setup | One stream | Six streams | Cold 16k prompt |
|---|---|---|---|
| The authors' build plus the Ampere overlay, a 4-bit copy of the model, four requests allowed | 115 tokens/s | 182 | 5.3 s |
| The same build, the original checkpoint, four requests allowed | 126 | 201 | 5.5 s |
| The same, six requests allowed, vision on | 104 | 342 | 2.2 s |
| Stock vLLM nightly, no overlay, NCCL | 117 | 413 | 2.3 s |
| This file: stock nightly, vLLM's own all-reduce | 123 | 421 | 2.2 s |
| Stock nightly, no drafts | 101 | up to 354 | 2.2 s |
The KV cache holds about 970,000 tokens. Every setup read a real screenshot correctly.
Quality was judged with the pelican test (/Users/cmoriarty/repos/pelican-bench), scored by eye (Claude's
scores here).
| Try | Setup | Time | Score |
|---|---|---|---|
| 1 | The 4-bit copy, no vision | 15 min | 86 |
| 2 | The original checkpoint, no vision | 23 min | 88 |
| 3 | This file, with vision | 19 min | 58 |
Try 3 had the best drawing of the bake-off, but its game ran in slow motion, which a screenshot cannot show. The setup is the fastest measured for this model; the lower score is one try's game, not the server.
Not used: the 4-bit copies (the same speed as the original and slightly worse quality), and a DFlash2 draft model (reported faster, but tested on text only and its patches target the authors' build; not tried).
The stack itself (Portainer stack 149) was redeployed from this file on 2026-11-29 and checked: healthy after about 4 minutes, about 120 tokens/s for one stream and 419 across six on warm runs, a 262,144-token window reported by the server, a KV cache of 971,295 tokens, and a real screenshot read correctly.