Megakernel blog is out now
We implement a full layer (MoE + Attention) megakernel, achieving 1100 toks/s for Muse Spark, 2.1x faster than baseline.
Nvidia's Instruction cache makes it really hard to write bigger kernels. We ended up tuning both instruction and data caches at all levels for extreme latency hiding!
With this, some warps of next operation can start running before previous operation has finished - redefining what GPU utilization means.
Full blog post: https://t.co/ubZbSQpkKl
Muse Spark Open: 517 → 1,109 tokens/s on 8× GB300 with SGLang megakernels.
One kernel launch per layer, overlapping compute, memory loads and communication. Total launches per decode step drop from 1,450 to 97.
https://t.co/YXb3pGDKH3
In our new technical post, Pranjal Shankhdhar explains what makes this work:
- Prefetching weights into shared memory and L2 before they’re needed.
- Warming the instruction cache so large kernels don’t stall fetching their own code.
- Using data itself as a readiness signal for cross-GPU communication.
- Fusing the draft model to make drafting 2.6× faster.
The post also includes measured timelines, CUDA/PTX examples, and the tradeoffs behind stopping at one megakernel per layer.
"What does it mean to be a megakernel?"
It's very similar to how cpu programs evolved. Megakernel is equivalent to multiprogramming, and eventually becomes an GPU operating system.
GPUs are entering the CPU age.
Megakernel blog is out now
We implement a full layer (MoE + Attention) megakernel, achieving 1100 toks/s for Muse Spark, 2.1x faster than baseline.
Nvidia's Instruction cache makes it really hard to write bigger kernels. We ended up tuning both instruction and data caches at all levels for extreme latency hiding!
With this, some warps of next operation can start running before previous operation has finished - redefining what GPU utilization means.
Full blog post: https://t.co/ubZbSQpkKl
Muse Spark Open: 517 → 1,109 tokens/s on 8× GB300 with SGLang megakernels.
One kernel launch per layer, overlapping compute, memory loads and communication. Total launches per decode step drop from 1,450 to 97.
https://t.co/YXb3pGDKH3
In our new technical post, Pranjal Shankhdhar explains what makes this work:
- Prefetching weights into shared memory and L2 before they’re needed.
- Warming the instruction cache so large kernels don’t stall fetching their own code.
- Using data itself as a readiness signal for cross-GPU communication.
- Fusing the draft model to make drafting 2.6× faster.
The post also includes measured timelines, CUDA/PTX examples, and the tradeoffs behind stopping at one megakernel per layer.
"What does it mean to be a megakernel?"
It's very similar to how cpu programs evolved. Megakernel is equivalent to multiprogramming, and eventually becomes an GPU operating system.
GPUs are entering the CPU age.