Skip to main content

Inkling 2 Mini on a single Radeon AI PRO R9700: a million tokens of context, three ways

By: ElioVP
November 26, 2026
AI performance
Inkling 2 Mini on one R9700: 1M context with Paiton

After our work on Qwen 3.8 27B and Flash Next, we picked up a new model: Inkling 2 Mini from Thinking Machines. We spent our time on the kernels again. The experts, attention, the small operators, the vision tower and the drafter run in native HIP written for the R9700, and so does vLLM's per-step bookkeeping around them. This is part of Paiton, our AI optimization framework.

On a 32 GB R9700 at its 300 W power cap, the model now runs with its full context of 1,048,576 tokens. One request generates 151.8 tok/s greedy and 129.8 tok/s at the model's default temperature of 1.0. Four requests at once reach 288 to 296 tok/s in total. These are default-mode v1.2.0 vllm bench serve results with 1,024-token prompts and 512-token replies, not generation speeds after a million-token prompt.

There are three versions, and you pick one at start:

VersionStartContext per requestOutputOne user at temperature 1.0 (LocalMaxxing matrix)
Defaultserve-docker.sh1,048,576the model's own87 to 98 tok/s
Fastserve-docker.sh --fast524,800the model's own97 to 106 tok/s
Super fastserve-docker.sh --w31,048,576changed by quantization and sampling153 to 180 tok/s

The serving benchmarks below use our own R9700 build: vLLM 0.32.1.dev with the Paiton plugin, its launcher at the default settings unless a table says otherwise. Upstream's Inkling 2 Mini announcement covers a separate implementation; these are not stock-vLLM R9700 results. Every serving run used a fresh server. Outside LocalMaxxing, which reuses its context by design, every prompt was new to the server, so nothing came from the prefix cache. The context and generation sections include historical v1.0.0 results, identified below; the mode comparisons use v1.2.0. The separate expert-weight quality measurements described later were run outside the server on an MI355.

The header is an illustration. The charts use the benchmark values in the adjacent tables.

In this article

A million tokens in 32 GB

This section reports v1.0.0 and the build just before it, except for the two format 4 fact-recall rows at 260,062 and 1,038,312 prompt tokens, which were rerun on v1.2.0.

The launcher stores the cache of the model's full-attention layers in a 4-bit format by default ("format 4"). With it the whole 1,048,576-token context fits on the card next to the model. Two other formats trade context for a smaller measured numerical difference: --kv-cache fp8 and --kv-cache bf16.

CacheContext the card holdsCache memoryPeak VRAM
format 4 (default)1,048,5769.69 GiB29.92 GiB
fp8558,4969.69 GiB29.87 GiB
bf16279,2489.69 GiB29.85 GiB

Default-mode cache capacity from the historical runs above. Each format uses 9.69 GiB for the cache; this does not measure recall accuracy.

The model with its drafter and vision tower takes 18.49 GiB; the input embedding table stays in pinned system memory.

To check that the model can use that context, we run the test from our quality work: a long text with ten facts placed from 1% to 99% of its depth, then one question about all ten. One request per row, nothing cached, at most 4,000 generated tokens.

CachePrompt tokensFacts foundPrompt speedTime to first tokenGeneration, greedyGeneration, temperature 1.0
format 41,038,3128/10 and 10/10 greedy, 9/10 at temperature 1.0 (two texts)1,185 tok/s14 min 36 s103.6 tok/s117.4 tok/s
format 4260,0629/10 greedy and at temperature 1.0, no answer2,542 tok/s102 s193.6 tok/s141.8 tok/s
fp8464,86210/101,825 tok/s4 min 15 s105.9 tok/s100.5 tok/s
fp8260,06510/102,410 tok/s108 s120.8 tok/s105.0 tok/s
bf16239,58410/102,475 tok/s97 s117.2 tok/s99.6 tok/s

The 260,062-token row is a v1.2.0 run: greedy, the reasoning named 9 of the 10 facts and then repeated a line until the 4,000-token cap; at temperature 1.0 it also named 9 of 10 and the cap came before the answer. v1.0.0 found all ten on a different text.

