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.

Get the free recipe

Install with an AI agent

Install this model

Paste this into an AI coding agent that can run commands on the machine that will serve the model (the head node, for a Spark cluster), such as Claude Code or Codex. It reads the recipe, adapts it to your setup, starts the server and checks that it works.


        
RTX PRO 6000 in bold black letters inside a looping line on a dotted white background with violet light, with Thinking Machines at the top and Inkling-2-Mini at the bottom

Performance

Measured, not promised.

Prefill16,446.1tok/s, 32K prompt, 600 W
One request150.7tok/s, prose, 300 W
Eight at once471.6tok/s combined, 300 W
First token23 msone request, 300 W

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.

Prompt600 W tok/sFirst token300 W tok/sFirst token
4K19,478.4261 ms12,018.7392 ms
8K18,649.8491 ms11,340.5774 ms
16K17,804.6971 ms10,931.51.55 s
32K16,446.12.04 s10,244.53.25 s
64K14,307.14.63 s9,023.87.31 s
128K11,338.011.61 s7,357.617.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.

RequestsTotal tok/sPer requestFirst token
1150.7150.723 ms
2209.6110.144 ms
4313.383.562 ms
8471.663.7113 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.

TensorFold Zig · Inkling-2-Mini · 1× RTX PRO 6000
150.7 tok/sSample text, played at the measured speed

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 withWhat it serves
./start.shThinking Machines' Inkling-2-Mini at a pinned revision, downloaded automatically and SHA-256 verified
RERISKED=1 ./start.shA 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.

PatchesWhat they do
0001-0004Drafted 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-0009Kernel 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-0012vLLM-compatible reasoning_effort and reasoning field; bf16 decode attention prefetch (cp.async); opt-in FP8 attention projections (TF_INKLING2_ATTN_FP8=1)
0013Exact 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
0014Blackwell'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
0015Structured 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
0016A 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)
0017Server 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.

1

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.

2

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 defaultsGiB
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 each44.5
Prompt cache (about 770k more cached prompt tokens)16.0
All KV memory~60.5
Reserve kept free4.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, /metrics and /dashboard, with the model Inkling-2-Mini.
  • Thinking: the model reasons even at reasoning_effort: "none". "chat_template_kwargs": {"reasoning_effort": "low"} adjusts it per request.
  • Exact reference: "draft": false turns drafting off for a request; drafted replies match it token for token.
  • Admission: when all PARALLEL slots are busy, a new request is refused rather than queued.
  • Images: PNG, JPEG and WebP as image_url data URLs, up to 100 a request (VISION_URLS=1 also 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_choice and tool_choice (auto, required or 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.

SettingDefaultMeaning
GPU_ID0The card, by its nvidia-smi index
PORT8888Where the API listens
PARALLEL8Requests served together; each gets a full CONTEXT window
CONTEXT262144Prompt + reply window per stream, up to 1,048,576
KV_DTYPEfp8bf16 is the exact cache
DRAFTS1DSpark drafts; 0 turns them off
THINKING / REASONING_EFFORT1 / unsetThinking on or off, and an optional default effort, from none to max
MAX_TOKENS32768The reply budget when a request sets none
VISION1The vision tower, about 0.59 GiB; 0 serves text only
VISION_URLS01 also allows public HTTPS image URLs
TF_INKLING2_ATTN_FP81FP8 attention projections; 0 for exact bf16
TF_INKLING2_PREFILL_TC1The FP4/MXFP8 prefill tensor cores; 0 for exact bf16
RERISKED01 serves a local Inkling-2-Mini-Derisked folder

Licenses

Free, with a few rules.

Credits

Built on the work of others.

  • TensorFold and tensorfold-native by 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.