CMF build for cortiq: Inkling-2-Mini on CUDA, Vulkan, Metal and CPU (one 14.7 GB file)

#18
by infosave - opened

Inkling-2-Mini now runs in cortiq 0.9.11, a Rust inference engine with no Python and no ML framework. The converted file is here: https://huggingface.co/infosave/Inkling-2-Mini-cmf

  • One file, Inkling-2-Mini-q4tp.cmf, 14.69 GB: the routed experts decoded from the release's NVFP4 / MXFP8 and stored as 4-bit q4tp, the attention and other dense matrices GPTQ-rounded, the head 8-bit.
  • The looped stack is implemented natively (48 layer applications with their own KV caches, the relative bias, sinks, short convolutions, block attention residuals, message gates between passes) and checked against the layers of transformers PR #51050 in f32 on the same windows: WikiText-2 perplexity 9.057 vs 8.944, 2 × 4096-token windows 7.383 vs 7.310. CUDA, Vulkan and Metal agree within 0.1 %.
  • NVIDIA L4 (24 GB), CUDA: 51.7 tok/s decode; a 32 768-token prompt in 111 s, 15.1 GB of the card. The same card over Vulkan: 18.7 tok/s. MacBook Air M4: 21.5 tok/s through Metal, 10.3 on the CPU.
  • The model's own chat template with the thinking-effort line (--reasoning-effort, --no-think), reasoning and JSON tool calls; cortiq serve gives an OpenAI-compatible API (reasoning_content, tool_calls).
cargo install cortiq-cli --features cuda
hf download infosave/Inkling-2-Mini-cmf Inkling-2-Mini-q4tp.cmf --local-dir .
CMF_GPU=cuda cortiq run Inkling-2-Mini-q4tp.cmf --prompt "Why is the sky blue?"

Text only for now: the vision tower and the MTP drafter are not converted. Thanks for releasing the weights under Apache-2.0!

Sign up or log in to comment