#417417th of 433 in ML frameworks and libraries
kernelbench
Benchmark for LLM-written GPU kernels against PyTorch reference programs
Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.
Watch puts kernelbench on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.kernelbench is on your watch list. Its new releases and problems show there.
- Stars
- 1.3k
- License
- custom license
- Last commit
- Mar 2026
- Language
- Jupyter Notebook
960 on 6 May 20261,346 on 25 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
KernelBench gives an LLM PyTorch programs and asks it to write CUDA or DSL kernels, then checks correctness on randomized inputs and measures speedup over the PyTorch baseline. Tasks span four levels, from single operators to full model architectures, and results are scored with the fast_p metric. Scripts handle generation via litellm and evaluation locally or on Modal.
Who it is for: Researchers evaluating LLMs on GPU kernel generation
Strengths
- Scores correctness and speedup together with the fast_p metric at adjustable thresholds
- Backends include cuda, triton, cute, tilelang, thunderkittens, and hip for AMD
- Modal mode allows evaluation without a local GPU
- Dataset on HuggingFace; usable as a library (kernelbench.eval, timing)
Weaknesses
- Not an agent scaffold; README says to clone and modify it for experiments
- Profiling and kernel runs need a GPU, local or on Modal
- Reported results use fp32; fp16/bf16 support is newer, ThunderKittens is BF16 only
- Evaluation guidelines in EVAL.md are marked work in progress
What it needs
- GPU required
- Needs uv, PyTorch, litellm, Modal (optional), HuggingFace datasets
- Models: litellm-supported API models, Gemini, DeepSeek
Also in ML frameworks and libraries
See all 433| Rank | Project | Score |
|---|---|---|
| #415 | pytorch_sparsePyTorch extension for sparse matrix ops with autograd on CPU and GPU | 16 out of 100 |
| #416 | audiomentationsPython library for augmenting audio waveforms in ML training pipelines | 15 out of 100 |
| #418 | nnaudioPyTorch library that computes spectrograms on the GPU with trainable Fourier kernels | 15 out of 100 |
| #419 | igelYAML-driven CLI to train, evaluate and serve scikit-learn models without code | 14 out of 100 |
| #420 | stardistNucleus and cell instance segmentation in 2D and 3D microscopy images | 14 out of 100 |