Inkling-2-Mini: attention and output head re-quantized to NVFP4 (opt-in speed variant)
This file is our re-quantization of 145 BF16 tensors from
thinkingmachines/Inkling-2-Mini at revision
b85c3cfa615fc413cc9af3379f491b963f3b586a (model-00001-of-00001.safetensors, sha256 65e60f51…). The tensors are
the attention projections (wq_du, wk_dv, wv_dv, wr_du, gate_attn, wo_ud) of all 24 layers, plus the output
head (unembed), each converted to NVFP4. It is used only by the opt-in speed variant of the 1bit engine's Loom
card for Inkling-2-Mini. The default card runs these tensors at higher precision.
It trades accuracy for speed. Read the numbers before using it. On AMD Ryzen AI Max+ 395 (gfx1151):
| default card | speed variant (this file) | |
|---|---|---|
| mean KLD vs an HF bf16 reference (4,080 positions) | 0.004583 | 0.018259 (4×) |
| same top-1 token | 97.99 % | 95.07 % |
| perplexity ratio | 0.999 | 1.011 |
| decode tok/s at 0.7k / 5.6k context | 57.2 / 52.5 | 65.8 / 63.1 (+14 / +20 %) |
| prefill tok/s, 5.6k prompt | 2,067 | 1,998 (−3.9 %) |
Details: 1bit-MONSTER/engine#3333.
Format
Inkling-2-Mini-nvfp4-attention.gguf (622,844,480 bytes, sha256 028ac1cbab596e412cbcddfa6a80075ef26129337efb2c6294d1f67e3a604ff7)
is a GGUF container holding one int8 blob per tensor, named nvfp4.<gguf tensor name>. Each blob is laid out as:
- a 64-byte header: f32 global scale, u32 rows, u32 columns, magic
VPF4; - then the rows in ggml
block_nvfp4layout: 64 values per 36 bytes, i.e. four UE4M3 scales, then 32 bytes of E2M1 codes (low nibble = value j, high nibble = j+8 within each 16).
A value decodes as 2·E2M1[code] · UE4M3(scale)·0.5 · global. The global scale is amax/(6·448), and each 16-value
scale is the best of three representable UE4M3 values by squared error.
provenance.jsonl lists, for each of the 145 tensors, the upstream source tensor (name, dtype, shape, sha256 of its
bytes at the revision above) and the sha256 of the converted blob.
Licence and credit
Apache-2.0, the licence of the upstream model (LICENSE included). The model is by Thinking Machines; this file is a derived re-quantization of its weights. The Loom port it is used with is based on the loom-fun card by Jeremy Fowers and Daniel Holanda (MIT).
- Downloads last month
- 84
4-bit
Model tree for 1bit-MONSTER/Inkling-2-Mini-NVFP4-attention
Base model
thinkingmachines/Inkling-2-Mini