Inkling-2-Mini Metal final (prequantized dense)

This is thinkingmachines/Inkling-2-Mini with its always-on/dense nn.Linears stored pre-quantized (Metal affine 4-bit, group 64), so loading performs no on-the-fly quantization. The native NVFP4/MXFP8 experts are unchanged.

The parent checkpoint stores the dense layers in bf16. hc_bench passes a runtime MetalConfig(4, 64) plan, which packs 201 linears during load and peaks at 37 GB. This checkpoint removes that pass.

Verified

Loaded with the stream-experts/inkling2-metal-perf stack, kernel pin ArthurZ/metal-moe-decode@8d84318f15ece7e2334a89573dcbeac1952b37e4:

load on-the-fly calls driver after empty_cache footprint peak
parent + runtime plan 201 linears 24.9 GiB 18 GB 37 GB
this checkpoint 0 17.8 GiB 18 GB 18 GB

hc_bench.py, base-4bit, 6 x 128 tokens, M3 Ultra:

  • this checkpoint: 71.39 tok/s (71.5 / 71.4 / 71.35 / 71.42 / 71.36 / 71.38), looping_output: false
  • parent + runtime plan: 79.14 tok/s

Requirements

  • huggingface/transformers branch inkling2-metal-perf (or newer).
  • ArthurZ/metal-moe-decode@8d84318f15ece7e2334a89573dcbeac1952b37e4.
  • The U32 init skip in 0001-inkling-skip-u32-init.diff; without it the loader runs float initializers on packed uint32 weights and raises normal_kernel_mps not implemented for 'UInt32'.

Make it

make_final_inkling_checkpoint.py <source> <output> loads the parent with the runtime Metal plan, disables sibling fusion while saving (so keys stay unfused), saves the packed MetalLinear weights/scales/qbiases and the native MetalFp4Experts banks, and writes the config plan.

Downloads last month
-
Safetensors
Model size
17B params
Tensor type
F32
路
U32
路
BF16
路
F8_E4M3
路
U8
路
Inference Providers NEW
This model isn't deployed by any Inference Provider. 馃檵 Ask for provider support

Model tree for ArthurZ/Inkling-2-Mini-metal-final

Finetuned
(45)
this model