The 1,038,312-token row is also a v1.2.0 run: greedy, the reasoning named 8 of the 10 facts, then repeated a list until the 4,000-token cap, so no answer came; at temperature 1.0 the reply gave 9 of 10. v1.0.0 gives the same greedy output on this text: the same loop, 8 of 10 in the reasoning. On a second text with new random facts, greedy gave all ten in the reply (1,190 tok/s); at temperature 1.0 its reasoning named all ten, but the 4,000-token cap came before the answer.

The other rows found all ten facts, greedy and at temperature 1.0, and gave them in the reply. Generation speed is measured after the first token, on each request's own reply; each prompt starts with a unique line, so the replies differ in length and in how often the drafter's guesses are accepted.

How much the cache format costs, measured against the model's bf16 reference arithmetic (KL divergence per token, with the noise of a second valid summation order taken off): format 4 adds about 0.005 and does not grow from 2K to 512K tokens; fp8 shows no cost we can measure. On our 35-task set all three formats score 34 of 35. The output head is stored as 8-bit rows when the model loads, which moves nothing we can measure. Those measurements do not remove the long-context recall failures above.

Prompt processing speed, one request (prompt tokens divided by the time to the first token):

Prompt tokensformat 4: first token, prompt speedbf16: first token, prompt speed
1,039317 ms, 3,278 tok/s302 ms, 3,440 tok/s
8,2072.20 s, 3,725 tok/s2.20 s, 3,739 tok/s
32,7839.02 s, 3,637 tok/s9.01 s, 3,638 tok/s
97,29530.4 s, 3,204 tok/s30.6 s, 3,177 tok/s
260,060 / 239,584105 s, 2,478 tok/s97 s, 2,475 tok/s
1,038,31114 min 46 s, 1,172 tok/sdoes not fit

Format 4 reads prompts as fast as bf16 and holds 3.75 times the context. The two columns come from two R9700s of the same model, which differ by a few percent.

Generation speed

These are historical v1.0.0 and pre-v1.0.0 runs. Current v1.2.0 comparisons follow in the Fast mode section.

The drafter is on by default: it proposes up to five tokens and the model checks them in one step. Greedy output is the same tokens with and without it. What it adds, measured with vllm bench serve on 1,024-token prompts and 512 generated tokens, on four fresh servers in the order off, on, on, off (total tok/s over all users, mean of the two runs per setting, which agree within 1%):

UsersGreedy, offGreedy, onTemperature 1.0, offTemperature 1.0, on
168.8151.3 (2.2x)68.9129.4 (1.9x)
2112.1200.9 (1.8x)112.1200.5 (1.8x)
4170.7284.9 (1.7x)169.5295.2 (1.7x)
8 (4 run, 4 wait)170.6293.2 (1.7x)171.3290.0 (1.7x)

Historical runs, 1,024-token prompts and 512-token replies. Means of two runs per setting; eight users means four running and four waiting. Values are in the table above.

The full grid, with latencies, at four prompt lengths is below. Real text (Python standard library source and a coding task), 512 generated tokens per request, drafter on; the last column is the same cell with --no-drafter. The server runs four requests at once: at eight users four wait for a slot, and that wait is part of their time to first token. p50 is the median; p99 is the 99th percentile of the measured requests.

1,039-token prompts: throughput and latency by concurrency

8 requests per cell at 1 and 2 users, 16 at 4, 32 at 8:

UsersSamplingTotal tok/sFirst token p50 / p99Time per token p50 / p99Without the drafter: tok/s, time per token p50
1greedy151.3317 ms / 321 ms6.0 / 7.6 ms68.8, 14.0 ms
1temperature 1.0129.4300 ms / 320 ms7.2 / 7.9 ms68.9, 14.0 ms
2greedy200.9380 ms / 590 ms8.8 / 9.8 ms112.1, 16.9 ms
2temperature 1.0199.5377 ms / 580 ms9.1 / 10.4 ms112.1, 16.9 ms
4greedy285.0417 ms / 1,103 ms12.8 / 14.2 ms170.8, 22.3 ms
4temperature 1.0296.0461 ms / 1,100 ms12.4 / 14.2 ms169.5, 22.5 ms
8 (4 run, 4 wait)greedy293.97,186 ms / 8,461 ms12.7 / 15.4 ms170.7, 22.5 ms
8 (4 run, 4 wait)temperature 1.0289.27,445 ms / 8,596 ms13.0 / 15.7 ms171.3, 22.4 ms
8,207-token prompts: throughput and latency by concurrency

