Recipe · 1× RTX PRO 6000 · Zig engine
Inkling 2 Mini on one RTX PRO 6000, with TensorFold's Zig engine.
Serve Thinking Machines' Inkling 2 Mini from one 96 GB RTX PRO 6000 Blackwell, through an OpenAI- and Anthropic-compatible API, with 8 requests at once at a full 262,144-token window each. It runs TensorFold's Zig engine, at Jürgen Schmied's Inkling 2 Mini CUDA engine, with 17 patches on top: DSpark drafts, an FP8 KV cache, image input, structured output and Blackwell's native FP4 and MXFP8 tensor cores for prefill. 16,446.1 tok/s prefill on a 32K prompt at 600 W, and 150.7 tok/s for one request at just 300 W. One command downloads the weights, builds the engine, starts the server and runs a smoke test.
Performance
Measured, not promised.
Speed depends on the card's power limit. The decode numbers are at 300 W (Max-Q); prefill is shown at both 300 W and 600 W. Measured with sparkDash on an RTX PRO 6000 Blackwell Workstation Edition: 8 requests at once at 262,144 tokens each, FP8 KV, DSpark drafts, FP8 attention projections and the FP4/MXFP8 prefill tensor cores on.
Prefill, at 600 W and 300 W
How fast a prompt is read, by prompt size, and the time to first token.
| Prompt | 600 W tok/s | First token | 300 W tok/s | First token |
|---|---|---|---|---|
| 4K | 19,478.4 | 261 ms | 12,018.7 | 392 ms |
| 8K | 18,649.8 | 491 ms | 11,340.5 | 774 ms |
| 16K | 17,804.6 | 971 ms | 10,931.5 | 1.55 s |
| 32K | 16,446.1 | 2.04 s | 10,244.5 | 3.25 s |
| 64K | 14,307.1 | 4.63 s | 9,023.8 | 7.31 s |
| 128K | 11,338.0 | 11.61 s | 7,357.6 | 17.87 s |
Decode, prose, at 300 W
Temperature 0.7, thinking on, top-k 20, DSpark drafts: all requests together, per request, and the time to first token.
| Requests | Total tok/s | Per request | First token |
|---|---|---|---|
| 1 | 150.7 | 150.7 | 23 ms |
| 2 | 209.6 | 110.1 | 44 ms |
| 4 | 313.3 | 83.5 | 62 ms |
| 8 | 471.6 | 63.7 | 113 ms |
Code decodes faster with the drafts: 231.1 tok/s for one request and 652.5 for eight at once, in the recipe's README.
Speed preview
What 150.7 tok/s feels like.
Sample text played at the speed measured at 300 W, at about four characters a token: one request at 150.7 tok/s, or four at once at 83.5 tok/s each (313.3 combined). Switch between them in the window.
The model
A small looped MoE, as it was published.
Inkling 2 Mini has 26.4B parameters, 3.4B of them active (about 5.4B effective): a looped mixture of experts with 24 physical layers, the middle 12 looped three times for 48 layer visits, 8 of 128 experts a token, and 40 sliding 1,024-token attention visits plus 8 full ones, plus a 23-layer vision encoder (0.59 GiB in bf16). The NVIDIA ModelOpt checkpoint keeps the experts in NVFP4 (layers 0-19) and MXFP8 (20-23), with a bf16 MTP DSpark drafter.
| Start with | What it serves |
|---|---|
./start.sh | Thinking Machines' Inkling-2-Mini at a pinned revision, downloaded automatically and SHA-256 verified |
RERISKED=1 ./start.sh | A local Inkling-2-Mini-Derisked folder: Blackfrost's derivative with most safety refusals removed. Never downloaded automatically; treat its output as untrusted data |
Blackfrost's own deployment kit ships only for vLLM. This recipe serves the derivative on TensorFold with the same behaviour: vLLM's reasoning_effort and reasoning field, the SHA-256 checks and the readiness gate.
The engine
Powered by TensorFold.
TensorFold, by Ash Hart, is an open-source engine that serves language models on Apple Silicon and NVIDIA GPUs through an OpenAI-compatible API. This recipe runs its Zig engine, tensorfold-native, at Jürgen Schmied's Inkling 2 Mini CUDA engine (PR #4441, commit dc2ca8a1), built in a slim CUDA 13 container for the RTX PRO 6000's sm_120.
One card, eight windows
The weights, the vision tower and scratch take about 19.7 GiB, so the FP8 KV cache fits 8 streams of 262,144 tokens each, 2,097,152 active tokens, plus a 16 GiB prompt cache.
DSpark drafts
The checkpoint's own MTP module drafts tokens ahead on CUDA. Drafted replies match "draft": false ones token for token, which tools/exact.py checks.
Blackwell tensor cores
Prefill runs the experts on the card's native block-scaled FP4 and MXFP8 tensor cores, straight over TensorFold's packed weights, in 4,096-row prompt chunks.
Prompts kept
A chat's next turn resumes from the prompt cache: 99.4% to 99.5% reuse over 4 follow-up turns at 32K, with a warm prefill of 0.06 to 0.07 s.
On top of TensorFold
What the 17 patches do.
| Patches | What they do |
|---|---|
| 0001-0004 | Drafted verify windows with exact conv rollback and taps; the CUDA DSpark drafter (mtp.safetensors); --kv-cache fp8; Inkling 2's reply, reasoning and tool-call parser (ajensenwaud's PR #4124) |
| 0005-0009 | Kernel speedups, all exact: a tiled loop mix, batched DSpark holds, an FP8 draft head and layers, a 2-warp NVFP4 expert split, a certified lazy unembedding head, warp top-k, fused sliding prompt attention and multi-row projections |
| 0010-0012 | vLLM-compatible reasoning_effort and reasoning field; bf16 decode attention prefetch (cp.async); opt-in FP8 attention projections (TF_INKLING2_ATTN_FP8=1) |
| 0013 | Exact speedups for the RTX PRO 6000: 4,096-row prompt chunks and a 64-entry CUDA Graph cache for drafted and multi-row verify rounds |
| 0014 | Blackwell's native block-scaled tensor cores for the prefill experts (TF_INKLING2_PREFILL_TC=1): prompt activations quantized once a layer (38 MiB of scratch), FP4 for layers 0-19 and MXFP8 for 20-23, straight over TensorFold's packed weights |
| 0015 | Structured output (response_format, guided_*) and tool_choice (required or a named function) on CUDA, with grammar-masked draws and libtfgrammar.so built from the patched tree |
| 0016 | A native CUDA vision encoder for Inkling 2: the image processor (PNG, JPEG, WebP), the 23-layer ViT with tensor-core attention, the projector, and image embeddings spliced into each stream's prompt (--vision) |
| 0017 | Server and API fixes: a reply-grammar memory leak, an opt-in guard against calls to tools that were not offered (TF_TOOL_CALL_GUARD=1), up to 100 images a request, and --dashboard-open |
Checked on this card
All on GPU 0 with the default settings: six greedy prompts identical, token for token, drafted, with "draft": false and six at once (508 drafts accepted); 99.4% to 99.5% prompt reuse over four follow-up turns at 32K; a passphrase found in a 199,951-token prompt, with a cold prefill of 32.83 s; structured output and every tool_choice mode, with valid JSON and tool calls and no server errors; and images: PNG, JPEG, WebP, transparency, several images at once, images with a JSON schema, and follow-up turns that reuse a cached image prompt.
What you need
One GPU, and a little disk.
One RTX PRO 6000
One RTX PRO 6000 Blackwell (96 GB, sm_120) in a Linux x86_64 host, with current NVIDIA drivers (CUDA 13+).
Other Blackwell cards
Other sm_120 and sm_121 GPUs work by adjusting SM, PARALLEL and CONTEXT.
Docker
Docker with the NVIDIA Container Toolkit, and your user in the docker group.
Disk
About 15 GB under Docker's root for the slim CUDA image, plus about 20 GB for the checkpoint.
Quick start
One command, start to finish.
Clone and start
git clone https://github.com/MiaAI-Lab/Inkling-2-Mini-RTX-PRO-6000-TensorFold.git
cd Inkling-2-Mini-RTX-PRO-6000-TensorFold
./start.sh
The first run downloads thinkingmachines/Inkling-2-Mini (about 18.8 GB, resumable), builds the sm_120 image, verifies the checkpoint's SHA-256 once, starts the server on GPU 0 and port 8888, and runs a smoke test. DRY_RUN=1 ./start.sh prints the docker run command and changes nothing.
Talk to it
Any OpenAI client works with base_url = "http://<host>:8888/v1", and Anthropic clients with /v1/messages. The model reasons before it answers, so give replies enough max_tokens.
curl -s http://<host>:8888/v1/chat/completions -H 'Content-Type: application/json' -d '{
"model": "Inkling-2-Mini",
"messages": [{"role": "user", "content": "Write a Python fibonacci function."}],
"max_tokens": 2000
}'
./start.sh restart # restart (checks the settings before stopping)
GPU_ID=1 ./start.sh restart # pin it to another GPU
./stop.sh # stop, and free the card's memory
docker logs -f inkling2-mini-tf # logs
Memory
How the 96 GB is spent.
| With the defaults | GiB |
|---|---|
| Weights and scratch (17.60 target + 1.54 DSpark + 0.59 vision + scratch) | ~19.7 |
| Active KV: 8 streams at 262,144 tokens, 5.56 each | 44.5 |
| Prompt cache (about 770k more cached prompt tokens) | 16.0 |
| All KV memory | ~60.5 |
| Reserve kept free | 4.0 |
Every stream reserves its full window at startup. KV_DTYPE=bf16 (with, say, PARALLEL=4) gives an exact bf16 cache.
The API
OpenAI and Anthropic.
/v1/chat/completions,/v1/completions,/v1/responses,/v1/messages(Anthropic),/v1/models,/tokenize,/detokenize,/health,/metricsand/dashboard, with the modelInkling-2-Mini.- Thinking: the model reasons even at
reasoning_effort: "none"."chat_template_kwargs": {"reasoning_effort": "low"}adjusts it per request. - Exact reference:
"draft": falseturns drafting off for a request; drafted replies match it token for token. - Admission: when all
PARALLELslots are busy, a new request is refused rather than queued. - Images: PNG, JPEG and WebP as
image_urldata URLs, up to 100 a request (VISION_URLS=1also allows public HTTPS URLs). Follow-up turns reuse the cached image prompt. - Structured output and tools:
response_format(json_schema,json_object),guided_regex,guided_choiceandtool_choice(auto,requiredor a named function).
Settings
The ones you might change.
Set these in the environment (PARALLEL=4 ./start.sh restart) or in .env next to start.sh; the environment wins. Every default is in the recipe's scripts/config.sh.
| Setting | Default | Meaning |
|---|---|---|
GPU_ID | 0 | The card, by its nvidia-smi index |
PORT | 8888 | Where the API listens |
PARALLEL | 8 | Requests served together; each gets a full CONTEXT window |
CONTEXT | 262144 | Prompt + reply window per stream, up to 1,048,576 |
KV_DTYPE | fp8 | bf16 is the exact cache |
DRAFTS | 1 | DSpark drafts; 0 turns them off |
THINKING / REASONING_EFFORT | 1 / unset | Thinking on or off, and an optional default effort, from none to max |
MAX_TOKENS | 32768 | The reply budget when a request sets none |
VISION | 1 | The vision tower, about 0.59 GiB; 0 serves text only |
VISION_URLS | 0 | 1 also allows public HTTPS image URLs |
TF_INKLING2_ATTN_FP8 | 1 | FP8 attention projections; 0 for exact bf16 |
TF_INKLING2_PREFILL_TC | 1 | The FP4/MXFP8 prefill tensor cores; 0 for exact bf16 |
RERISKED | 0 | 1 serves a local Inkling-2-Mini-Derisked folder |
Licenses
Free, with a few rules.
- The recipe is MIT. That covers the repository's scripts only.
- The weights are not part of it: Inkling 2 Mini is Apache-2.0 with Thinking Machines' Model Acceptable Use Policy, and Inkling-2-Mini-Derisked comes under its upstream terms and notices.
- The image
scripts/prepare.shbuilds is based on NVIDIA's CUDA image, under the NVIDIA Deep Learning Container License and the NVIDIA Software License Agreement. By running the image you accept them.
Credits
Built on the work of others.
- TensorFold and
tensorfold-nativeby Ash Hart and the TensorFold contributors - Jürgen Schmied (@jschmied): the Inkling 2 Mini CUDA engine this recipe builds on (#4441, #4640)
- @ajensenwaud: Inkling 2's kernels and reply parser (patch 0004, #4124-#4128), whose drafter kernels this recipe's drafter adapts
- @BlivionIaG, @sethforprivacy, @gilby and @akol1: Inkling 2 Mini on Metal, its DSpark drafter and fixes, and the plan for Mini on CUDA and Metal
- Basalt by @jesdga95: the Blackwell prefill and chunking ideas
- Inkling 2 Mini by Thinking Machines; Inkling-2-Mini-Derisked by Blackfrost
- SvangenStudios: the reply-grammar memory fix that patch 0017 adapts (PR #28)
- xgrammar by the MLC-AI team, Zig by the Zig Software Foundation and its contributors, and NVIDIA CUDA
Patches 0001-0003 and 0005-0017 are mine; 0004 is ajensenwaud's. The full list is in the recipe's CREDITS.md.
Run it on your RTX PRO 6000.
Free and open, with every patch published.