Inkling vs Qwen on One RTX 5090: Four Engines, One Card

Hand-drawn cartoon: a giant RTX 5090 card serves as a racetrack. A runner in an "INKLING" shirt jogs while reading a scroll, a thought bubble above him full of equations looping three times. Three pit-crew kids in caps labeled "BASALT", "vLLM" and "SGLang" chase after him with wrenches and clipboards, one dragging a long paper scroll marked "1M". Ahead, a runner in a "QWEN" shirt wearing a rocket pack labeled "ELSA" sprints toward a checkered finish line, where a man in a sweater holds up a stopwatch.

Follows More Than Double the Speed, the Elsa part-two post.

TL;DR

Inkling-2-Mini is a 26B mixture-of-experts model with vision, a 1M-token native context and reasoning on by default. We ran it on one RTX 5090 under three engines (Basalt, vLLM nightly and SGLang) and compared it with Qwen3.6-35B-A3B on Elsa, our own SGLang fork. On general benchmarks the models trade wins: Inkling leads on AIME, instruction following and OCR tables, Qwen on MMLU-Pro and GPQA. On speed it isn’t close. Elsa decodes 2,432 tok/s across twelve requests and reads prompts at 39K tok/s. Inkling’s best engine reaches 1,064 tok/s and 19K tok/s. Basalt is the fastest single-user engine (309 tok/s) and the only one to fit a 1M-token context on 32 GB. vLLM is the best server for many users. SGLang trails both on this model. Inkling’s accuracy edge comes from its reasoning tokens; with thinking off, it reads about like Qwen. Qwen on Elsa stays in production.


Why look at another model

Two RTX 5090s run Qwen3.6-35B-A3B on Elsa all day, mostly reading images and documents. When Inkling-2-Mini shipped with vision, a million-token context and good early benchmark numbers, the question was simple: is it better enough to replace Qwen, and what does it cost to serve?

The two models are built quite differently:

  Inkling-2-Mini Qwen3.6-35B-A3B
Total / active parameters 26.4B / 3.4B (5.4B effective) 35B / 3B
Experts 128, top-8 per token mixture of experts
Attention 20 of 24 layers sliding-window (1,024 tokens), 4 global hybrid linear (Gated DeltaNet) + full attention
Native context 1,048,576 262,144
Trick 12 middle layers run three passes MTP head for speculative decoding
Reasoning on by default off for our workloads

The looped layers matter. Each extra pass through the middle twelve layers adds about a billion effective active parameters, so every token costs roughly 5.4B parameters of compute, not 3.4B. Expect Inkling to be slower per token before any engine gets involved.

The whole job, as before, went to Claude: building engines, patching them, running every benchmark and checking its own numbers. I decided what to try and what to keep.

Four engines, one card

Here is where we ended up, as a decision chart. The rest of the post explains each branch.

  • Basalt 0.5.7 is a small, single-model engine with its own NVFP4/MX8 weight format (19 GB for Inkling). There is no upstream container, so we built one from the release tarball. It is built for one or a few users, long contexts and aggressive drafting (8 speculative tokens).
  • vLLM nightly had Inkling support days after release, with 7-token speculative drafting.
  • SGLang shipped a dedicated Inkling image. The nightly build can’t load the released checkpoint yet; that needs an open pull request.
  • Elsa is our SGLang fork tuned for Qwen3.6-35B-A3B NVFP4 on the 5090. It is model-specific, so it was the yardstick, not a candidate for Inkling.

Every engine ran on the same card with the same harness: an 8K-token unique prompt for prefill, and 1,024 sampled tokens at temperature 0.7 for decode, three rounds after a warm-up.

Generation: drafting wins alone, batching wins together

Decode throughput by engine and concurrency on one RTX 5090

Requests Basalt vLLM SGLang Elsa · Qwen3.6
1 309 194 176 428
4 554 475 467 1,169
8 — 789 712 1,919
12 — 1,064 962 2,432

Basalt is 60% faster than vLLM for a single request, and the reason is speculative decoding. It drafts eight tokens per step and its verify path is lean, so one user sees 309 tok/s. But Basalt was built for a few users at a time. We measured it up to four parallel slots, and its lead shrinks from 59% to 17% as requests are added.

vLLM and SGLang scale the other way. Per-request speed falls from about 190 to 90 tok/s, but the aggregate keeps climbing to twelve requests. The two are level up to four requests; from six up, vLLM leads by 10–13%.

Elsa beats all three by about 2.3× at twelve requests, and it’s worth saying why: it isn’t only the engine. Qwen activates fewer parameters per token, its MTP head accepts long drafts, and Elsa has had six weeks of tuning against our traffic. Inkling’s three passes through the middle layers are a cost no engine removes.

Prefill: the fix was a cache directory

Prefill throughput by engine and concurrency on one RTX 5090

On the first vLLM run, prefill was all over the place: 3.2K tok/s for one request, 15.1K for three, 8.9K for four. The GPU wasn’t the cause. Claude traced it to vLLM’s Inkling MoE kernels, which compute a block count from the exact number of tokens in a batch and pass it to Triton as a compile-time constant. Every new batch size above the CUDA-graph range triggered a 1.5–2.5 s recompile inside a live request. Triton warns only once per kernel name, so the logs stayed quiet. And its cache lived in a container directory that was thrown away on every recreate.

The fix had two parts. We moved TRITON_CACHE_DIR onto the persistent volume, and wrote a script that sends 632 batch shapes once per image (about six minutes cold, one minute warm). Afterwards vLLM prefill is flat at 18–19K tok/s, the best of the three Inkling engines. An upstream pull request that buckets the constant is open.