The same request counts as for 1,039-token prompts:

UsersSamplingTotal tok/sFirst token p50 / p99Time per token p50 / p99Without the drafter: tok/s, time per token p50
1greedy88.92,203 ms / 2,243 ms7.3 / 7.9 ms54.8, 14.1 ms
1temperature 1.082.02,199 ms / 2,222 ms8.1 / 8.9 ms54.8, 14.1 ms
2greedy115.72,291 ms / 4,176 ms12.8 / 13.5 ms80.0, 20.2 ms
2temperature 1.0111.42,306 ms / 4,190 ms13.4 / 15.8 ms80.2, 20.2 ms
4greedy143.22,708 ms / 8,611 ms21.6 / 24.8 ms107.9, 32.0 ms
4temperature 1.0142.92,486 ms / 8,570 ms21.5 / 25.9 ms108.3, 31.7 ms
8 (4 run, 4 wait)greedy145.916.5 s / 22.3 s22.3 / 23.8 ms108.3, 32.2 ms
8 (4 run, 4 wait)temperature 1.0144.916.4 s / 23.1 s22.3 / 25.3 ms108.8, 32.0 ms
32,783-token prompts: throughput and latency by concurrency

4, 4, 8 and 16 requests at 1, 2, 4 and 8 users:

UsersSamplingTotal tok/sFirst token p50 / p99Time per token p50 / p99Without the drafter: tok/s, time per token p50
1greedy41.79,015 ms / 9,153 ms6.2 / 7.9 ms31.5, 14.4 ms
1temperature 1.040.99,015 ms / 9,149 ms7.0 / 7.7 ms31.5, 14.4 ms
2greedy46.99,371 ms / 17.9 s23.7 / 24.5 ms39.3, 32.0 ms
2temperature 1.045.39,729 ms / 17.8 s24.2 / 25.1 ms39.4, 32.0 ms
4greedy50.817.5 s / 36.9 s41.2 / 43.3 ms45.1, 66.4 ms
4temperature 1.050.316.0 s / 36.9 s41.1 / 47.3 ms45.3, 66.2 ms
8 (4 run, 4 wait)greedy52.253.2 s / 74.4 s43.7 / 49.6 ms45.5, 67.2 ms
8 (4 run, 4 wait)temperature 1.052.152.6 s / 74.6 s44.6 / 49.0 ms46.2, 67.1 ms
97,295-token prompts: throughput and latency by concurrency

2, 2, 4 and 8 requests at 1, 2, 4 and 8 users, so the p99 values rest on few requests:

UsersSamplingTotal tok/sFirst token p50 / p99Time per token p50 / p99Without the drafter: tok/s, time per token p50
1greedy14.930.4 s / 30.4 s7.7 / 8.0 ms13.7, 15.3 ms
1temperature 1.014.930.3 s / 30.3 s8.1 / 8.4 ms13.7, 15.3 ms
2greedy15.746.0 s / 61.2 s29.3 / 50.9 ms14.8, 44.4 ms
2temperature 1.015.645.9 s / 61.1 s26.1 / 43.9 ms14.8, 44.5 ms
4greedy16.276.3 s / 121.7 s50.4 / 51.1 ms15.8, 98.9 ms
4temperature 1.016.276.6 s / 121.8 s45.8 / 55.6 ms15.8, 99.0 ms
8 (4 run, 4 wait)greedy16.4139.1 s / 245.7 s44.4 / 50.1 ms16.1, 157.6 ms
8 (4 run, 4 wait)temperature 1.016.3139.4 s / 246.1 s46.1 / 60.5 ms16.1, 157.5 ms

Total tok/s counts generated tokens over the whole run, prompt time included, so it falls as the prompts get longer. The time per token of one request stays between 6.0 and 8.1 ms up to 95K tokens of prompt. With several users each request also waits for the steps in which the server reads the other users' prompts, so its time per token grows with the number of users and the prompt length; the drafter cuts that time by a third to more than half.

