Run this model with HF Jobs

Run ArthurZ/Inkling-2-Mini-metal-final on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/ArthurZ/Inkling-2-Mini-metal-final. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/ArthurZ/Inkling-2-Mini-metal-final on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/ArthurZ/Inkling-2-Mini-metal-final. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/ArthurZ/Inkling-2-Mini-metal-final. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

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
48
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
(196)
this model