1 launch
per decode call. SmolLM-135M uses 842 launches with CUDA-graphed Inductor.
PyTorch compiler · MIT · Hopper
Compile supported Hugging Face models into one persistent CUDA
kernel. Keep your model code. Keep torch.compile.
Reduce kernel launch overhead.
compiled = torch.compile(
model,
backend=megabake.make_backend(),
)
Open source. MIT licensed. Built for NVIDIA Hopper.
CUDA / H200
1 launch
per decode call. SmolLM-135M uses 842 launches with CUDA-graphed Inductor.
2.09×
decode speedup on SmolLM-135M versus torch.compile with CUDA graphs: 2.29 ms to 1.10 ms.
128 tokens
static KV-cache capacity for the published batch-1, bf16 decode comparison.
6 models
published decode packages on an NVIDIA H200 MIG 3g.71gb partition.
Measured 24 October 2026. The table and downloads use the same published reports from megabake/megakernels.
Measured 24 Oct 2026
Six models, one GPU. Compare decode speed with CUDA-graphed Inductor, or open a breakdown for timings and model-specific notes.
H200 MIG · 60 SMs · bf16 · batch 1
| Rank | Hardware | ||
|---|---|---|---|
| 1 |
SmolLM-135M
HuggingFaceTB · 1d46172
|
NVIDIA H200
MIG 3g.71gb · 60 SMs · bf16
|
912 tok/s
2.09× faster109% faster
|
Measured 2026-10-24 18:06 UTC. Baseline: Hand-captured CUDA graph. MegaBake revision: |
|||
| 2 |
Qwen2-0.5B
Qwen · main
|
NVIDIA H200
MIG 3g.71gb · 60 SMs · bf16
|
759 tok/s
1.80× faster80% faster
|
Measured 2026-10-24 18:08 UTC. Baseline: Hand-captured CUDA graph. MegaBake revision: |
|||
| 3 |
DeepSeek-V3 draft 0.6B
jukofyork · main
|
NVIDIA H200
MIG 3g.71gb · 60 SMs · bf16
|
747 tok/s
1.76× faster76% faster
|
Measured 2026-10-24 18:09 UTC. Baseline: Hand-captured CUDA graph. MegaBake revision: |
|||
| 4 |
SmolLM-1.7B
HuggingFaceTB · main
|
NVIDIA H200
MIG 3g.71gb · 60 SMs · bf16
|
419 tok/s
1.30× faster30% faster
|
Measured 2026-10-24 18:07 UTC. Baseline: Hand-captured CUDA graph. MegaBake revision: |
|||
| 5 |
Beam DFlash2 draft
reflection · main
|
NVIDIA H200
MIG 3g.71gb · 60 SMs · bf16
|
399 tok/s
Within 10%Within 10%
|
Measured 2026-10-24 18:09 UTC. Baseline: Hand-captured CUDA graph. MegaBake revision: |
|||
| 6 |
gemma-2b
google · main
|
NVIDIA H200
MIG 3g.71gb · 60 SMs · bf16
|
298 tok/s
1.10× faster10% faster
|
Measured 2026-10-24 18:10 UTC. Baseline: Hand-captured CUDA graph. MegaBake revision: |
|||
No models in this filter.
Artifacts
Download a published H200 decode package for each model:
module.py, report.json, and
source_map.json. Needs the MegaBake revision pinned in
the report.
These are generated CuTe DSL sources, not standalone binaries or model weights. You need the model weights, a compatible Hopper GPU, and the matching MegaBake runtime. The package reports are the source of the leaderboard timings above. Upstream notes that the recorded compiler commit may have additional working-tree changes.
Source: megabake/megakernels. To get every kernel at once, download the full archive.
Integration & evaluation
Keep the PyTorch and Hugging Face model interface. Evaluate the compiled workload, then distribute a verified kernel alongside its model revision.
Read the current compiler statusHopper / SM90, bf16, static shape buckets, and bounded contiguous decode KV state. Six published decoders in this benchmark; performance and numerical agreement vary by model. Broader cache formats and production serving need further work.
Start with the pinned revision in a package’s report.json.
Check outputs across advancing decode calls and compare the complete call with CUDA-graphed Inductor
on the same GPU, shapes, and context.
Publish device bodies and revision-specific megakernels with explicit hardware, shape, runtime, and numerical requirements. This is an integration proposal; the downloadable packages currently live on GitHub.
Working today
megabake.bucketed covering a few prompt and batch lengths.Next
Why this matters