LocalMaxxing and BetterBench

Our LocalMaxxing submission is the super fast image on v1.2.0, listed with the quantization INT3+NVFP4+MXFP8: the inference matrix (24 cells) and the two speed tests, code-v1 at 189.3 tok/s and reasoning-v1 at 195.0. They ran with lmx 0.1.66 and its client llm-inference-bench 0.7.7, on one fresh server. The matrix prompt asks for a long encyclopedia article at temperature 1.0, 8,192 tokens per request and 30 s per cell, and the context is cached, as the method requires.

The drafter's guesses are accepted less often there than on code: 2.39 tokens per check step with the default, 3.06 with super fast. The default and fast mode ran the same matrix on the v1.2.0 image (one run each, not submitted); the cells of all three versions are in the table under "Fast mode" below. Our first submission, from v1.0.0, is still on the site: its matrix, code-v1 and reasoning-v1.

On the v1.2.0 image the two speed-test prompts (512-token replies) average 165.4 tok/s on code-v1 and 164.4 tok/s on reasoning-v1 with the default over four clean runs (155.0 to 177.6 and 154.7 to 176.8), and 194.4 and 198.2 with super fast over two (189.3 to 199.5 and 195.0 to 201.3); the submitted runs are the lower two.

The matrix stops at 128K. With 262,144 tokens of context one user still gets 91.5 tok/s with the default and 145.5 with super fast; with 524,288, 78.2 and 117.1 (lmx 0.1.66, one run each, not submitted).

BetterBench 0.6.0 on the v1.2.0 image, with its standard settings (temperature 0.7, top-p 0.95, top-k 20, 0 failed requests; 160 decode and 192 concurrency requests):

TestResult
Decode, 1 user153.5 tok/s, first token after 114 ms (median)
Concurrency, total140.0 tok/s at 1 user, 208.8 at 2, 299.8 at 4, 300.1 at 8 (4 run, 4 wait)
Prefill3,665 tok/s at 2K, 4,244 at 8K, 4,267 at 16K, 4,185 at 32K, 3,976 at 64K, 3,600 at 128K

Fast mode

Fast mode reads long prompts faster and improves single-user decode in most LocalMaxxing matrix cells. It is one flag, --fast, and it is opt-in; the default launch stays as described above. The output stays the model's own, with the numerical differences described below.

It changes two settings. Prompts are read in chunks of 2,048 tokens instead of 512, which raises prompt speed by 30 to 50% (8K to 128K tokens) but needs more memory for the work in flight, so the per-request context limit is 524,800 tokens instead of 1,048,576. And with one request the model checks 4 of the drafter's guesses per step instead of 5, which makes each step cheaper: one request generates at 97 to 106 tok/s on LocalMaxxing's matrix, against 87 to 98 with the default.

Neither setting changes the weights or the rule that decides which guesses are kept. Greedy replies to prompts of up to 512 tokens are the same tokens as with the defaults; longer prompts are read in larger pieces, which changes the order of some sums in attention, so a greedy reply can part from the default's after some tokens. In our check of 10 prompts from 2K to 32K tokens, none parted within 256 tokens. Both are valid outputs of the model.

At temperature 1.0 our sampler test finds no difference against serving without a drafter (0 of 12 cells). With ten facts hidden in a 516,065-token prompt at temperature 1.0, fast mode's reasoning named all ten, but the 4,000-token budget ran out before the answer started (one run; the prompt was read at 2,164 tok/s). Greedy, it gave all ten in the reply (prompt read at 2,140 tok/s).

The LocalMaxxing cells, default against fast mode and super fast (prompt tok/s for prefill, total tok/s for decode, same method as the LocalMaxxing section above, one fresh server for each version on the same card):

CellDefault--fastSuper fast
Prefill 8K3,9405,5625,715
Prefill 16K3,5505,3225,320
Prefill 32K3,5314,8885,294
Prefill 64K3,5244,6974,697
Prefill 128K3,0894,0224,081
Decode, no context93.8102.4179.7
Decode 4K87.3100.0165.6
Decode 16K92.9105.8170.5
Decode 32K88.1106.3161.3
Decode 64K91.296.6157.8
Decode 128K98.496.8152.8