Once warmed, all three engines read prompts at 17–19K tok/s. Elsa reads Qwen prompts at 39K. Most of that gap is probably the model, not the engine: linear-attention layers and fewer active parameters.

Context length: where the engines really differ

Longest context that fits by engine

Inkling’s sliding-window layers keep only 1,024 tokens each; only four global layers hold the whole conversation. That makes a million tokens plausible on 32 GB, but only Basalt delivers it:

  • Basalt runs a full 1,048,576-token context with fp8 KV cache for one request. A 230K-token needle test read at 6.8K tok/s and then decoded at 223 tok/s. At 958K tokens it still worked, at 1.9K tok/s read and 59 tok/s decode, because past about 500K the experts spill to CPU memory.
  • vLLM fits 196K tokens by default with fp8 KV. Its reserve for in-flight activations is sized for 2,048-token prefill chunks; cutting chunks to 1,024 tokens (--max-num-batched-tokens 1024) grew the KV pool from 204K to 299K tokens and unlocked the full 256K. The price is about 10% prefill speed, with decode unchanged. A 240K-token needle passed in 46 s. KV formats below fp8 are rejected for this model.
  • SGLang’s fast attention kernel refuses fp8 KV with Inkling’s relative-position bias, so the cache stays bf16 and the context stops near 128K. With the default 10% sliding-window pool, the pool filled at about eight requests and SGLang started evicting running requests; raising it to 30% stopped that.
  • Elsa serves Qwen at its native 256K with fp8 KV and a host-memory cache behind it.

If you need half a million tokens in one prompt on a single 5090, Basalt is the only engine on this list that does it.

Vision: an image-size limit worth patching

Stock vLLM sizes Inkling’s vision encoder for 2,048-pixel images, about 2,700 image tokens. Larger images return HTTP 400. Raising only the encoder cache makes them hang. Changing one constant to 4,096 px (16.8 megapixels, about 10,600 tokens) cost 8K tokens of KV pool and still left 256K context. We also made the patch downscale oversize images instead of rejecting them.

Resolution matters for OCR. On olmOCR-bench, Inkling’s arXiv-math score climbed from 66 at 1,540 px to 77 at 2,048 and 81–83 at 2,560 and above, with the overall score flat beyond 2,048. A page costs about 2.1K image tokens at 2,048 px, 3.2K at 2,560 and 8.2K at 4,096.

Reasoning: the hidden cost of a thinking model

Inkling thinks by default, and on vision work much of its output is reasoning. Controlling that turned out harder than expected:

  • vLLM’s thinking_token_budget isn’t reliably enforced for Inkling. With a 256-token budget, about 70 of 228 OCR pages reasoned to the 16K limit and came back empty.
  • Banning the reasoning token outright broke a large share of calls. A soft logit bias was all-or-nothing: too weak did nothing, strong enough was the same as a ban.
  • What worked was reasoning_effort: none plus a retry that fires only when a call hits the length limit or returns nothing (temperature 0.6, top-p 0.95, repetition penalty 1.05). On 1,014 held-out olmOCR pages that gave zero empty or runaway outputs and 80.3 ± 1.3. An always-on repetition penalty hurt math and tables.

With thinking off, Inkling’s reading accuracy fell back to Qwen’s level. Its quality edge comes from the tokens it spends thinking, and those tokens are exactly what makes it slow.

Quality on general benchmarks

Benchmark Inkling-2-Mini Qwen3.6-35B
GSM8K 96.3 94.9
IFEval (strict) 91.1 89.1
MATH-500 98.8 89.8
MMLU-Pro (2K stratified) 82.3 84.7
GPQA-Diamond (avg@4) 79.3 81.3
AIME25 (avg@8) 89.6 47.9

Qwen’s AIME and MATH-500 scores are dragged down by truncation: half its AIME answers ran past the token limit. Inkling also writes longer answers (4.0K tokens vs 3.7K on MMLU-Pro).

On OCR the honest answer is a tie. On a 150-page olmOCR-bench sample, every model with a tuned prompt landed between 70 and 76, and the same Inkling configuration varied by 3.6 points from run to run. The robust findings were about prompting, not models. Asking for LaTeX math and pipe tables took Inkling from 46 to 72. Qwen writes LaTeX unprompted but ignores “omit headers and footers”; Inkling obeys it.

What we kept

Inkling sat behind our proxy on vLLM for three days: 256K context, twelve requests, vision at 16.8 MP. On our own document workload, which stays private, it read somewhat more accurately than Qwen but took about twice the wall time. With reasoning off, the accuracy edge went away. Our rule was to switch only for a clear quality win at no more than about twice the time, and Inkling didn’t clear it. Both 5090s are back on Qwen3.6 and Elsa.

What I’d tell anyone choosing an engine for Inkling on one card:

  • One user, long documents: Basalt. Fastest decode and the only 1M context.
  • Many users: vLLM nightly, with a persistent Triton cache, warmed MoE shapes and 1,024-token chunks if you need 256K.
  • SGLang: wait for fp8 KV support with relative bias and nightly checkpoint loading.
  • Throughput above all: a lighter model on a tuned engine still wins by 2×.

All numbers are from one RTX 5090 (32 GB). Inkling-2-Mini runs NVFP4/MX8 on Basalt 0.5.7, vLLM nightly 0.34.0rc1 and SGLang’s Inkling image; Qwen3.6-35B-A3B NVFP4 runs on Elsa 1.7. Decode is 1,024 sampled tokens at temperature 0.7, and prefill uses an ~8K-token prompt. General benchmarks ran through our LiteLLM proxy with thinking on. OCR is olmOCR-bench with prompts tuned per model.