Inkling-2-Mini - hipfire quants
A hipfire quantization of thinkingmachines/Inkling-2-Mini. The source checkpoint mixes packed NVFP4 and MXFP8 expert weights with a hybrid local/global attention stack. The quantizer ingest for those formats is in place.
These files load in hipfire builds that include Inkling-2 support. llama.cpp cannot read them.
Status of the runtime support
Inkling-2 support is not in a released hipfire build yet. The implementation lives in PR #1192, still a draft at the time of writing. Build a binary from that branch before trying these files; a stock release refuses them as an unknown architecture.
The trunk carries provisional architecture id 24. What runs today is single-stream greedy generation with speculation off on gfx1100, fully resident. The loader refuses the rest: no MTP, no DFlash draft, no multi-slot batching, no pipeline split. Served chains hold through about 2.5k tokens of history; a single prefill near 3k tokens exhausts VRAM on the unoptimized path.
Only the uniform mq4 file loads on the GPU. The GPU loader accepts exactly that recipe (MQ4G256V2 dense, MQ4G256 experts, packed qt44 embed) and refuses every variant below at load: tier files fail on the Q8 embed, mq3 files on the dense quant type, Lloyd files on the expert repack. Those files are CPU-forward only until their kernels exist.
Files
| File | Recipe | Bytes | SHA-256 |
|---|---|---|---|
inkling2-mini-mq4.hfq |
MQ4 uniform: MQ4G256V2 dense, MQ4G256 experts | 13,927,188,480 | 9536b3fde8f38511032df41aaf1124cc81cb839a9deeb333c50a0b2961eebe3 |
inkling2-mini-mq4l.hfq |
MQ4L experts-only: Lloyd MQ4G256V2L experts with F32 sidecars, uniform dense | 13,928,101,888 | 9163e80118312559e76b121ac29f9ee72e06054e0e34726ad908769c2e738b5 |
inkling2-mini-mq3-base.hfq |
mq3v2 tier base: MQ3G256V2 dense, MQ4G256 experts, Q8 embed and unembed | 14,337,899,520 | 39f831003923a19372e7ccbc2cf7a2d1db6a401fb097e198a5ecbee0cc20fd42 |
Only three files are kept. The xt/pro tiers were removed: on arch 24 there are no lm_head- or ssm_out-named tensors for the higher tiers to lift, so every tier of a family held byte-identical tensor payloads (only the tier stamp differed).
The container holds 6,790 tensors. Vision tensors and the MTP sidecar from the source checkpoint are not included; these artifacts are text-only.
Reproduction
From the source safetensors with a hipfire build that has the Inkling-2 quantizer ingest:
target/release/hipfire-quantize --input <safetensors-dir> \
--format mq4v2 --arch-id 24 --output inkling2-mini-mq4.hfq
Tier files add --tier xt|base|pro, mq3 files use --format mq3v2, Lloyd files use --format mq4l-experts (experts only) or --format mq4v2-lloyd (full). No imatrix is used for any file here. The ingest dequantizes strict NVFP4 (1x16 E2M1 with E4M3 scale and amax / outer_scale_denominator) and MXFP8 (1x32), splits routed experts, regroups gate/up, and keeps a fixed list of tensors in F16.
Quality
Token-0 logits against the source checkpoint oracle (200,058 logits, CPU forward, argmax 31274 everywhere, same as oracle and F32):
| File | r vs oracle | KL vs F32 |
|---|---|---|
inkling2-mini-mq4.hfq |
0.990670 | 0.020067 |
inkling2-mini-mq4l.hfq |
0.991735 | 0.017553 |
inkling2-mini-mq3-base.hfq |
0.991740 | 0.021998 |
The standard eval_hipfire prefill evaluator scores the Qwen-family architectures and does not yet route Inkling-2, so these token-0 numbers stand in for a full KLD pin. Tensor-level dequantization was checked against the source weights during quantizer development, and the arch crate carries CPU oracle tests for the control, mix, convolution, relative-bias, SITU, sigmoid-top-k, softcap and attention primitives. Those checks cover the quantizer ingest and single operations, not end-to-end generation quality.
Speed
One runnable row (uniform mq4, gfx1100, HIP 7.16, hipfire bench --max-tokens 64 --runs 3 --warmups 1 --spec off --backend noslots --json): wall median 20.34 tok/s over 64-token runs (samples 20.95, 20.11, 20.34). The legacy terminal reports wall only, so decode, prefill and TTFT fields are null. Prefill scaling cells are unmeasurable: hipfire bench --matrix refuses arch 24 (hipfire: bench_decode requires a Qwen3.5, Qwen4, Gemma4, Muse Glimmer, or Raon model). The other two files cannot bench; they fail at GPU load (see Status).
Running
Build from PR #1192, then load by path:
hipfire run inkling2-mini-mq4.hfq "Explain how a retry queue prevents lost jobs."
The generation route is still being validated. Report failures with the build commit, GPU model and the decoded output.
License and provenance
Inkling-2-Mini is Apache-2.0 from Thinking Machines, with a separate Model Acceptable Use Policy. These files are format conversions of that checkpoint. No rights to the weights are claimed.
MagnumQuant and the FWHT-rotated MQ formats are original hipfire work, catalogued in PRIOR-ART.md. hipfire is authored primarily by Kaden Schutt. The Inkling-2 architecture port is PR #1192.
Model tree for Raufaser/Inkling-2-Mini-hipfire-MQ4
Base model
thinkingmachines/Inkling-2-Mini