v1.2.0, one run per mode on the same R9700. Prompt tokens per second; the table above contains the values.

v1.2.0, cached context and long encyclopedia replies. Super fast changes the output and sampling; this is not an equal-quality comparison. Values are in the table above.

A single decode cell can move by about 10% between two clean runs, because the number of accepted drafts varies; the prompt cells move far less. With two users fast mode reaches 143 to 167 tok/s in total and with four 230 to 246 (default 144 to 162 and 213 to 250).

Fast mode has no 4-user number at 128K: four requests with 128K tokens of context each, plus room for their replies, need more than its 524,832-token total cache. That total cache capacity is separate from the 524,800-token per-request context limit. On LocalMaxxing's two short speed tests one fast-mode run gave 152.0 tok/s (code-v1) and 166.6 (reasoning-v1), against the default's 165.4 and 164.4 on average over four runs. Fast mode speeds up long prompts and long prose replies, not short code, tool or chat replies: there its four drafts per step cost about 4%.

vllm bench serve with --fast on the v1.2.0 image (512-token replies, new prompts in every cell, one run), total tok/s, greedy / temperature 1.0:

Prompt tokens1 request2 at once4 at once8 sent (4 run, 4 wait)
1,024148.2 / 134.0207.7 / 205.5298.1 / 310.5307.8 / 301.7
8,19299.7 / 92.6132.6 / 129.7167.4 / 165.2169.3 / 170.6
32,76850.2 / 48.258.4 / 57.865.7 / 64.566.9 / 66.3

The default on the same image, one run: 151.8 / 129.8 tok/s with one request and 287.7 / 296.2 with four at 1,024-token prompts; 90.6 / 86.5 and 147.5 / 145.3 at 8,192.

Super fast: the 3-bit image

For the most speed there is a second image with 3-bit experts. It trades some accuracy for speed and keeps the full 1,048,576-token context per request. It is its own image, inkling-2-mini-w3-rdna4-v1.2.0, and --w3 starts it:

PAITON_BIND=127.0.0.1 ./models/Inkling-2-Mini/serve-docker.sh --w3

It runs the fast settings plus three changes that move the output:

  • The experts use 3-bit weights that we made from the publisher's checkpoint (all 24 layers). In our teacher-forced quality study, run outside the server on an MI355, they pick the same next token as the default 95.28% of the time (two runs of the default that differ only in the order of some attention sums agree on 97.18%) and add 0.019 to the KL divergence per token, on prompts up to 128K tokens. At 256K, 5 documents: 94.24% against 95.94%; at 512K, 5 documents: 95.01% against 97.09%. These are weight-quality measurements, not R9700 serving results. The files are on Hugging Face, and the launcher downloads them at the first start.
  • The attention projections are stored as 8-bit rows (about 0.003 KL against the default).
  • At a temperature above 0, a guessed token is also kept when the model gives it at least 10% probability, or 30% of the probability of its most likely token if that is lower. More guesses are kept per step, so generation is faster, and sampled replies are sharper, as at a lower temperature. Greedy requests are not touched by this rule.

This is the first version of the 3-bit weights, and we will improve their accuracy step by step, as with our 3-bit Qwen 3.8 27B.

On our 35-task set it solves 34 of 35 greedy, as the default does. At temperature 1.0 with three seeds the default passes 96 of 105, fast mode 99 and super fast 102. Three seeds can move such a total by about 5, so these totals do not rank the versions; by the next-token numbers super fast is below the other two.

The ten-fact check finds all ten facts in a 1,038,311-token prompt at temperature 1.0; super fast reads that prompt in 788.7 s (1,317 tok/s) and then generates at 125.5 tok/s. The 3-bit experts leave more of the card for the cache: 1,218,579 tokens in all. This is total cache capacity, not a higher per-request limit: each request still stops at 1,048,576 tokens.

v1.2.0 fact-recall runPrompt tokensTime to first token
Default, format 41,038,312876 s (14 min 36 s)
Super fast1,038,311788.7 s (13 min 9 s)

Separate v1.2.0 requests, with the prompt lengths shown above. This compares first-token waiting time, not recall quality; the default-mode failures are reported in the fact-recall section.

