Serving Inkling 2 Mini Below Its Training Precision
Using our quantization-aware distillation (QAD) recipe, we quantize Inkling 2 Mini's remaining MXFP8 expert layers to NVFP4 near-losslessly—enabling end-to-end NVFP4 serving with gains in KV cache, throughput, and latency.
TL;DR
- Quantizing Inkling 2 Mini’s last 1/6 of expert layers (4 of 24) from MXFP8 to NVFP4 achieves end-to-end NVFP4 and frees 1.8 GiB of GPU memory.
- Across the 11 benchmarks we evaluate, direct PTQ degrades accuracy on tasks such as LiveCodeBench Pro and AutomationBench, while our QAD recipe recovers near-lossless performance with only 0.048B training tokens.
- On a single RTX 5090, the reclaimed memory expands KV cache by 44%–70%, boosts concurrent throughput by up to 39%, halves time to first token (TTFT) across four concurrent agent sessions, and unlocks DSpark speculative decoding for long-context agents (285 tok/s, +77%).
- More broadly, developing pre-deployment adaptation recipes like QAD has the potential to bridge the accuracy gap and unlock more aggressive low-precision serving configurations than training can stably support, with significant gains in efficiency.
Inkling 2 Mini is Thinking Machines Lab’s open-weight multimodal MoE model (26.4B total parameters, 5.4B effective active parameters across 24 layers, 1M context). It uses Thinking Machines’ end-to-end 4-bit training recipe [1]—running an NVFP4 forward pass in the MoE experts across every stage from pretraining through SFT and RL—so the released ~20 GB checkpoint ships directly in NVFP4 (3.6× fewer bits than BF16, natively accelerated on Blackwell GPUs) with no post-training quantization (PTQ) step.
Yet even under this end-to-end 4-bit training recipe, not every expert layer is actually 4-bit. Because training all layers in NVFP4 is unstable, Thinking Machines keeps the last 1/6 of layers in MXFP8:
“We keep the last 16.6% of layers in higher precision, which we compute in MXFP8 rather than BF16.” [1]
In Inkling 2 Mini, the experts in layers 0–19 ship in NVFP4, while layers 20–23 remain in MXFP8.
Those four layers are kept in MXFP8 for training stability, not inference. For serving, quantizing them to NVFP4 frees 1.8 GiB of GPU memory and enables end-to-end NVFP4 serving. Naive PTQ is not free, however: direct conversion hurts accuracy, especially on coding and agentic tasks. Using the QAD recipe from our upcoming paper [3], we recover near-lossless accuracy with only 0.048B training tokens—and on a single RTX 5090, that reclaimed memory unlocks much larger KV caches, higher concurrent throughput, and long-context speculative decoding that the official release cannot even fit.
End-to-end NVFP4 and what it costs
To convert the MoE experts in layers 20–23 from MXFP8 to NVFP4, we apply the same W4A4 NVFP4 configuration used in layers 0–19: both expert weights and activations run in NVFP4 (with FP8 E4M3 scales per 16-value block, per-expert FP32 outer scales for weights, and per-token outer scales for activations [1]). This shrinks the checkpoint from 19.53 GB to 17.61 GB, while leaving attention, embeddings, and the KV cache format unchanged.
Direct PTQ of these four layers comes at a clear accuracy cost: across our 11-benchmark suite spanning reasoning, code, long context, and agentic tasks, it drops 2.1 points on LiveCodeBench Pro, along with 0.5 to 0.7 points on SuperGPQA, LiveCodeBench v6, LongBench Pro, and AutomationBench (Table 1, End-to-end NVFP4 column).
Recovering accuracy with QAD
Quantization-Aware Distillation (QAD) uses the higher-precision model as a teacher to train the quantized student by minimizing the token-level KL divergence between their output distributions [2]:
\[\mathcal{L}_{\text{QAD}} = D_{\text{KL}}\!\left(p_{\text{teacher}} \,\|\, p_{\text{student}}\right) = \sum_{y \in V} p_{\text{teacher}}(y \mid x)\,\log\frac{p_{\text{teacher}}(y \mid x)}{p_{\text{student}}(y \mid x)}\]Unlike native quantized training—which quantizes both forward and backward passes to reduce training compute—QAD simulates NVFP4 quantization only in the forward pass while keeping backward-pass gradients and optimization in high precision [2].
In our setup, the official release serves as the teacher, the end-to-end NVFP4 model is the student, and only the four converted expert layers are updated while the rest of the model stays frozen. Following the recipe from our upcoming paper [3], recovery takes only 0.048B training tokens. We will open-source the code and data alongside the paper.
Overall, end-to-end NVFP4 + QAD matches or beats the official release on 8 of 11 benchmarks. It completely erases the LiveCodeBench Pro regression (62.0% → 64.1%), turns the PTQ dips on the AIME/HMMT set and LongBench Pro into slight gains, and widens the lead on BeyondAIME/OlymMATH-Hard/Apex and τ²-bench. Only three benchmarks remain marginally below baseline: SuperGPQA (−0.5), LiveCodeBench v6 (−0.4), and AutomationBench (−0.1).
Deploying on an RTX 5090
On a 32 GB GPU, the 1.8 GiB freed by end-to-end NVFP4 goes straight into the KV cache. SGLang’s Inkling 2 Mini cookbook provides two RTX 5090 configurations: a Standard configuration and a w/ DSpark (speculative decoding) configuration. All measurements below use the cookbook’s launch commands [4] verbatim, except for the context-limit adjustment under DSpark noted below.
KV cache capacity
Because DSpark reserves extra memory for speculative decoding, its baseline KV cache budget is tighter—so the same 1.8 GiB savings produces an even larger relative jump: +70% with DSpark (47,360 → 80,512 tokens) versus +44% in Standard mode (81,792 → 118,016 tokens) (Figure 1).
Throughput and queuing under load
For a single request, extra KV cache makes no difference: both models generate 150 to 165 tokens per second, since the four converted layers are a small fraction of the weights read per token. The gap opens up once requests share the GPU. Past 4 to 8 concurrent requests, the official release runs out of KV cache, its throughput plateaus, and incoming requests begin to queue, whereas end-to-end NVFP4 continues scaling to up to 39% higher output throughput (Figure 2).
That queuing translates directly into wait time. At 8 concurrent requests, median TTFT drops sharply across all three prompt/output regimes:
- 1K in / 1K out: 2.3 s → 0.13 s (~18× lower)
- 1K in / 8K out: 14.9 s → 2.1 s (~7× lower)
- 8K in / 1K out: 12.2 s → 3.3 s (~3.7× lower)
Long-context agent workloads
Agentic sessions are especially sensitive to KV cache capacity because every turn carries the full conversation history; in the AgentX traces we replayed, every session is at least 44K tokens long.
In the Standard configuration, both models can fit these sessions, and the extra cache pays off under concurrency. With four agent sessions sharing the GPU, end-to-end NVFP4 cuts mean TTFT in half (3.85 s → 1.87 s), reduces mean request latency by 25% (7.83 s → 5.89 s), and completes 9% more requests within 15 minutes (Figure 3).
With DSpark enabled—raising the context limit from the cookbook’s 32,768 tokens to 65,536 so these >44K-token sessions can run—the extra memory becomes a make-or-break difference. The official release’s 47,360-token KV cache cannot hold them and fails on the first session that exceeds it (50,700 tokens). End-to-end NVFP4 fits them comfortably and serves them one at a time at 285 tok/s per user (p90)—77% faster than the best the official release can achieve (Figure 4).
Takeaway
The precision a model needs for stable 4-bit training is not the precision it needs for serving. To our knowledge, this is the first demonstration that a natively NVFP4-trained model can be served with a more aggressive NVFP4 scheme than it was trained with, while lightweight QAD recovers near-lossless accuracy.
Even in a single-GPU deployment of Inkling 2 Mini, converting just its last four MXFP8 expert layers already unlocks large gains in KV cache capacity, throughput, and latency. More broadly, developing pre-deployment adaptation recipes like QAD has the potential to bridge the accuracy gap and unlock more aggressive low-precision serving configurations than training can stably support—with significant gains in efficiency.
References
- Jack Cook and Thinking Machines Lab. End-to-End 4-Bit Training. Thinking Machines Lab blog, November 2026.
- Meng Xin, Sweta Priyadarshi, et al. Quantization-Aware Distillation for NVFP4 Inference Accuracy Recovery. arXiv:2601.20088, 2026.
- Fanchao Chen, Minghao Yan, Jiantao Jiao, Shivaram Venkataraman. Deriving a Quantization-Aware Distillation Recipe for NVFP4 Inference Accuracy Recovery. 2026 (to be released).
- SGLang. Inkling-2-Mini cookbook. SGLang documentation.