Hand-written CUDA kernels boost DGX Spark MoE inference 340x, from 0.15 to 51.4 tok/s

AIFlow_ML · x · 2026-11-29

On one DGX Spark, stock tinygrad ran Inkling 2 Mini at 0.15 tok/s; frankekn's CUDA kernels took it to 51.4 tok/s (one stream, no speculative decoding) — because tinygrad's MoE kernels were AMD-only, CUDA dequantized all 128 experts. Benchmark of 12 code-review tasks (4 concurrent): no draft model, the custom kernels finished 11/12 in 386s vs llama.cpp 3.5-bit GGUF at 505s; with a DFLASH2 draft model, 303s 12/12 vs TensorFold's 259-330s. Next step is batching verify attention (52k prompt single stream: 29.3 vs TensorFold 43.9 tok/s).

Original post →

More from Infra

Infra channel →