With two requests at once super fast reaches 235 to 287 tok/s in total and with four 356 to 400 (default 144 to 162 and 213 to 250). LocalMaxxing's two speed tests (512-token replies) average 194.4 tok/s on code-v1 and 198.2 on reasoning-v1 over two clean runs (189.3 to 199.5 and 195.0 to 201.3).

Run it

Clone the plugin repository:

git clone --depth 1 https://github.com/Eliovp-BV/paiton-vllm-plugin.git
cd paiton-vllm-plugin

Choose one launch command:

# Choose one, not all three:
PAITON_BIND=127.0.0.1 ./models/Inkling-2-Mini/serve-docker.sh            # default
PAITON_BIND=127.0.0.1 ./models/Inkling-2-Mini/serve-docker.sh --fast     # fast
PAITON_BIND=127.0.0.1 ./models/Inkling-2-Mini/serve-docker.sh --w3       # super fast: the 3-bit image

The first start downloads the pinned weights (super fast also its 3-bit expert files). The OpenAI-compatible API is on port 8042, model name inkling-2-mini. The commands above bind it to localhost. The launcher otherwise binds to 0.0.0.0 without authentication by default; configure PAITON_API_KEY and restrict network access before exposing it. --kv-cache fp8 or --kv-cache bf16 picks another cache format, and --no-drafter turns the drafter off.

Setup

AMD Radeon AI PRO R9700 (gfx1201, 32 GB) at its 300 W board power cap, Ryzen Threadripper 3960X, PCIe 4.0 x16, Ubuntu 24.04. Images:

  • ghcr.io/eliovp/paiton-vllm-plugin:inkling-2-mini-rdna4-v1.2.0, digest sha256:bc6b7b6d567f7afe4f40457be6b6a8d2f2d685365a263ae252a6f564a0b592cb (default and --fast).
  • ghcr.io/eliovp/paiton-vllm-plugin:inkling-2-mini-w3-rdna4-v1.2.0, digest sha256:7f1eaad71457b00f548d97fa66af9389ee6730dc8e718339cfeee5d7ed3a449e (super fast).

vLLM 0.32.1.dev with ROCm 10.2, model thinkingmachines/Inkling-2-Mini at revision 7a67ae23. Every serving job ran alone on its card through our GPU queue.

The sections "A million tokens in 32 GB" and "Generation speed" come from v1.0.0 (digest sha256:2c4d4ae8c1c22459fdc85ce0056116c979b3786f123c5044f5dda806dfff61c7) and the build just before it, except the 260,062-token and 1,038,312-token rows of the fact table, both v1.2.0 runs. v1.2.0 has the same model libraries except the expert library, whose prompt kernels are faster and give the same bits: with the default settings its greedy tokens are the same as v1.0.0's on our 11 check requests, alone and four at once.

The guide and launcher are in models/Inkling-2-Mini, with more tables in its BENCHMARKS.md.

Limits

  • On very long prompts greedy decoding can fall into a repeating loop (two of our three long greedy checks on v1.2.0, at 260,062 and 1,038,312 tokens; v1.0.0 repeats the same way), and at temperature 1.0 the reasoning can run past 4,000 tokens before the answer. Use the model's default sampling and give long answers a max_tokens above 4,000. A higher token budget is not a guarantee of correct recall.
  • The server runs at most four requests at once per card; more is not tested.
  • With the drafter on, vLLM refuses min_p and logit_bias in a request.
  • At a temperature above 0 with four requests at once, a seeded request does not give the same text twice. Alone it does, and greedy output is not affected.
  • A million-token prompt takes almost 15 minutes before the first token with the defaults (13 min 9 s with super fast).
  • Fast mode can word a reply to a prompt over 512 tokens differently from the default, because it reads the prompt in larger pieces. Both are valid outputs of the model.
  • Super fast changes the output; use the default or fast mode when you need the model's own.
  • On short replies that keep many drafted tokens, fast mode can be slower than the default (LocalMaxxing's code-v1: 152.0 tok/s in one fast-mode run, 165.4 on average over four runs for the default).

This is our first version, and we will keep working on the kernels to squeeze out the best numbers we can. We are working on a 16 GB version as well.