Swift-Inkling-2-Mini — MXFP4 (GPTQ) + DFlash2
ukisai/Swift-Inkling-2-Mini with its dense weights
pre-quantized to MXFP4 with GPTQ, and the
DFlash2 drafter included, so one download serves the
model with speculative decoding.
Who this is for: AMD RDNA4 (Radeon AI PRO R9700, gfx1201) with
vllm-sly-radiance >= 1.15.7. That image already runs
Swift-Inkling-2-Mini in 4 bits by quantizing the dense weights at load time (round-to-nearest). This checkpoint
carries better 4-bit codes instead: same speed, about a third of the quality loss (numbers below).
What is in it
| Part | Format | Origin |
|---|---|---|
| Attention projections + LM head (145 tensors) | MXFP4 (E2M1 codes, E8M0 scale per 32), weight_packed + weight_scale |
GPTQ on the MXFP4 grid from Swift's bf16 weights |
| Routed experts, layers 0-19 | NVFP4 | Swift, byte-identical |
| Routed experts, layers 20-23 | NVFP4 (Swift ships MXFP8) | requantized offline, least-squares block scales |
| Router, norms, controllers, embedding, vision, small projections | bf16 | Swift, byte-identical |
mtp.safetensors |
bf16 | Swift, unchanged |
dflash2/ |
bf16 DFlash2 drafter | incoai/Inkling-2-Mini-DFlash2 @ 4f9088ea, unchanged |
Weights are split into 11 shards of at most 2 GB (model.safetensors.index.json), so the loader maps one shard at a
time. About 17 GB on disk, drafter included.
GPTQ used Hessians (x^T x per dense weight) collected on the base Inkling-2-Mini with ~1M tokens of a code- and agent-heavy prompt mix; Swift is a fine-tune of that base. Hessian-weighted error of the dense weights: 0.153 (GPTQ) against 0.555 (best round-to-nearest).
Quality
One R9700, vllm-sly-radiance 1.15.6 + the pre-quantized loader. Reference: the exact Swift checkpoint (bf16 dense weights, MXFP8 coda experts). 15,627 teacher-forced tokens (code, prose, German and English Markdown), top-20 prompt logprobs, plus the KL divergence on 8 free-running decode prompts.
| build | dNLL vs exact | KL(exact ‖ build) | top-1 agreement | decode KL |
|---|---|---|---|---|
| this checkpoint | +0.0108 ± 0.0045 | 0.0297 | 94.5 % | 0.018 |
| image default: RTN at load (dense MXFP4 + coda NVFP4) | +0.0304 ± 0.0053 | 0.0408 | 93.2 % | 0.029 |
| MSE scales + offline coda (no GPTQ) | +0.0252 ± 0.0052 | 0.0400 | 93.4 % | 0.026 |
An estimated two thirds of the remaining loss come from the NVFP4 coda experts (layers 20-23), which this build keeps for speed.
Speed
Same card, production configuration (DFlash2, k = 7, fp8 KV cache, prefix caching, CUDA graphs), against the original checkpoint served with the image defaults, measured 2026-12-04 in back-to-back GPU windows (prefill as A-B-B-A starts).
| measurement | original + image defaults | this checkpoint | Δ |
|---|---|---|---|
| BetterBench decode, weighted (tok/s) | 215.7 | 224.0 / 223.4 (2 starts) | +3.7 % |
| BetterBench decode, code (tok/s) | 221.9 | 239.2 / 238.5 | +7.6 % |
| accepted tokens per update, weighted | 4.68 | 4.90 | +4.7 % |
| decode at ~120k context, 6 different documents (mean tok/s) | 127.9 | 131.2 | +2.6 % |
| time per decode update at ~120k context | 27.07 ms | 27.12 ms | +0.2 % |
| prefill of ~115k tokens, 4 documents (ABBA, 2 starts each) | 43.75 s | 43.87 s | +0.3 % |
| decode, short prompt / 34k context (tok/s) | 155.3 / 116.8 | 159.0 / 138.7 |
The time per decode step is the same by construction (same kernels, same bytes); the gain comes from more accepted draft tokens, because the 4-bit model stays closer to the model the drafter was trained on.
Use
hf download slybase/Swift-Inkling-2-Mini-MXFP4-GPTQ-DFlash2 --local-dir /models/swift-inkling-2-mini-mxfp4
docker run --rm --device=/dev/kfd --device=/dev/dri --group-add video \
--security-opt seccomp=unconfined --ipc=host -p 8000:8000 \
-v /models/swift-inkling-2-mini-mxfp4:/model:ro \
ghcr.io/slybase/vllm-sly-radiance:1.15.7-rocm10.1 \
--model /model --served-model-name swift-inkling-2-mini \
--max-model-len 307200 --gpu-memory-utilization 0.92 --kv-cache-dtype fp8 \
--max-num-seqs 8 --no-async-scheduling --enable-prefix-caching --limit-mm-per-prompt '{"image":0}' \
--reasoning-parser inkling --enable-auto-tool-choice --tool-call-parser inkling \
--speculative-config '{"method":"dflash","model":"/model/dflash2","num_speculative_tokens":7,"draft_sample_method":"probabilistic","attention_backend":"TRITON_ATTN","kv_cache_dtype":"auto"}'
No environment variables are needed: the image detects the pre-quantized tensors. Tensor parallel 1 only. Stock vLLM
does not know the weight_packed / weight_scale dense format; the format is documented in
docs/INKLING2-MINI.md.
License
Apache-2.0, as the source checkpoints. LICENSE and NOTICE are carried over from Swift-Inkling-2-Mini;
NOTICE lists the changes (dense requantization, coda requantization, re-sharding) and the included drafter.
Lineage: thinkingmachines/Inkling-2-Mini →
ukisai/Swift-Inkling-2-Mini @ b4c962b2 → this
checkpoint (quantization: slybase).
- Downloads last month
- -
Model tree for slybase/Swift-Inkling-2-Mini-MXFP4-GPTQ-DFlash2
Base model
thinkingmachines/Inkling-2-Mini