cortiq 0.9.15: Inkling-2-Mini at 220 tok/s (298 with DSpark) and 14K tok/s prompts on one RTX PRO 6000

#33
by infosave - opened

An update to #18. cortiq 0.9.15 is out, and the CMF build of Inkling-2-Mini now carries the release's DSpark drafter: https://huggingface.co/infosave/Inkling-2-Mini-cmf (one file, Inkling-2-Mini-q4tp.cmf, 15.12 GB, every weight on one 24 GB card).

Fastest results, NVIDIA RTX PRO 6000 Blackwell, CUDA:

Decode 220.1 tok/s
Decode with DSpark, JSON / Python code 298.2 / 279.9 tok/s
Prompt of 2 048 tokens 0.15 s (14.0K tok/s)
Prompt of 32 768 tokens 2.69 s (12.2K tok/s), then 182.1 tok/s decode in 20.7 GB

Other hardware:

  • NVIDIA L4 (24 GB), CUDA: 50.9 tok/s, with DSpark 70.8 on code and 63.8 on JSON; a 32 768-token prompt in 31.5 s.
  • The same L4 over Vulkan: 35.4 tok/s.
  • MacBook Air M4 (24 GB): 25.0 tok/s through Metal, a 2 048-token prompt in 13.0 s; 10.3 tok/s on the CPU alone.

WikiText-2 perplexity 9.058 against 8.944 for the release's own weights in f32 (Transformers); CUDA, Vulkan and Metal agree within 0.1 %.

What made the CUDA numbers: fused decode kernels with programmatic dependent launch, prompt attention as a flash kernel on the tensor cores, the experts grouped in parallel GEMMs. On Metal: fused decode stages and flash attention on the simdgroup matrices.

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 --greedy --prompt "Why is the sky blue?"

DSpark runs on CUDA with greedy decoding (--greedy, or temperature 0 through cortiq serve); CMF_INKLING_SPEC=0 turns it off. Prebuilt binaries for Linux, macOS and Windows are on the releases page.

Sign up or log in to comment