Datasets:
task_id stringlengths 6 25 | title stringlengths 6 63 | group stringlengths 3 3 | research_ids listlengths 1 1 | protocol_version stringclasses 1
value | hardware stringclasses 2
values | phases listlengths 1 2 | signatures listlengths 1 3 | baseline stringlengths 27 108 | statement stringlengths 184 1.48k | contract stringclasses 3
values | submission_template stringlengths 51 305 | public_cases_json stringlengths 432 1.65k | public_case_count int64 3 4 | task_path stringlengths 44 63 | prompt_sha256 stringlengths 64 64 | contract_sha256 stringclasses 3
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
softcap_softmax | Softcap Softmax | K01 | [
"ATT-A02"
] | 0.8.1 | 1x NVIDIA H100 80GB | [
"forward"
] | [
"softcap_softmax(logits, cap)"
] | Triton3.5.1/fused-standalone-softmax | # Softcap Softmax
Implement and optimize `softcap_softmax(logits, cap)` in submission.py.
FP32 P=softmax(cap*tanh(logits/cap)); positive scalar cap, no dropout.
Baseline: Triton3.5.1/fused-standalone-softmax (handwritten_fused).
Correctness on every workload is mandatory. Optimize GPU device latency and allocation ... | # H100 inference kernel benchmark v0.6
The main ranking covers 50 research entries, 51 callable interfaces and 14 groups.
ATT-A06 gives one entry of weight to its two interfaces, probability_value and softmax_value.
The public suite and calibration suite each contain 155 workloads. Four additional operators are availa... | def softcap_softmax(logits, cap):
raise NotImplementedError
| [{"baseline_profile": "h100-expansion-v05", "batch": 2, "dim": 64, "group": "K01", "heads": 8, "id": "softcap_softmax_0", "k": 2048, "kv_heads": 2, "n": 2048, "research_ids": ["ATT-A02"], "size": 64, "smoke": false, "task": "softcap_softmax"}, {"baseline_profile": "h100-expansion-v05", "batch": 2, "dim": 128, "group": ... | 3 | kernel_bench/taskpacks/v0.8.1-kernels/softcap_softmax | 2fbd1912029e500012d08c569f63d438b6f9043f9190e2e895ded11265b640ab | e1f8972247f5db7836e3db007a1e58cd0395b52a4ed17df671814068040342eb |
gqa_qk | Gqa Qk | K01 | [
"ATT-A05"
] | 0.8.1 | 1x NVIDIA H100 80GB | [
"forward"
] | [
"gqa_qk(q, k, scale)"
] | PyTorch-repeat-GQA-heads+cuBLAS-FP32-output+scale | # Gqa Qk
Implement and optimize `gqa_qk(q, k, scale)` in submission.py.
BF16 Q [B,Hq,Q,D], K [B,Hkv,K,D]; contiguous groups of Hq/Hkv query heads share K. Explicit FP32 scaled score output [B,Hq,Q,K].
Baseline: PyTorch-repeat-GQA-heads+cuBLAS-FP32-output+scale (composed).
Correctness on every workload is mandatory.... | # H100 inference kernel benchmark v0.6
The main ranking covers 50 research entries, 51 callable interfaces and 14 groups.
ATT-A06 gives one entry of weight to its two interfaces, probability_value and softmax_value.
The public suite and calibration suite each contain 155 workloads. Four additional operators are availa... | def gqa_qk(q, k, scale):
raise NotImplementedError
| [{"baseline_profile": "h100-expansion-v05", "batch": 2, "dim": 64, "group": "K01", "heads": 8, "id": "gqa_qk_0", "k": 2048, "kv_heads": 2, "n": 2048, "research_ids": ["ATT-A05"], "size": 64, "smoke": false, "task": "gqa_qk"}, {"baseline_profile": "h100-expansion-v05", "batch": 2, "dim": 128, "group": "K01", "heads": 16... | 3 | kernel_bench/taskpacks/v0.8.1-kernels/gqa_qk | 5403626f1bc38d7f7728cdeb98b462979fb374cdbd7adbaf29bdb979b792aeca | e1f8972247f5db7836e3db007a1e58cd0395b52a4ed17df671814068040342eb |
softmax_value | Softmax Value | K01 | [
"ATT-A06"
] | 0.8.1 | 1x NVIDIA H100 80GB | [
"forward"
] | [
"softmax_value(logits, v)"
] | PyTorch2.9.1/Inductor-max-autotune/composed | # Softmax Value
Implement and optimize `softmax_value(logits, v)` in submission.py.
FP32 logits [B,H,Q,K], BF16 V [B,H,K,D]; normalize in FP32 then multiply by V; output BF16 [B,H,Q,D].
Baseline: PyTorch2.9.1/Inductor-max-autotune/composed (composed).
Correctness on every workload is mandatory. Optimize GPU device ... | # H100 inference kernel benchmark v0.6
The main ranking covers 50 research entries, 51 callable interfaces and 14 groups.
ATT-A06 gives one entry of weight to its two interfaces, probability_value and softmax_value.
The public suite and calibration suite each contain 155 workloads. Four additional operators are availa... | def softmax_value(logits, v):
raise NotImplementedError
| [{"baseline_profile": "h100-expansion-v05", "batch": 2, "dim": 64, "group": "K01", "heads": 8, "id": "softmax_value_0", "k": 2048, "kv_heads": 2, "n": 2048, "research_ids": ["ATT-A06"], "size": 64, "smoke": false, "task": "softmax_value"}, {"baseline_profile": "h100-expansion-v05", "batch": 2, "dim": 128, "group": "K01... | 3 | kernel_bench/taskpacks/v0.8.1-kernels/softmax_value | be1faf9047d34a0ee112c1d476200539a51a4c1d07c47dd704518889e0022bbe | e1f8972247f5db7836e3db007a1e58cd0395b52a4ed17df671814068040342eb |
probability_value | Probability Value | K01 | [
"ATT-A06"
] | 0.8.1 | 1x NVIDIA H100 80GB | [
"forward"
] | [
"probability_value(probabilities, v)"
] | PyTorch2.9.1/cuBLAS-BF16-tensor-core | # Probability Value
Implement and optimize `probability_value(probabilities, v)` in submission.py.
BF16 probabilities [B,H,Q,K] are already normalized; BF16 V -> BF16 P@V. No softmax belongs to this separate interface.
Baseline: PyTorch2.9.1/cuBLAS-BF16-tensor-core (native_library_adapter).
Correctness on every wor... | # H100 inference kernel benchmark v0.6
The main ranking covers 50 research entries, 51 callable interfaces and 14 groups.
ATT-A06 gives one entry of weight to its two interfaces, probability_value and softmax_value.
The public suite and calibration suite each contain 155 workloads. Four additional operators are availa... | def probability_value(probabilities, v):
raise NotImplementedError
| [{"baseline_profile": "h100-expansion-v05", "batch": 2, "dim": 64, "group": "K01", "heads": 8, "id": "probability_value_0", "k": 2048, "kv_heads": 2, "n": 2048, "research_ids": ["ATT-A06"], "size": 64, "smoke": false, "task": "probability_value"}, {"baseline_profile": "h100-expansion-v05", "batch": 2, "dim": 128, "grou... | 3 | kernel_bench/taskpacks/v0.8.1-kernels/probability_value | 107f7241a1e3c02f8007714ceb4ceecd58488171dc51a99a2c0de7fc352c3fbe | e1f8972247f5db7836e3db007a1e58cd0395b52a4ed17df671814068040342eb |
dense_prefill | Dense Prefill | K02 | [
"ATT-B01"
] | 0.8.1 | 1x NVIDIA H100 80GB | [
"forward"
] | [
"dense_prefill(q, k, v, causal)"
] | PyTorch2.9.1/FlashAttention-or-FlashInferFA2 | # Dense Prefill
Implement and optimize `dense_prefill(q, k, v, causal)` in submission.py.
BF16 MHA/GQA/MQA Q/K/V [B,H,T,D], Q=K length, bottom-right causal or bidirectional attention; scale=1/sqrt(D).
Baseline: PyTorch2.9.1/FlashAttention-or-FlashInferFA2 (native_library_adapter).
Correctness on every workload is m... | # H100 inference kernel benchmark v0.6
The main ranking covers 50 research entries, 51 callable interfaces and 14 groups.
ATT-A06 gives one entry of weight to its two interfaces, probability_value and softmax_value.
The public suite and calibration suite each contain 155 workloads. Four additional operators are availa... | def dense_prefill(q, k, v, causal):
raise NotImplementedError
| [{"baseline_profile": "h100-expansion-v05", "batch": 2, "causal": true, "dim": 64, "group": "K02", "heads": 8, "id": "dense_prefill_0", "k": 2048, "kv_heads": 8, "n": 2048, "research_ids": ["ATT-B01"], "size": 128, "smoke": false, "task": "dense_prefill"}, {"baseline_profile": "h100-expansion-v05", "batch": 2, "causal"... | 3 | kernel_bench/taskpacks/v0.8.1-kernels/dense_prefill | fe59e4480386b5e106b51b93a336177aaed11be5bd749ea5793a140cdf66cbe9 | e1f8972247f5db7836e3db007a1e58cd0395b52a4ed17df671814068040342eb |
long_kv_decode | Long Kv Decode | K02 | [
"ATT-B02"
] | 0.8.1 | 1x NVIDIA H100 80GB | [
"forward"
] | [
"long_kv_decode(q, k, v)"
] | FlashInfer0.7.2.post1/native-adapter | # Long Kv Decode
Implement and optimize `long_kv_decode(q, k, v)` in submission.py.
BF16 GQA Q [B,H,1,D], contiguous K/V [B,Hkv,K,D], output BF16; no mask, full long KV reduction.
Baseline: FlashInfer0.7.2.post1/native-adapter (composed).
Correctness on every workload is mandatory. Optimize GPU device latency and a... | # H100 inference kernel benchmark v0.6
The main ranking covers 50 research entries, 51 callable interfaces and 14 groups.
ATT-A06 gives one entry of weight to its two interfaces, probability_value and softmax_value.
The public suite and calibration suite each contain 155 workloads. Four additional operators are availa... | def long_kv_decode(q, k, v):
raise NotImplementedError
| [{"baseline_profile": "h100-expansion-v05", "batch": 1, "dim": 64, "group": "K02", "heads": 8, "id": "long_kv_decode_0", "k": 2048, "kv_heads": 2, "n": 8192, "research_ids": ["ATT-B02"], "size": 64, "smoke": false, "task": "long_kv_decode"}, {"baseline_profile": "h100-expansion-v05", "batch": 4, "dim": 128, "group": "K... | 3 | kernel_bench/taskpacks/v0.8.1-kernels/long_kv_decode | bec8ce07ae28f94c96ac702ea7e2d4274d9b2a49f450dac11b56d8bbab50d9ed | e1f8972247f5db7836e3db007a1e58cd0395b52a4ed17df671814068040342eb |
chunk_prefill | Chunk Prefill | K02 | [
"ATT-B03"
] | 0.8.1 | 1x NVIDIA H100 80GB | [
"forward"
] | [
"chunk_prefill(q, k, v)"
] | FlashInfer0.7.2.post1/native-adapter | # Chunk Prefill
Implement and optimize `chunk_prefill(q, k, v)` in submission.py.
BF16 Q [B,H,Q,D], K/V [B,Hkv,K,D], Q<=K; query i sees keys j<=K-Q+i. Cache is already populated; no scheduler or cache allocator is included.
Baseline: FlashInfer0.7.2.post1/native-adapter (composed).
Correctness on every workload is ... | # H100 inference kernel benchmark v0.6
The main ranking covers 50 research entries, 51 callable interfaces and 14 groups.
ATT-A06 gives one entry of weight to its two interfaces, probability_value and softmax_value.
The public suite and calibration suite each contain 155 workloads. Four additional operators are availa... | def chunk_prefill(q, k, v):
raise NotImplementedError
| [{"baseline_profile": "h100-expansion-v05", "batch": 2, "dim": 64, "group": "K02", "heads": 8, "id": "chunk_prefill_0", "k": 2048, "kv_heads": 2, "n": 2048, "research_ids": ["ATT-B03"], "size": 128, "smoke": false, "task": "chunk_prefill"}, {"baseline_profile": "h100-expansion-v05", "batch": 2, "dim": 128, "group": "K0... | 3 | kernel_bench/taskpacks/v0.8.1-kernels/chunk_prefill | 0e8f316d0e8965a8290b97d9b10eea48eb4b097ac8465beb0f04e26d95fe7b93 | e1f8972247f5db7836e3db007a1e58cd0395b52a4ed17df671814068040342eb |
window_prefix_attention | Window Prefix Attention | K02 | [
"ATT-B04"
] | 0.8.1 | 1x NVIDIA H100 80GB | [
"forward"
] | [
"window_prefix_attention(q, k, v, window, prefix)"
] | H100/Triton-window-prefix-sparse-tiles | # Window Prefix Attention
Implement and optimize `window_prefix_attention(q, k, v, window, prefix)` in submission.py.
Bottom-right causal attention over union of j<prefix and j>=absolute_query-window+1. Overlap counted once; fixed scalar window/prefix.
Baseline: H100/Triton-window-prefix-sparse-tiles (specialized_tr... | # H100 inference kernel benchmark v0.6
The main ranking covers 50 research entries, 51 callable interfaces and 14 groups.
ATT-A06 gives one entry of weight to its two interfaces, probability_value and softmax_value.
The public suite and calibration suite each contain 155 workloads. Four additional operators are availa... | def window_prefix_attention(q, k, v, window, prefix):
raise NotImplementedError
| [{"baseline_profile": "h100-main-v081", "batch": 2, "dim": 64, "group": "K02", "heads": 8, "id": "window_prefix_attention_0", "k": 2048, "kv_heads": 2, "n": 2048, "research_ids": ["ATT-B04"], "size": 128, "smoke": false, "task": "window_prefix_attention"}, {"baseline_profile": "h100-main-v081", "batch": 2, "dim": 128, ... | 3 | kernel_bench/taskpacks/v0.8.1-kernels/window_prefix_attention | 6a82fdf3fc80b63fdbfe52fc690a263cc9197b942d7dd7286fab83718650af61 | e1f8972247f5db7836e3db007a1e58cd0395b52a4ed17df671814068040342eb |
sink_attention | Sink Attention | K02 | [
"ATT-B05"
] | 0.8.1 | 1x NVIDIA H100 80GB | [
"forward"
] | [
"sink_attention(q, k, v, sink_logits, cap)"
] | PyTorch2.9.1/FlexAttention/live-score-mod | # Sink Attention
Implement and optimize `sink_attention(q, k, v, sink_logits, cap)` in submission.py.
Causal attention with capped scores cap*tanh(QK/sqrt(D)/cap); one per-head virtual zero-valued sink logit contributes to denominator only.
Baseline: PyTorch2.9.1/FlexAttention/live-score-mod (composed).
Correctness... | # H100 inference kernel benchmark v0.6
The main ranking covers 50 research entries, 51 callable interfaces and 14 groups.
ATT-A06 gives one entry of weight to its two interfaces, probability_value and softmax_value.
The public suite and calibration suite each contain 155 workloads. Four additional operators are availa... | def sink_attention(q, k, v, sink_logits, cap):
raise NotImplementedError
| [{"baseline_profile": "h100-expansion-v05", "batch": 2, "dim": 64, "group": "K02", "heads": 8, "id": "sink_attention_0", "k": 2048, "kv_heads": 2, "n": 2048, "research_ids": ["ATT-B05"], "size": 128, "smoke": false, "task": "sink_attention"}, {"baseline_profile": "h100-expansion-v05", "batch": 2, "dim": 128, "group": "... | 3 | kernel_bench/taskpacks/v0.8.1-kernels/sink_attention | fb019dba139a0e61af3f8cf4cbaaba323006f1296ec0213b2b344fe066297d28 | e1f8972247f5db7836e3db007a1e58cd0395b52a4ed17df671814068040342eb |
document_attention | Document Attention | K02 | [
"ATT-B06"
] | 0.8.1 | 1x NVIDIA H100 80GB | [
"forward"
] | [
"document_attention(q, k, v, allowed)"
] | PyTorch2.9.1/FlexAttention/live-score-mod | # Document Attention
Implement and optimize `document_attention(q, k, v, allowed)` in submission.py.
Live GPU boolean [B,Q,K] mask freezes prefix-LM/document/tree visibility. No attention outside this mask; fully masked rows yield exactly zero.
Baseline: PyTorch2.9.1/FlexAttention/live-score-mod (compiler_generated)... | # H100 inference kernel benchmark v0.6
The main ranking covers 50 research entries, 51 callable interfaces and 14 groups.
ATT-A06 gives one entry of weight to its two interfaces, probability_value and softmax_value.
The public suite and calibration suite each contain 155 workloads. Four additional operators are availa... | def document_attention(q, k, v, allowed):
raise NotImplementedError
| [{"baseline_profile": "h100-expansion-v05", "batch": 2, "dim": 64, "group": "K02", "heads": 8, "id": "document_attention_0", "k": 2048, "kv_heads": 2, "mask_kind": "document", "n": 2048, "research_ids": ["ATT-B06"], "size": 128, "smoke": false, "task": "document_attention"}, {"baseline_profile": "h100-expansion-v05", "... | 3 | kernel_bench/taskpacks/v0.8.1-kernels/document_attention | dd15de34804b0f0a0a856978bd3b58db05d10604939eec713146f459ebc3a48f | e1f8972247f5db7836e3db007a1e58cd0395b52a4ed17df671814068040342eb |
shared_prefix_attention | Shared Prefix Attention | K02 | [
"ATT-B07"
] | 0.8.1 | 1x NVIDIA H100 80GB | [
"forward"
] | [
"shared_prefix_attention(q, prefix_k, prefix_v, suffix_k, suffix_v)"
] | FlashInfer-native-prefix/suffix-attention+merge-state | # Shared Prefix Attention
Implement and optimize `shared_prefix_attention(q, prefix_k, prefix_v, suffix_k, suffix_v)` in submission.py.
Decode Q [B,H,1,D]; shared prefix K/V [1,Hkv,P,D] plus per-request suffix [B,Hkv,S,D]. One softmax over concatenated prefix and suffix, not average of independently normalized output... | # H100 inference kernel benchmark v0.6
The main ranking covers 50 research entries, 51 callable interfaces and 14 groups.
ATT-A06 gives one entry of weight to its two interfaces, probability_value and softmax_value.
The public suite and calibration suite each contain 155 workloads. Four additional operators are availa... | def shared_prefix_attention(q, prefix_k, prefix_v, suffix_k, suffix_v):
raise NotImplementedError
| [{"baseline_profile": "h100-expansion-v05", "batch": 1, "dim": 64, "group": "K02", "heads": 8, "id": "shared_prefix_attention_0", "k": 2048, "kv_heads": 2, "n": 8192, "research_ids": ["ATT-B07"], "size": 64, "smoke": false, "task": "shared_prefix_attention"}, {"baseline_profile": "h100-expansion-v05", "batch": 4, "dim"... | 3 | kernel_bench/taskpacks/v0.8.1-kernels/shared_prefix_attention | 3e4572b380cbbee4cf8bf59750b70fc3ff48b937c7350d33c27d867968936e64 | e1f8972247f5db7836e3db007a1e58cd0395b52a4ed17df671814068040342eb |
paged_mla_decode | Paged Mla Decode | K03 | [
"ATT-C01"
] | 0.8.1 | 1x NVIDIA H100 80GB | [
"forward"
] | [
"paged_mla_decode(q, cache, page_table, lengths, scale)"
] | FlashMLA-ba89a346/native-SM90-BF16 | # Paged Mla Decode
Implement and optimize `paged_mla_decode(q, cache, page_table, lengths, scale)` in submission.py.
BF16 absorbed MLA Q [B,1,64/128,576], cache [pages,64,576], GPU page table and lengths. V is first512 cache channels. No expansion of latent cache; output [B,1,H,512].
Baseline: FlashMLA-ba89a346/nati... | # H100 inference kernel benchmark v0.6
The main ranking covers 50 research entries, 51 callable interfaces and 14 groups.
ATT-A06 gives one entry of weight to its two interfaces, probability_value and softmax_value.
The public suite and calibration suite each contain 155 workloads. Four additional operators are availa... | def paged_mla_decode(q, cache, page_table, lengths, scale):
raise NotImplementedError
| [{"baseline_profile": "h100-expansion-v05", "batch": 2, "dim": 64, "group": "K03", "heads": 64, "id": "paged_mla_decode_0", "k": 2048, "kv_heads": 2, "n": 4096, "research_ids": ["ATT-C01"], "size": 1, "smoke": false, "task": "paged_mla_decode"}, {"baseline_profile": "h100-expansion-v05", "batch": 2, "dim": 128, "group"... | 3 | kernel_bench/taskpacks/v0.8.1-kernels/paged_mla_decode | 15989f524ca7c2830baea17a90d6ae952b33046662ff613020a6c7dc8e774696 | e1f8972247f5db7836e3db007a1e58cd0395b52a4ed17df671814068040342eb |
paged_mla_prefill | Paged Mla Prefill | K03 | [
"ATT-C02"
] | 0.8.1 | 1x NVIDIA H100 80GB | [
"forward"
] | [
"paged_mla_prefill(q, cache, page_table, lengths, scale)"
] | FlashMLA-ba89a346/native-SM90-BF16 | # Paged Mla Prefill
Implement and optimize `paged_mla_prefill(q, cache, page_table, lengths, scale)` in submission.py.
Same BF16 absorbed paged MLA contract with Q>1 and bottom-right causal visibility. Cache append has already occurred; live page/length data are part of each call.
Baseline: FlashMLA-ba89a346/native-... | # H100 inference kernel benchmark v0.6
The main ranking covers 50 research entries, 51 callable interfaces and 14 groups.
ATT-A06 gives one entry of weight to its two interfaces, probability_value and softmax_value.
The public suite and calibration suite each contain 155 workloads. Four additional operators are availa... | def paged_mla_prefill(q, cache, page_table, lengths, scale):
raise NotImplementedError
| [{"baseline_profile": "h100-expansion-v05", "batch": 2, "dim": 64, "group": "K03", "heads": 64, "id": "paged_mla_prefill_0", "k": 2048, "kv_heads": 2, "n": 4096, "research_ids": ["ATT-C02"], "size": 1, "smoke": false, "task": "paged_mla_prefill"}, {"baseline_profile": "h100-expansion-v05", "batch": 2, "dim": 128, "grou... | 3 | kernel_bench/taskpacks/v0.8.1-kernels/paged_mla_prefill | fd1b1046e1bac3efe5b645fd3035c1be1c2e1e6d0f8df2c8115af49b58a1a44f | e1f8972247f5db7836e3db007a1e58cd0395b52a4ed17df671814068040342eb |
expanded_mla_prefill | Expanded Mla Prefill | K03 | [
"ATT-C03"
] | 0.8.1 | 1x NVIDIA H100 80GB | [
"forward"
] | [
"expanded_mla_prefill(q, k, v, offsets)"
] | Triton-BF16-QK/TF32-PV/packed-segments | # Expanded Mla Prefill
Implement and optimize `expanded_mla_prefill(q, k, v, offsets)` in submission.py.
Packed BF16 Q/K [T,H,192], V [T,H,128], fixed CPU segment offsets; causal attention per segment. This is expanded, not compressed, MLA.
Baseline: Triton-BF16-QK/TF32-PV/packed-segments (handwritten_fused).
Corre... | # H100 inference kernel benchmark v0.6
The main ranking covers 50 research entries, 51 callable interfaces and 14 groups.
ATT-A06 gives one entry of weight to its two interfaces, probability_value and softmax_value.
The public suite and calibration suite each contain 155 workloads. Four additional operators are availa... | def expanded_mla_prefill(q, k, v, offsets):
raise NotImplementedError
| [{"baseline_profile": "h100-expansion-v05", "batch": 2, "dim": 64, "group": "K03", "heads": 16, "id": "expanded_mla_prefill_0", "k": 2048, "kv_heads": 2, "n": 2048, "research_ids": ["ATT-C03"], "size": 128, "smoke": false, "task": "expanded_mla_prefill"}, {"baseline_profile": "h100-expansion-v05", "batch": 2, "dim": 12... | 3 | kernel_bench/taskpacks/v0.8.1-kernels/expanded_mla_prefill | 8576fb99b812f72a324c670dc2818ae46b0b8996fae311ecf27471a32b19997c | e1f8972247f5db7836e3db007a1e58cd0395b52a4ed17df671814068040342eb |
variable_sparse_attention | Variable Sparse Attention | K04 | [
"ATT-D02"
] | 0.8.1 | 1x NVIDIA H100 80GB | [
"forward"
] | [
"variable_sparse_attention(q, k, v, q_bounds, kv_bounds, block_mask)"
] | PyTorch2.9.1/FlexAttention/live-score-mod | # Variable Sparse Attention
Implement and optimize `variable_sparse_attention(q, k, v, q_bounds, kv_bounds, block_mask)` in submission.py.
Variable contiguous Q/KV partitions in GPU int32 bounds; boolean block graph [B,R,C], bottom-right causal intersection. Arbitrary block sizes, disjoint partitions, empty rows -> z... | # H100 inference kernel benchmark v0.6
The main ranking covers 50 research entries, 51 callable interfaces and 14 groups.
ATT-A06 gives one entry of weight to its two interfaces, probability_value and softmax_value.
The public suite and calibration suite each contain 155 workloads. Four additional operators are availa... | def variable_sparse_attention(q, k, v, q_bounds, kv_bounds, block_mask):
raise NotImplementedError
| [{"baseline_profile": "h100-expansion-v05", "batch": 2, "dim": 64, "group": "K04", "heads": 8, "id": "variable_sparse_attention_0", "k": 2048, "kv_heads": 2, "n": 2048, "research_ids": ["ATT-D02"], "size": 128, "smoke": false, "task": "variable_sparse_attention"}, {"baseline_profile": "h100-expansion-v05", "batch": 2, ... | 3 | kernel_bench/taskpacks/v0.8.1-kernels/variable_sparse_attention | edfbb756c342a21fbf43b995d7b6b9dda4dc16687f009cc7d825b5d81a75be50 | e1f8972247f5db7836e3db007a1e58cd0395b52a4ed17df671814068040342eb |
vertical_slash_attention | Vertical Slash Attention | K04 | [
"ATT-D03"
] | 0.8.1 | 1x NVIDIA H100 80GB | [
"forward"
] | [
"vertical_slash_attention(q, k, v, columns, diagonals)"
] | H100/Triton-vertical-slash-sorted-sparse-gather | # Vertical Slash Attention
Implement and optimize `vertical_slash_attention(q, k, v, columns, diagonals)` in submission.py.
Sparse attention over union of per-batch selected absolute KV columns and diagonals (absolute_query-key position), intersected with causal mask. Duplicated/overlapping selection counts once.
Ba... | # H100 inference kernel benchmark v0.6
The main ranking covers 50 research entries, 51 callable interfaces and 14 groups.
ATT-A06 gives one entry of weight to its two interfaces, probability_value and softmax_value.
The public suite and calibration suite each contain 155 workloads. Four additional operators are availa... | def vertical_slash_attention(q, k, v, columns, diagonals):
raise NotImplementedError
| [{"baseline_profile": "h100-main-v081", "batch": 2, "dim": 64, "group": "K04", "heads": 8, "id": "vertical_slash_attention_0", "k": 2048, "kv_heads": 2, "n": 2048, "research_ids": ["ATT-D03"], "size": 128, "smoke": false, "task": "vertical_slash_attention"}, {"baseline_profile": "h100-main-v081", "batch": 2, "dim": 128... | 3 | kernel_bench/taskpacks/v0.8.1-kernels/vertical_slash_attention | f2c45327670c8877c0dc3bc3b7b32f7b1375ea720a4de83ece8c700599cab70e | e1f8972247f5db7836e3db007a1e58cd0395b52a4ed17df671814068040342eb |
dsa_indexer | Dsa Indexer | K05 | [
"ATT-D05"
] | 0.8.1 | 1x NVIDIA H100 80GB | [
"forward"
] | [
"dsa_indexer(q, k, q_scale, k_scale, head_weights, top_k)"
] | Triton3.5.1/fused-FP8-storage-BF16-dot-indexer+stable-GPU-topk/strict-score-quality | # Dsa Indexer
Implement and optimize `dsa_indexer(q, k, q_scale, k_scale, head_weights, top_k)` in submission.py.
E4M3 Q [B,Q,64,128], K [B,K,128], positive FP32 per-vector scales; score=sum_h(weight*ReLU(dot(dequant Q,dequant K))). Return FP32 approximate top-k scores and unique int64 indices, descending reported sc... | # H100 inference kernel benchmark v0.6
The main ranking covers 50 research entries, 51 callable interfaces and 14 groups.
ATT-A06 gives one entry of weight to its two interfaces, probability_value and softmax_value.
The public suite and calibration suite each contain 155 workloads. Four additional operators are availa... | def dsa_indexer(q, k, q_scale, k_scale, head_weights, top_k):
raise NotImplementedError
| [{"baseline_profile": "h100-expansion-v05", "batch": 2, "dim": 128, "group": "K05", "heads": 64, "id": "dsa_indexer_0", "k": 2048, "kv_heads": 2, "n": 2048, "research_ids": ["ATT-D05"], "size": 128, "smoke": false, "task": "dsa_indexer", "top_k": 512}, {"baseline_profile": "h100-expansion-v05", "batch": 2, "dim": 128, ... | 3 | kernel_bench/taskpacks/v0.8.1-kernels/dsa_indexer | 0deb7a5311da1e10fe28c299d80cc0ee980b9b2cd26681a75da12526edbc1397 | e1f8972247f5db7836e3db007a1e58cd0395b52a4ed17df671814068040342eb |
fp8_kv_decode | Fp8 Kv Decode | K06 | [
"ATT-E01"
] | 0.8.1 | 1x NVIDIA H100 80GB | [
"forward"
] | [
"fp8_kv_decode(q, k, v, k_scale, v_scale)"
] | FlashInfer0.7.2.post1/native-adapter | # Fp8 Kv Decode
Implement and optimize `fp8_kv_decode(q, k, v, k_scale, v_scale)` in submission.py.
BF16 GQA decode Q; E4M3 K/V with one fixed CPU scalar scale each (native H100 FA2 decode contract). Softmax uses dequantized keys; output BF16. Quantization is outside this interface. Scales vary across workloads, rema... | # H100 inference kernel benchmark v0.6
The main ranking covers 50 research entries, 51 callable interfaces and 14 groups.
ATT-A06 gives one entry of weight to its two interfaces, probability_value and softmax_value.
The public suite and calibration suite each contain 155 workloads. Four additional operators are availa... | def fp8_kv_decode(q, k, v, k_scale, v_scale):
raise NotImplementedError
| [{"baseline_profile": "h100-expansion-v05", "batch": 1, "dim": 64, "group": "K06", "heads": 8, "id": "fp8_kv_decode_0", "k": 2048, "k_scale": 0.25, "kv_heads": 2, "n": 8192, "research_ids": ["ATT-E01"], "size": 64, "smoke": false, "task": "fp8_kv_decode", "v_scale": 1.25}, {"baseline_profile": "h100-expansion-v05", "ba... | 3 | kernel_bench/taskpacks/v0.8.1-kernels/fp8_kv_decode | 11f3cb39b57dfc7bdb0900069d1037cc311ffcb113918e523433137e8e1d16c5 | e1f8972247f5db7836e3db007a1e58cd0395b52a4ed17df671814068040342eb |
fp8_sparse_mla | Fp8 Sparse Mla | K06 | [
"ATT-E02"
] | 0.8.1 | 1x NVIDIA H100 80GB | [
"forward"
] | [
"fp8_sparse_mla(q, cache, indices, scale)"
] | Triton3.5.1/fused-FP8-cache-sparse-MLA/BF16-dot/strict-output-quality | # Fp8 Sparse Mla
Implement and optimize `fp8_sparse_mla(q, cache, indices, scale)` in submission.py.
Opaque uint8 cache [pages,64,1,656] in H100 FlashMLA V3.2 layout: each token has512 E4M3 NoPE bytes, four FP32 scales (one per128 channels), then64 BF16 RoPE values. BF16 Q [B,Q,64/128,576], live physical int32 indice... | # H100 inference kernel benchmark v0.6
The main ranking covers 50 research entries, 51 callable interfaces and 14 groups.
ATT-A06 gives one entry of weight to its two interfaces, probability_value and softmax_value.
The public suite and calibration suite each contain 155 workloads. Four additional operators are availa... | def fp8_sparse_mla(q, cache, indices, scale):
raise NotImplementedError
| [{"baseline_profile": "h100-expansion-v05", "batch": 2, "dim": 64, "group": "K06", "heads": 64, "id": "fp8_sparse_mla_0", "k": 2048, "kv_heads": 2, "n": 4096, "research_ids": ["ATT-E02"], "size": 1, "smoke": false, "task": "fp8_sparse_mla"}, {"baseline_profile": "h100-expansion-v05", "batch": 2, "dim": 128, "group": "K... | 3 | kernel_bench/taskpacks/v0.8.1-kernels/fp8_sparse_mla | 4b4662f1facff6d47de145f93e982ff462ca9f9a89decc96c9c3c9d292ec25e4 | e1f8972247f5db7836e3db007a1e58cd0395b52a4ed17df671814068040342eb |
GPU Kernel Benchmark
An executable benchmark for AI agents that implement and optimize GPU kernels. Protocol v0.8.1, public edition 1, source publication 2026-11-27.
| Item | Coverage |
|---|---|
| Scored research questions | 50, equally weighted |
| Submission packs | 51 across 14 capability groups |
| Public / calibration workloads | 155 / 155 |
| Smoke workloads | 51 |
| Hardware | 50 packs on one H100 80GB; Shared Mega MoE on one 8xB200 node |
| Forward and backward | CSA2 reindex/reuse and Shared Mega MoE |
| Agent development budget | 4 hours per pack, including public evaluation; no round limit |
| Final submission policy | Score the last submitted code |
Correctness, CUDA Graph replay with changed inputs, paired latency, timing stability, and fixed-module integration are evaluated. The complete grader, numerical references, frozen performance baselines, task statements and submission templates are included. Parquet files provide a browsable index; GPU execution is required to obtain a score.
Browse and load the tasks
The default tasks configuration contains one row per submission pack. It includes
the frozen task statement, contract, function template, hardware, baseline and public
cases. workloads has separate public, calibration and smoke splits.
Heterogeneous workload parameters are serialized in case_json or public_cases_json.
import json
from datasets import load_dataset
tasks = load_dataset("code-roamer/gpu-kernel-benchmark", "tasks", split="public")
workloads = load_dataset("code-roamer/gpu-kernel-benchmark", "workloads", split="public")
case = json.loads(workloads[0]["case_json"])
Download and run
pip install -U huggingface_hub
hf download code-roamer/gpu-kernel-benchmark --repo-type dataset --local-dir gpu-kernel-benchmark
cd gpu-kernel-benchmark
chmod +x python-gpu upstream-env.sh
python3 verify.py
python3 bench.py list
Follow the English quickstart to build H100 or B200 containers, install from public upstream sources, and run controls or submissions. Use Python 3.11 on x86-64 Linux for GPU evaluation. The portable release ZIP contains the same evaluation code and task packs, with executable file permissions. No private NAS, internal model gateway, or organization-specific service is required.
Capability coverage
| Group | Direction | Packs |
|---|---|---|
| K01 | Attention primitives | 4 |
| K02 | Dense and structured attention | 7 |
| K03 | Multi-head latent attention | 3 |
| K04 | Sparse attention and CSA2 | 5 |
| K05 | Attention indexing | 1 |
| K06 | FP8 attention and KV cache | 3 |
| K07 | QK normalization, RoPE and cache writes | 1 |
| K08 | Linear attention | 4 |
| K09 | Projection and low-rank adaptation | 3 |
| K10 | Quantized GEMM | 4 |
| K11 | Fused activation, normalization and quantization | 3 |
| K12 | MoE and expert parallelism | 6 |
| K13 | State-space kernels | 3 |
| K14 | Sampling and decoding kernels | 4 |
Evaluation and scoring
Correctness is checked against independent mathematical references, separately from
the performance baseline. Only correct, timing-stable submissions receive speedup
credit. For eligible questions, points are 100 * max(0, log2(L)), where L is the
paired 95% lower confidence bound of the hidden kernel speedup. Aggregate across all
50 questions. The two ATT-A06 interfaces share one question; their log-speedups are
weighted by hidden case count. CSA2 and Shared Mega MoE weight forward/backward equally.
Infrastructure failures and incomplete campaigns do not produce an official full score.
The public release excludes the original sealed evaluation inputs and private run artifacts. Generate a fresh hidden split with the supplied scaffold, keep it on the grader, and freeze it across compared agents. Give an agent only its task statement, contract, submission template and public development cases; the repository also contains trusted grader/reference code that should remain outside its working context.
Validation, provenance and limitations
validation.json records historical installation controls on native H100 and eight-B200 environments, for both the restored dependency path and public-source build path. These controls passed 51/51 smoke workloads for each installation path. They are not model scores and do not prove a complete Docker build on every host. New binaries, drivers or GPU models need local qualification and calibration. The four v0.8.1 reference kernels have frozen hashes and provenance.
The source publication includes the later artifact-compaction support; task contracts, workloads, reference-kernel hashes and scoring rules are unchanged. Python-only release checks and 33 relevant regression tests passed before this publication. Full GPU evaluation was not rerun as part of the upload. Historical comparison details may use different agent budgets and are not a fresh leaderboard for this publication.
This is a research benchmark for the specified hardware and workload distributions. The fixed integration block is synthetic, not a complete serving or training workload. The grader assumes cooperative submissions; process isolation is not an adversarial security sandbox. No energy-efficiency ranking is claimed. The task pack text is frozen and contains English and Chinese; reproduction guides are in English.
License
Original code and documentation use MIT. The derived Marlin layout helper retains its Apache-2.0 attribution and license; separately installed dependencies retain their own licenses. See NOTICE.md.
Detailed reproduction guide
GPU Kernel Benchmark · public edition 1
Protocol v0.8.1. 50 equally weighted research questions, 51 submission packs and 14 capability groups. The public and calibration splits each contain 155 workloads. The smoke split has one workload per pack. 50 packs run on one H100 80 GB each. Shared Mega MoE requires one host with eight peer-connected B200 GPUs (EP=8). CSA2 and Mega MoE evaluate both forward and backward.
Build from the extracted release with the single-H100 Dockerfile or the eight-B200 Dockerfile. The quickstart covers GPU access, the first baseline run, and submitting a kernel on your own machine.
Inspect the release
From the extracted directory, with Python 3.11:
python3 verify.py
python3 bench.py list
Every directory under kernel_bench/taskpacks/v0.8.1-kernels/ contains the statement
(TASK.md), numerical and workload contract (contracts.md), callable signatures
(submission.py), metadata and public cases. Copy the submission template outside the
release and implement the functions. Use the other files as the agent's task input.
The four historical reference kernels and their SHA-256 hashes are under
kernel_bench/baseline_v081/. The evaluator computes expected outputs independently.
Prepare a Linux GPU host
Use x86-64 Linux, Python 3.11, NVIDIA driver compatible with CUDA 12.9, CUDA 12.9 toolkit (frozen nvcc 12.9.86), PyTorch 2.9.1+cu128 and Triton 3.5.1. Native builds also need GCC/G++ (the reference build used 13.4), Git, CMake, Ninja, Python headers, and development headers for libelf and libdw. B200 requires working NCCL, NVLink, CUDA symmetric memory and profiler access. Run the grader on idle exclusive GPUs.
- Public upstream build. From the release root run
bash upstream-env.sh. It creates a local virtual environment, installs pinned binary distributions and builds FlashMLA and DeepGEMM from pinned Git revisions with their submodules. On Debian, use the native system compiler for FlashMLA and, when needed, a GCC 13 compiler for DeepGEMM, e.g.CC=gcc CXX=g++ DEEPGEMM_CXX=g++-13 bash upstream-env.sh. The compiler and runtime host must have a matching libstdc++ (GCC 13 builds can requireGLIBCXX_3.4.31). If using a separate compiler prefix, include its runtime library directory inLD_LIBRARY_PATHfor both preflight and evaluation. A cross compiler additionally needs host multiarch headers and linker startup objects. The PyTorch wheel index, PyPI and GitHub must be reachable. Rebuilt native code must be qualified on the target driver and hardware before comparing scores. - Frozen dependency restore. If supplied with the companion archive named
in
kernel_bench/h100_runtime.lock.json, create the base environment and restore the expert binaries and Mamba source into this checkout:
bash upstream-env.sh base
python3.11 -m kernel_bench.restore_h100_runtime /path/to/h100-runtime-v05-linux-cp311-r2.tar.gz
An existing matching Python can be selected with KERNELBENCH_BASE_PYTHON (absolute
executable path). On each H100 host, run ./python-gpu -m kernel_bench.preflight_h100.
On the B200 host, run the 8-GPU control below. A different GPU model, software
stack, or new binary build needs a separately reported calibration.
Run controls and submissions
python3 bench.py smoke window_prefix_attention --device 0 --out runs/h100-control
python3 bench.py run window_prefix_attention --candidate /path/to/submission.py --device 0 --out runs/my-window
python3 bench.py smoke csa2_reindex_reuse --device 0 --out runs/csa2-control
python3 bench.py smoke shared_mega_moe --device 0,1,2,3,4,5,6,7 --out runs/moe-control
Use a new output directory each time. The smoke commands use the trusted baseline as the candidate to check the installation. For scored submissions, the results include correctness, paired latency samples and stability. Ordinary kernels also include a fixed synthetic module measurement and allocator profiles. The module measurement describes that module, not serving latency.
The frozen dependency restore and the independent public-source build each passed 51/51 smoke workloads (50 on H100, one on 8×B200); per-task results and result hashes. These are installation controls. To repeat the additional 50-step training-trajectory check on an idle 8×B200 node, run:
./python-gpu -m torch.distributed.run --standalone --nproc-per-node=8 kernel_bench/candidates/shared_mega_moe/train_lm.py --native --steps 50
Reproduce an agent comparison
The scaffold accepts a configurable model endpoint and SSH-accessible Linux GPU
grader(s). Install this same source on the controller and workers. The H100/B200
workers share the grader directory; model credentials are read on the controller.
Copy agent.example.json to agent.local.json, edit your endpoint, model, key environment
variable, paths and SSH hosts, then run from the checkout root:
python3 -m kernel_bench.agent_trial --config agent.local.json --out kernel_bench/results/my-trial
python3 -m kernel_bench.summarize_trials kernel_bench/results/my-trial
The standard agent run gives each model four hours per pack, shared by model calls,
revisions and public GPU evaluation. Both turns and public_evaluation_seconds
are null. Final grading runs after the last submission is frozen. Record the
scaffold version, time limits, rounds, token usage and model latency with each score. The
controller returns only public feedback during development. Omit turns or use null
for time-budgeted iteration. Reuse a newly sealed split for comparisons using the
first run's private_reference run basename and hidden_suite_sha256 map (configuration
keys run and suite_sha256). Keep that split on the grader. Only the last submitted
code is judged. The original leaderboard's sealed inputs are excluded.
Scoring
For each eligible research question, use the hidden kernel speedup's paired 95% lower bound L. Public and hidden correctness and hidden timing stability (CV ≤10%) are required. Points = 100 × max(0, log2 L). Both ATT-A06 interfaces share one question; their hidden cases contribute in proportion to case count. CSA2 and Mega MoE weight both phases equally. Average over the 50 questions. Infrastructure failures and incomplete campaigns do not yield a full ranking. A smoke run or a single public result is not a leaderboard score. Raw speedups, fixed module measurements and scores answer different questions.
Published comparison · Baseline qualification · License · Third-party provenance.
- Downloads last month
- 32