NagaYu/litmus-kernels
Litmus Kernel Verification Corpus Correct and deliberately-broken Triton kernels, each broken one shipped with the input that exposes it. The corpus exists to measure one thing: how much of what a fixed-shape torch.rand() allclose test calls "correct" actually is. On this corpus the answer is that 88% of the planted bugs pass that test. Columns column meaning name kernel identifier family elementwise / reduction / softmax / layernorm / matmul /… See the full description on the dataset page: https://huggingface.co/datasets/NagaYu/litmus-kernels.
Litmus Kernel Verification Corpus
Correct and deliberately-broken Triton kernels, each broken one shipped with the input that exposes it.
The corpus exists to measure one thing: how much of what a fixed-shape torch.rand() allclose test calls "correct" actually is. On this corpus the answer is that 88% of the planted bugs pass that test.
Columns
Bug families
- `dtype_promotion` — 2 kernels
- `mask_leak` — 4 kernels
- `no_max_subtract` — 2 kernels
- `race` — 3 kernels
- `reduction_init` — 3 kernels
- `stride` — 2 kernels
Caveat
The corpus is deliberately bug-heavy (16 buggy, 9 correct), so the absolute "fraction correct" is a property of this corpus, not of kernels in general. The finding is the gap between the standard test's pass rate and the truth.
Reproduce
git clone https://github.com/NagaYu/litmus && cd litmus
pip install -e ".[dev]"
python benchmarks/run.py # regenerates the numbers aboveBuilt by Litmus -- error bounds, symbolic GPU safety checks and targeted falsification for Triton kernels. Interactive demo: Space.
