Download data.json from QianQu/CompoundingKernel-Explorer: direct link, hf CLI and curl.
- Browser
- Download file 251 kB
-
https://huggingface.co/spaces/QianQu/CompoundingKernel-Explorer/resolve/main/data.json
- Command line
-
hf download hf://spaces/QianQu/CompoundingKernel-Explorer/data.json
-
curl -L -o data.json https://huggingface.co/spaces/QianQu/CompoundingKernel-Explorer/resolve/main/data.json
251 kB
{
"problems": [
{
"board": "L1",
"id": "001_attention_softmax_dropout_value_matmul_backward",
"name": "Attention softmax dropout value matmul backward",
"group": "Backward pass",
"op": "attention softmax + dropout + PV backward (GQA 80/8/128)",
"direction": "backward",
"model": "ByteDance/Seed-Seed-OSS-36B-Instruct",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/001_attention_softmax_dropout_value_matmul_backward",
"language": "CuTe DSL",
"files": [
{
"path": "kernel.py",
"lines": 19098,
"bytes": 1042720
}
],
"idea": "Per-shape CuTe DSL tcgen05 plans (TMA, TMEM): one fused kernel for dS and GQA-summed dV, or a dV + row-sum kernel then a dS kernel (PDL).",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.91296,
"speedup": 5.6271
}
}
},
{
"board": "L1",
"id": "002_vae_conv3x3_groupnorm_silu_residual_fused",
"name": "VAE conv3x3 GroupNorm SiLU residual fused",
"group": "Image and video",
"op": "VAE conv3x3 + GroupNorm + SiLU residual block",
"direction": "forward",
"model": "Efficient-Large-Model/Sana-Sprint-1.6B-1024px",
"workloads": 20,
"kernel": {
"dir": "kernels/L1/002_vae_conv3x3_groupnorm_silu_residual_fused",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 2,
"bytes": 128
},
{
"path": "kernel.h",
"lines": 35,
"bytes": 1753
},
{
"path": "kernel_body.cuh",
"lines": 5505,
"bytes": 334778
},
{
"path": "kernel_pw.cu",
"lines": 21,
"bytes": 931
},
{
"path": "kernel_rot.cu",
"lines": 21,
"bytes": 876
},
{
"path": "kernel_rot293.cu",
"lines": 21,
"bytes": 959
},
{
"path": "kernel_sub.cu",
"lines": 23,
"bytes": 1143
},
{
"path": "kernel_xp.cu",
"lines": 24,
"bytes": 1165
},
{
"path": "kernel_xp1024.cu",
"lines": 25,
"bytes": 1376
},
{
"path": "kernel_xp768.cu",
"lines": 25,
"bytes": 1371
},
{
"path": "kernel_xpr.cu",
"lines": 21,
"bytes": 917
},
{
"path": "kernel_xpr9.cu",
"lines": 21,
"bytes": 930
},
{
"path": "kernel_xpr9_16064064.cu",
"lines": 21,
"bytes": 973
},
{
"path": "kernel_xpr9_2256192.cu",
"lines": 21,
"bytes": 970
},
{
"path": "kernel_xpr9_2256256.cu",
"lines": 21,
"bytes": 970
},
{
"path": "kernel_xpr9_4256256.cu",
"lines": 21,
"bytes": 970
},
{
"path": "kernel_xpr9_8064128.cu",
"lines": 21,
"bytes": 970
},
{
"path": "kernel_xpsub.cu",
"lines": 25,
"bytes": 1144
},
{
"path": "main.cpp",
"lines": 201,
"bytes": 10167
}
],
"idea": "fp16 implicit-GEMM conv3x3 on tcgen05 (2-SM pairs, TMA boxes give the zero padding); GroupNorm sums gathered in conv epilogues and applied in the next pass; CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.865153,
"speedup": 3.2029
}
}
},
{
"board": "L1",
"id": "003_lm_head_projection_with_logit_slicing",
"name": "LM head projection with logit slicing",
"group": "Projections and GEMM",
"op": "LM head GEMM on the last N positions (logit slicing)",
"direction": "forward",
"model": "LGAI-EXAONE/EXAONE-4.0-1.2B",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/003_lm_head_projection_with_logit_slicing",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 1876,
"bytes": 127124
},
{
"path": "kernel.h",
"lines": 11,
"bytes": 719
},
{
"path": "main.cpp",
"lines": 41,
"bytes": 2520
}
],
"idea": "CUTLASS SM100 persistent warp-specialized GEMM: TMA loads, 2-SM tcgen05 MMA into TMEM, TMA-store epilogue; tile shape and swap-AB picked by token count; CUDA graph replay.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.57482,
"speedup": 1.0576
}
}
},
{
"board": "L1",
"id": "004_attention_output_projection_with_reshape_backward",
"name": "Attention output projection with reshape backward",
"group": "Backward pass",
"op": "attention o_proj + reshape backward",
"direction": "backward",
"model": "LiquidAI/LFM2-1.2B",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/004_attention_output_projection_with_reshape_backward",
"language": "CuTe DSL",
"files": [
{
"path": "main.py",
"lines": 5280,
"bytes": 313210
}
],
"idea": "One CuTe DSL warp-specialized tcgen05 kernel runs dW and dX tiles as one work list, using Cluster Launch Control work stealing; TMA stores dX per head.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.759676,
"speedup": 1.8489
}
}
},
{
"board": "L1",
"id": "005_conv_gated_projection_with_causal_conv",
"name": "Conv gated projection with causal conv",
"group": "State space and conv",
"op": "LFM2 short-conv block: in-proj, gate, causal depthwise conv1d, out-proj",
"direction": "forward",
"model": "LiquidAI/LFM2-1.2B",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/005_conv_gated_projection_with_causal_conv",
"language": "CUDA C++",
"files": [
{
"path": "k1.cu",
"lines": 1028,
"bytes": 58532
},
{
"path": "kernel.cu",
"lines": 3706,
"bytes": 234860
},
{
"path": "kernel.h",
"lines": 14,
"bytes": 1275
},
{
"path": "main.cpp",
"lines": 214,
"bytes": 9743
},
{
"path": "outproj.cu",
"lines": 709,
"bytes": 39987
},
{
"path": "small.cu",
"lines": 1155,
"bytes": 72385
},
{
"path": "twok.h",
"lines": 18,
"bytes": 1347
}
],
"idea": "One persistent 2-SM tcgen05 kernel with TMA: in-proj GEMM with the gating and causal conv fused in, then the out-proj GEMM, synced by per-tile ready flags",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.852297,
"speedup": 2.7254
}
}
},
{
"board": "L1",
"id": "006_hyena_depthwise_conv1d_split_gate",
"name": "Hyena depthwise Conv1D split gate",
"group": "State space and conv",
"op": "Hyena depthwise conv1d + split + gate",
"direction": "forward",
"model": "LongSafari/hyenadna-small-32k-seqlen-hf",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/006_hyena_depthwise_conv1d_split_gate",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 1849,
"bytes": 105505
},
{
"path": "main.cpp",
"lines": 262,
"bytes": 15307
}
],
"idea": "Memory-bound kernel picked by shape: small inputs use simple register code; larger ones bulk-copy the three channel rows into smem (cp.async.bulk + mbarrier), store with L2 hints.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.77704,
"speedup": 3.3738
}
}
},
{
"board": "L1",
"id": "007_hyena_fft_size_padding_rfft",
"name": "Hyena FFT size padding RFFT",
"group": "State space and conv",
"op": "Hyena FFT padding + rfft",
"direction": "forward",
"model": "LongSafari/hyenadna-small-32k-seqlen-hf",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/007_hyena_fft_size_padding_rfft",
"language": "CUDA C++",
"files": [
{
"path": "common.cuh",
"lines": 917,
"bytes": 44570
},
{
"path": "kernel.cu",
"lines": 2312,
"bytes": 115933
},
{
"path": "kernel.h",
"lines": 7,
"bytes": 503
},
{
"path": "kernel_b1600.cu",
"lines": 226,
"bytes": 9733
},
{
"path": "kernel_b4.cu",
"lines": 325,
"bytes": 12680
},
{
"path": "kernel_b4k.cu",
"lines": 209,
"bytes": 9147
},
{
"path": "kernel_bc2.cu",
"lines": 390,
"bytes": 16572
},
{
"path": "kernel_bc4.cu",
"lines": 175,
"bytes": 7370
},
{
"path": "kernel_blue2.cu",
"lines": 188,
"bytes": 8381
},
{
"path": "kernel_blue8.cu",
"lines": 121,
"bytes": 5075
},
{
"path": "kernel_c2r32.cu",
"lines": 851,
"bytes": 40634
},
{
"path": "kernel_c2v4.cu",
"lines": 210,
"bytes": 9359
},
{
"path": "kernel_c4d.cu",
"lines": 98,
"bytes": 4968
},
{
"path": "kernel_c4r32.cu",
"lines": 155,
"bytes": 6966
},
{
"path": "kernel_c8s.cu",
"lines": 132,
"bytes": 6523
},
{
"path": "kernel_chunk.cu",
"lines": 291,
"bytes": 13419
},
{
"path": "kernel_chunk2.cu",
"lines": 317,
"bytes": 12601
},
{
"path": "kernel_chunk3.cu",
"lines": 224,
"bytes": 9400
},
{
"path": "kernel_direct.cu",
"lines": 121,
"bytes": 4529
},
{
"path": "kernel_mr.cu",
"lines": 419,
"bytes": 16646
},
{
"path": "kernel_mrc.cu",
"lines": 405,
"bytes": 16942
},
{
"path": "kernel_multi.cu",
"lines": 250,
"bytes": 11699
},
{
"path": "kernel_new.cu",
"lines": 1260,
"bytes": 57641
},
{
"path": "kernel_pipe.cu",
"lines": 190,
"bytes": 7262
},
{
"path": "kernel_ported.cu",
"lines": 872,
"bytes": 39020
},
{
"path": "kernel_pre.cu",
"lines": 690,
"bytes": 29691
},
{
"path": "kernel_pre14.cu",
"lines": 512,
"bytes": 21276
},
{
"path": "kernel_pre2.cu",
"lines": 1,
"bytes": 25
},
{
"path": "kernel_pre2_r168.cu",
"lines": 5,
"bytes": 219
},
{
"path": "kernel_pre2_r200.cu",
"lines": 5,
"bytes": 219
},
{
"path": "kernel_pre2_r232.cu",
"lines": 5,
"bytes": 219
},
{
"path": "kernel_pre3.cu",
"lines": 639,
"bytes": 31868
},
{
"path": "kernel_pre4.cu",
"lines": 2,
"bytes": 48
},
{
"path": "kernel_pre4_r168.cu",
"lines": 5,
"bytes": 219
},
{
"path": "kernel_pre4_r200.cu",
"lines": 5,
"bytes": 219
},
{
"path": "kernel_pre4r.cu",
"lines": 5,
"bytes": 282
},
{
"path": "kernel_r1024.cu",
"lines": 568,
"bytes": 25348
},
{
"path": "kernel_r32k.cu",
"lines": 148,
"bytes": 6725
},
{
"path": "kernel_rad1321.cu",
"lines": 535,
"bytes": 25400
},
{
"path": "kernel_rad1489f.cu",
"lines": 584,
"bytes": 31065
},
{
"path": "kernel_rad8.cu",
"lines": 516,
"bytes": 25583
},
{
"path": "kernel_rader.cu",
"lines": 253,
"bytes": 12231
},
{
"path": "kernel_rader1489.cu",
"lines": 200,
"bytes": 9474
},
{
"path": "kernel_s8r32.cu",
"lines": 902,
"bytes": 45379
},
{
"path": "kernel_sweep.cu",
"lines": 1633,
"bytes": 77105
},
{
"path": "kernel_v4.cu",
"lines": 212,
"bytes": 9610
},
{
"path": "kernel_warp.cu",
"lines": 501,
"bytes": 19440
},
{
"path": "kernel_wd2.cu",
"lines": 180,
"bytes": 7646
},
{
"path": "kernel_wreg.cu",
"lines": 226,
"bytes": 9551
},
{
"path": "kernel_wrow.cu",
"lines": 196,
"bytes": 8406
},
{
"path": "main.cpp",
"lines": 54,
"bytes": 2854
},
{
"path": "pre2_body.cuh",
"lines": 1100,
"bytes": 52093
},
{
"path": "pre4_body.cuh",
"lines": 1202,
"bytes": 60369
}
],
"idea": "Custom shared-memory Stockham FFT kernels chosen per shape: power-of-two N packs pairs of reals into a half-size complex FFT; other N use Bluestein or Rader FFTs.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.859569,
"speedup": 5.5577
}
}
},
{
"board": "L1",
"id": "008_expert_output_weighted_index_add_accumulation",
"name": "Expert output weighted index add accumulation",
"group": "MLP and MoE",
"op": "MoE combine: weighted index_add of expert outputs",
"direction": "forward",
"model": "MiniMaxAI/MiniMax-M2",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/008_expert_output_weighted_index_add_accumulation",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 2568,
"bytes": 174627
},
{
"path": "main.cpp",
"lines": 440,
"bytes": 29517
}
],
"idea": "By token count: small batches do bf16x2 vector atomic adds into a pre-zeroed output; large ones bucket rows by token, then gather-sum each row.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.901851,
"speedup": 8.251
}
}
},
{
"board": "L1",
"id": "009_expert_token_scatter_with_weighted_forward_backward",
"name": "Expert token scatter with weighted forward backward",
"group": "Backward pass",
"op": "MoE token scatter, weighted, forward + backward",
"direction": "backward",
"model": "MiniMaxAI/MiniMax-M2",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/009_expert_token_scatter_with_weighted_forward_backward",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 6744,
"bytes": 398832
},
{
"path": "kernel.h",
"lines": 38,
"bytes": 1484
},
{
"path": "main.cpp",
"lines": 65,
"bytes": 3665
},
{
"path": "static_table.h",
"lines": 31,
"bytes": 2848
}
],
"idea": "Cached CUDA graph of CUTLASS and custom tcgen05 GEMMs plus a SwiGLU-backward kernel; the skinny dx chain runs on a high-priority stream, weight grads on a low one.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.958998,
"speedup": 10.8051
}
}
},
{
"board": "L1",
"id": "010_attention_value_projection_with_transpose",
"name": "Attention value projection with transpose",
"group": "Projections and GEMM",
"op": "V projection (5120 -> 1024) + reshape / transpose",
"direction": "forward",
"model": "NousResearch/DeepHermes-3-Mistral-24B-Preview",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/010_attention_value_projection_with_transpose",
"language": "CuTe DSL",
"files": [
{
"path": "main.py",
"lines": 5275,
"bytes": 345542
}
],
"idea": "CuTe DSL tcgen05 GEMM whose epilogue stores straight into the transposed head layout; picks by shape between swap-AB split-K (DSMEM cluster reduce) and 2-CTA tiles.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.551881,
"speedup": 1.1411
}
}
},
{
"board": "L1",
"id": "011_rotary_position_embedding",
"name": "Rotary position embedding",
"group": "Attention",
"op": "RoPE cos/sin from positions with llama3 scaling",
"direction": "forward",
"model": "NousResearch/Hermes-4-70B",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/011_rotary_position_embedding",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 1178,
"bytes": 66448
},
{
"path": "main.cpp",
"lines": 108,
"bytes": 6406
}
],
"idea": "Hand-written PTX: angle = position x frequency, fast sin.approx/cos.approx with a rare exact fallback, packed bf16 stores; work per thread by token count; CUDA graph launch.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.704563,
"speedup": 2.1447
}
}
},
{
"board": "L1",
"id": "012_fused_cos_sin_embedding_generation",
"name": "Fused cos sin embedding generation",
"group": "Attention",
"op": "RoPE cos/sin from frequencies with attention scaling",
"direction": "forward",
"model": "NousResearch/Hermes-4-405B",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/012_fused_cos_sin_embedding_generation",
"language": "CuTe DSL",
"files": [
{
"path": "main.py",
"lines": 1135,
"bytes": 62728
}
],
"idea": "CuTe DSL elementwise kernels by row count: 128-bit loads, quick range reduction, fast cos/sin, each value stored to both halves; some big sizes bulk-store from smem.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.916332,
"speedup": 8.0396
}
}
},
{
"board": "L1",
"id": "013_fused_residual_rms_norm_backward",
"name": "Fused residual RMS norm backward",
"group": "Backward pass",
"op": "fused residual + RMSNorm backward",
"direction": "backward",
"model": "Qwen/Qwen3-4B-Instruct-2507",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/013_fused_residual_rms_norm_backward",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 2694,
"bytes": 162556
},
{
"path": "kernel.h",
"lines": 9,
"bytes": 592
},
{
"path": "main.cpp",
"lines": 87,
"bytes": 4696
}
],
"idea": "Few rows: one fused kernel, some CTAs sum the weight grad by column; many rows: persistent CTAs fed by a TMA bulk-copy ring, plus a reduce kernel.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.843888,
"speedup": 4.9694
}
}
},
{
"board": "L1",
"id": "014_rotary_embedding_with_attention_scaling_backward",
"name": "Rotary embedding with attention scaling backward",
"group": "Backward pass",
"op": "RoPE with attention scaling backward",
"direction": "backward",
"model": "Qwen/Qwen3-4B-Instruct-2507",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/014_rotary_embedding_with_attention_scaling_backward",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 1250,
"bytes": 69889
},
{
"path": "main.cpp",
"lines": 451,
"bytes": 27358
}
],
"idea": "Memory-bound row reduction: lanes split each row's frequencies, cache-hinted vector loads, sin/cos with packed f32x2 math, shuffle sum; per-shape launch replayed as a one-node CUDA graph",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.935314,
"speedup": 12.7948
}
}
},
{
"board": "L1",
"id": "015_grouped_query_attention_with_rope_and_qk_norm",
"name": "Grouped query attention with RoPE and QK norm",
"group": "Attention",
"op": "GQA attention block: QKV proj, QK-RMSNorm, RoPE, causal SDPA, o_proj",
"direction": "forward",
"model": "Qwen/Qwen3-8B",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/015_grouped_query_attention_with_rope_and_qk_norm",
"language": "CUDA C++",
"files": [
{
"path": "fmha.cu",
"lines": 808,
"bytes": 48403
},
{
"path": "fmha_half.hpp",
"lines": 879,
"bytes": 46835
},
{
"path": "fmha_half128.hpp",
"lines": 782,
"bytes": 42362
},
{
"path": "fmha_half128mc.hpp",
"lines": 813,
"bytes": 45070
},
{
"path": "fmha_mainloop_lazy.hpp",
"lines": 1360,
"bytes": 55387
},
{
"path": "fmha_pair.hpp",
"lines": 499,
"bytes": 25342
},
{
"path": "gemm.cu",
"lines": 188,
"bytes": 10988
},
{
"path": "gemm_common.hpp",
"lines": 543,
"bytes": 28904
},
{
"path": "gemm_f3.cu",
"lines": 67,
"bytes": 4049
},
{
"path": "gemm_f3.hpp",
"lines": 668,
"bytes": 37940
},
{
"path": "gemm_f3b.cu",
"lines": 22,
"bytes": 1440
},
{
"path": "gemm_f3c.cu",
"lines": 15,
"bytes": 938
},
{
"path": "gemm_f3d.cu",
"lines": 14,
"bytes": 838
},
{
"path": "gemm_f3n.cu",
"lines": 20,
"bytes": 1441
},
{
"path": "gemm_f3s.cu",
"lines": 21,
"bytes": 1628
},
{
"path": "gemm_nr.cu",
"lines": 158,
"bytes": 8727
},
{
"path": "gemm_x1.cu",
"lines": 5,
"bytes": 302
},
{
"path": "gemm_x2.cu",
"lines": 9,
"bytes": 676
},
{
"path": "gemm_x3.cu",
"lines": 9,
"bytes": 692
},
{
"path": "gemm_x4.cu",
"lines": 33,
"bytes": 2297
},
{
"path": "gemm_x5.cu",
"lines": 7,
"bytes": 494
},
{
"path": "gemm_x6.cu",
"lines": 41,
"bytes": 2768
},
{
"path": "gemm_x7.cu",
"lines": 126,
"bytes": 6665
},
{
"path": "gemm_x8.cu",
"lines": 29,
"bytes": 2007
},
{
"path": "gemm_xa.cu",
"lines": 24,
"bytes": 1662
},
{
"path": "gemm_xb.cu",
"lines": 19,
"bytes": 1151
},
{
"path": "gemm_xe.cu",
"lines": 26,
"bytes": 1652
},
{
"path": "gemm_xo.cu",
"lines": 89,
"bytes": 6230
},
{
"path": "gemm_xs.cu",
"lines": 69,
"bytes": 4363
},
{
"path": "kernel.cu",
"lines": 1387,
"bytes": 71883
},
{
"path": "kernel.h",
"lines": 90,
"bytes": 6366
},
{
"path": "main.cpp",
"lines": 561,
"bytes": 28569
},
{
"path": "mega.cu",
"lines": 783,
"bytes": 33031
},
{
"path": "qkvsk.cu",
"lines": 478,
"bytes": 21799
}
],
"idea": "QKV tcgen05 GEMM with per-head RMSNorm + RoPE in its epilogue; a side-stream mask check picks a CUTLASS causal FMHA or a general flash kernel; CUDA graphs.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.704345,
"speedup": 1.6043
}
}
},
{
"board": "L1",
"id": "016_rope_inverse_frequency_computation",
"name": "RoPE inverse frequency computation",
"group": "Attention",
"op": "RoPE inverse-frequency table",
"direction": "forward",
"model": "Qwen/Qwen3-8B",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/016_rope_inverse_frequency_computation",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 134,
"bytes": 5336
},
{
"path": "main.cpp",
"lines": 14,
"bytes": 678
}
],
"idea": "One tiny kernel: each thread makes one value with a single ex2 (2^x) from a host-computed step; launched as a replayed CUDA graph with PDL.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.716973,
"speedup": 1.9726
}
}
},
{
"board": "L1",
"id": "017_moe_expert_swiglu_with_down_projection_backward",
"name": "MoE expert SwiGLU with down projection backward",
"group": "Backward pass",
"op": "MoE expert SwiGLU + down projection backward",
"direction": "backward",
"model": "Qwen/Qwen3-30B-A3B-Instruct-2507",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/017_moe_expert_swiglu_with_down_projection_backward",
"language": "CUDA C++",
"files": [
{
"path": "bench.cu",
"lines": 184,
"bytes": 10387
},
{
"path": "kernel.cu",
"lines": 3102,
"bytes": 195068
},
{
"path": "main.cpp",
"lines": 262,
"bytes": 16050
},
{
"path": "mid.cu",
"lines": 658,
"bytes": 36585
},
{
"path": "mixb_A.cu",
"lines": 777,
"bytes": 42727
},
{
"path": "mixb_B.cu",
"lines": 859,
"bytes": 47147
},
{
"path": "offb.cu",
"lines": 700,
"bytes": 38577
},
{
"path": "rotl_plan.h",
"lines": 3,
"bytes": 155
},
{
"path": "tinyf.cu",
"lines": 483,
"bytes": 26465
},
{
"path": "tinym.cu",
"lines": 1078,
"bytes": 60586
},
{
"path": "tinyo.cu",
"lines": 506,
"bytes": 24581
},
{
"path": "tinyp.cu",
"lines": 592,
"bytes": 30775
},
{
"path": "tinys.cu",
"lines": 494,
"bytes": 24659
}
],
"idea": "By token count: few tokens run the whole backward in one fused launch (cluster DSMEM reduces); mid uses mma.sync split-K; many use persistent tcgen05 GEMMs.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.789746,
"speedup": 3.223
}
}
},
{
"board": "L1",
"id": "018_fused_rope_with_qk_norm_and_kv_cache_update",
"name": "Fused RoPE with QK norm and KV cache update",
"group": "Attention",
"op": "fused QK-RMSNorm + RoPE + KV-cache write",
"direction": "forward",
"model": "Qwen/Qwen3-Coder-480B-A35B-Instruct",
"workloads": 13,
"kernel": {
"dir": "kernels/L1/018_fused_rope_with_qk_norm_and_kv_cache_update",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 2084,
"bytes": 115322
},
{
"path": "kernel.h",
"lines": 12,
"bytes": 870
},
{
"path": "main.cpp",
"lines": 81,
"bytes": 5897
}
],
"idea": "One fused memory-bound kernel, variant picked by shape: 16-byte and cp.async row loads, sin/cos computed in-kernel, packed bf16x2 RoPE math; PDL launch.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.930738,
"speedup": 7.9374
}
}
},
{
"board": "L1",
"id": "019_vision_3d_rotary_embedding_with_spatial_merge_indexing_backward",
"name": "Vision 3D rotary embedding with spatial merge indexing backward",
"group": "Backward pass",
"op": "vision 3D RoPE with spatial-merge indexing backward",
"direction": "backward",
"model": "Qwen/Qwen3-Omni-30B-A3B-Instruct",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/019_vision_3d_rotary_embedding_with_spatial_merge_indexing_backward",
"language": "CuTe DSL",
"files": [
{
"path": "main.py",
"lines": 1824,
"bytes": 99148
}
],
"idea": "CuTe DSL, one CTA per token: lanes swap rotate-half partners by warp shuffle, warps sum the embedding gradient in smem, fast sin/cos, L2 cache hints.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.86327,
"speedup": 3.7862
}
}
},
{
"board": "L1",
"id": "020_vision_patch_merger_spatial_shuffle_mlp",
"name": "Vision patch merger spatial shuffle MLP",
"group": "Image and video",
"op": "vision patch merger: 2x2 shuffle + LayerNorm + GELU MLP",
"direction": "forward",
"model": "Qwen/Qwen3-Omni-30B-A3B-Instruct",
"workloads": 15,
"kernel": {
"dir": "kernels/L1/020_vision_patch_merger_spatial_shuffle_mlp",
"language": "CUDA C++",
"files": [
{
"path": "cutlass_cfg.cuh",
"lines": 376,
"bytes": 21931
},
{
"path": "cutlass_diag.cu",
"lines": 80,
"bytes": 4914
},
{
"path": "cutlass_fc1_nt.cu",
"lines": 59,
"bytes": 3855
},
{
"path": "cutlass_gemm.cu",
"lines": 89,
"bytes": 5363
},
{
"path": "fast_gelu.cuh",
"lines": 103,
"bytes": 4312
},
{
"path": "fc1_small.cu",
"lines": 4169,
"bytes": 245909
},
{
"path": "kernel.cu",
"lines": 929,
"bytes": 54827
},
{
"path": "kernel.h",
"lines": 28,
"bytes": 2494
},
{
"path": "main.cpp",
"lines": 986,
"bytes": 55953
}
],
"idea": "LayerNorm + 2x2 gather kernel, then two GEMMs on hand-written 2-SM tcgen05 kernels (fused bias + GELU), CUTLASS or cuBLASLt, picked by token count; PDL between kernels.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.754721,
"speedup": 1.9114
}
}
},
{
"board": "L1",
"id": "021_vision_cu_seqlens_variable_length_attention",
"name": "Vision cu seqlens variable length attention",
"group": "Image and video",
"op": "vision varlen attention (cu_seqlens) with QKV proj + RoPE",
"direction": "forward",
"model": "Qwen/Qwen3-VL-8B-Instruct",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/021_vision_cu_seqlens_variable_length_attention",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 6232,
"bytes": 360374
},
{
"path": "kernel.h",
"lines": 107,
"bytes": 10191
},
{
"path": "main.cpp",
"lines": 1533,
"bytes": 85253
},
{
"path": "proj_cutlass.cu",
"lines": 621,
"bytes": 39409
}
],
"idea": "By token count: one fused kernel for few tokens; otherwise fp16 casts, QKV GEMM plus RoPE, mma.sync or tcgen05 varlen attention, and a CUTLASS or cuBLASLt out-proj",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.92025,
"speedup": 9.7645
}
}
},
{
"board": "L1",
"id": "022_vision_mlp_gelu_backward",
"name": "Vision MLP GELU backward",
"group": "Backward pass",
"op": "vision MLP GELU backward",
"direction": "backward",
"model": "Qwen/Qwen3-VL-8B-Instruct",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/022_vision_mlp_gelu_backward",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 5839,
"bytes": 372208
},
{
"path": "kernel.h",
"lines": 142,
"bytes": 11085
},
{
"path": "main.cpp",
"lines": 1552,
"bytes": 102638
},
{
"path": "mega.cu",
"lines": 1429,
"bytes": 88092
}
],
"idea": "Path picked by row count; most rows cast to fp16, then one persistent warp-specialized tcgen05 kernel runs all four GEMMs with the GELU backward fused in.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.771534,
"speedup": 2.7094
}
}
},
{
"board": "L1",
"id": "023_multimodal_rope_position_computation_with_grid_based_indexing",
"name": "Multimodal RoPE position computation with grid based indexing",
"group": "Image and video",
"op": "multimodal RoPE positions + learned position-embedding interpolation",
"direction": "forward",
"model": "Qwen/Qwen3-VL-235B-A22B-Instruct",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/023_multimodal_rope_position_computation_with_grid_based_indexing",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 3960,
"bytes": 214753
},
{
"path": "kernel.h",
"lines": 86,
"bytes": 5228
},
{
"path": "main.cpp",
"lines": 706,
"bytes": 37197
}
],
"idea": "One fused kernel: bilinear gathers plus cos/sin; it launches on the previous call's grid, and one CTA copies the real grid to the host to check it.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.98486,
"speedup": 46.9975
}
}
},
{
"board": "L1",
"id": "024_vision_rotary_position_embedding_generation_backward",
"name": "Vision rotary position embedding generation backward",
"group": "Backward pass",
"op": "vision RoPE generation backward",
"direction": "backward",
"model": "Qwen/Qwen-Image-Edit-2509",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/024_vision_rotary_position_embedding_generation_backward",
"language": "CUDA C++",
"files": [
{
"path": "aot_body.cuh",
"lines": 1192,
"bytes": 64856
},
{
"path": "aot_f1_t360_n4716_g16_s1_a0.cu",
"lines": 35,
"bytes": 673
},
{
"path": "aot_f2_t256_n3528_g16_s1_a0.cu",
"lines": 37,
"bytes": 707
},
{
"path": "aot_f2_t288_n3528_g16_s0_a0.cu",
"lines": 34,
"bytes": 585
},
{
"path": "aot_f2_t352_n4608_g16_s1_a0.cu",
"lines": 37,
"bytes": 707
},
{
"path": "aot_f2_t416_n5832_g16_s1_a0.cu",
"lines": 37,
"bytes": 707
},
{
"path": "aot_f2_t432_n5832_g16_s1_a0.cu",
"lines": 35,
"bytes": 673
},
{
"path": "aot_f2_t648_n9738_g16_s1_a1.cu",
"lines": 35,
"bytes": 673
},
{
"path": "aot_f5_t128_n13914_g128_s1_a1.cu",
"lines": 38,
"bytes": 678
},
{
"path": "aot_f5_t128_n13914_g160_s1_a1.cu",
"lines": 38,
"bytes": 713
},
{
"path": "aot_f5_t128_n3528_g32_s1_a1.cu",
"lines": 38,
"bytes": 690
},
{
"path": "aot_f5_t192_n18432_g128_s1_a1.cu",
"lines": 38,
"bytes": 726
},
{
"path": "aot_f5_t192_n19566_g128_s1_a1.cu",
"lines": 38,
"bytes": 726
},
{
"path": "aot_f5_t192_n20934_g128_s1_a1.cu",
"lines": 40,
"bytes": 810
},
{
"path": "aot_f5_t192_n4608_g32_s1_a1.cu",
"lines": 38,
"bytes": 690
},
{
"path": "aot_f5_t224_n5832_g16_s1_a2.cu",
"lines": 36,
"bytes": 610
},
{
"path": "aot_f5_t224_n5832_g32_s1_a1.cu",
"lines": 38,
"bytes": 690
},
{
"path": "aot_f5_t256_n11034_g48_s1_a1.cu",
"lines": 38,
"bytes": 699
},
{
"path": "aot_f5_t256_n9738_g48_s1_a1.cu",
"lines": 38,
"bytes": 690
},
{
"path": "aot_f5_t288_n12438_g48_s1_a1.cu",
"lines": 38,
"bytes": 699
},
{
"path": "aot_f5_t352_n13824_g48_s1_a1.cu",
"lines": 38,
"bytes": 699
},
{
"path": "aot_f5_t352_n9738_g32_s1_a1.cu",
"lines": 38,
"bytes": 690
},
{
"path": "aot_f5_t360_n11034_g16_s0_a2.cu",
"lines": 35,
"bytes": 678
},
{
"path": "aot_f5_t384_n11034_g32_s1_a1.cu",
"lines": 41,
"bytes": 905
},
{
"path": "aot_f5_t432_n11034_g16_s1_a2.cu",
"lines": 35,
"bytes": 678
},
{
"path": "aot_f5_t432_n13824_g16_s0_a2.cu",
"lines": 35,
"bytes": 678
},
{
"path": "aot_f5_t448_n12438_g16_s1_a2.cu",
"lines": 36,
"bytes": 614
},
{
"path": "aot_f5_t448_n12438_g32_s1_a1.cu",
"lines": 38,
"bytes": 672
},
{
"path": "aot_f5_t468_n13914_g16_s1_a2.cu",
"lines": 35,
"bytes": 678
},
{
"path": "aot_f5_t480_n13824_g16_s1_a2.cu",
"lines": 36,
"bytes": 614
},
{
"path": "aot_f5_t480_n13824_g32_s1_a1.cu",
"lines": 38,
"bytes": 672
},
{
"path": "aot_f5_t480_n13914_g16_s1_a2.cu",
"lines": 36,
"bytes": 614
},
{
"path": "aot_f5_t480_n20934_g16_s1_a3.cu",
"lines": 38,
"bytes": 698
},
{
"path": "aot_f5_t576_n18432_g16_s0_a2.cu",
"lines": 35,
"bytes": 678
},
{
"path": "aot_f5_t630_n18432_g16_s1_a2.cu",
"lines": 35,
"bytes": 678
},
{
"path": "aot_f5_t648_n19566_g16_s0_a2.cu",
"lines": 35,
"bytes": 678
},
{
"path": "aot_f5_t64_n2358_g48_s1_a1.cu",
"lines": 40,
"bytes": 799
},
{
"path": "aot_f5_t64_n3528_g48_s1_a2.cu",
"lines": 38,
"bytes": 685
},
{
"path": "aot_f5_t64_n36864_g768_s1_a1.cu",
"lines": 40,
"bytes": 808
},
{
"path": "aot_f5_t720_n20934_g16_s0_a2.cu",
"lines": 35,
"bytes": 678
},
{
"path": "aot_f5_t96_n18432_g320_s1_a1.cu",
"lines": 40,
"bytes": 808
},
{
"path": "aot_f5_t96_n19566_g320_s1_a1.cu",
"lines": 40,
"bytes": 808
},
{
"path": "aot_f5_t96_n20934_g384_s1_a1.cu",
"lines": 40,
"bytes": 808
},
{
"path": "aot_f7_t128_n110592_g864_s5_a6.cu",
"lines": 43,
"bytes": 968
},
{
"path": "aot_f7_t128_n36864_g288_s5_a2.cu",
"lines": 36,
"bytes": 801
},
{
"path": "aot_f7_t192_n110592_g576_s5_a4.cu",
"lines": 43,
"bytes": 968
},
{
"path": "aot_f7_t192_n147456_g768_s5_a6.cu",
"lines": 39,
"bytes": 804
},
{
"path": "aot_f7_t192_n221184_g1152_s5_a8.cu",
"lines": 39,
"bytes": 928
},
{
"path": "aot_f7_t256_n110592_g432_s5_a3.cu",
"lines": 37,
"bytes": 919
},
{
"path": "aot_f7_t256_n147456_g576_s5_a4.cu",
"lines": 41,
"bytes": 872
},
{
"path": "aot_f7_t32_n19566_g612_s5_a4.cu",
"lines": 37,
"bytes": 842
},
{
"path": "aot_f7_t32_n20934_g656_s5_a8.cu",
"lines": 42,
"bytes": 1206
},
{
"path": "aot_f7_t352_n147456_g432_s5_a3.cu",
"lines": 36,
"bytes": 702
},
{
"path": "aot_f7_t384_n221184_g576_s5_a4.cu",
"lines": 39,
"bytes": 862
},
{
"path": "aot_f7_t512_n147456_g288_s5_a2.cu",
"lines": 37,
"bytes": 866
},
{
"path": "aot_f7_t64_n18432_g288_s5_a3.cu",
"lines": 37,
"bytes": 794
},
{
"path": "aot_f7_t64_n19566_g306_s5_a2.cu",
"lines": 37,
"bytes": 773
},
{
"path": "aot_f7_t64_n20934_g328_s5_a2.cu",
"lines": 38,
"bytes": 931
},
{
"path": "aot_f7_t64_n36864_g576_s5_a4.cu",
"lines": 35,
"bytes": 707
},
{
"path": "aot_f7_t96_n110592_g1152_s5_a8.cu",
"lines": 43,
"bytes": 968
},
{
"path": "aot_f7_t96_n18432_g192_s5_a2.cu",
"lines": 36,
"bytes": 829
},
{
"path": "aot_f7_t96_n19566_g204_s5_a2.cu",
"lines": 36,
"bytes": 829
},
{
"path": "aot_table.h",
"lines": 127,
"bytes": 9296
},
{
"path": "kernel.cu",
"lines": 2460,
"bytes": 136299
},
{
"path": "main.cpp",
"lines": 209,
"bytes": 12712
}
],
"idea": "One streaming pass: partial sums are merged inside CTA clusters through DSMEM (or by global atomics) into the output; known sizes run kernels specialized ahead of time.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.958806,
"speedup": 19.9206
}
}
},
{
"board": "L1",
"id": "025_video_latent_gelu_activation",
"name": "Video latent GELU activation",
"group": "Image and video",
"op": "GELU-tanh elementwise (video latents)",
"direction": "forward",
"model": "Wan-AI/Wan2.2-T2V-A14B",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/025_video_latent_gelu_activation",
"language": "Triton",
"files": [
{
"path": "main.py",
"lines": 832,
"bytes": 37990
}
],
"idea": "Triton elementwise kernels with hardware tanh.approx via inline PTX; picks a kernel by size; row-aligned sizes store tiles via TMA; PDL launches load before waiting.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.626849,
"speedup": 1.1332
}
}
},
{
"board": "L1",
"id": "026_video_patch_embedding_projection",
"name": "Video patch embedding projection",
"group": "Image and video",
"op": "Conv3D video patch embed + position embed + LayerNorm",
"direction": "forward",
"model": "Wan-AI/Wan2.2-T2V-A14B",
"workloads": 4,
"kernel": {
"dir": "kernels/L1/026_video_patch_embedding_projection",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 2714,
"bytes": 174098
},
{
"path": "kernel.h",
"lines": 21,
"bytes": 951
},
{
"path": "main.cpp",
"lines": 86,
"bytes": 5616
}
],
"idea": "LN stats are computed up front from the input, a weight Gram matrix and small side GEMMs, so one TMA + tcgen05 pass writes each output once",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.925903,
"speedup": 5.3905
}
}
},
{
"board": "L1",
"id": "027_video_spatial_attention_with_rope_3d",
"name": "Video spatial attention with RoPE 3D",
"group": "Image and video",
"op": "video spatial attention with 3D RoPE",
"direction": "forward",
"model": "Wan-AI/Wan2.2-T2V-A14B",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/027_video_spatial_attention_with_rope_3d",
"language": "CUDA C++",
"files": [
{
"path": "attn.cu",
"lines": 1311,
"bytes": 72275
},
{
"path": "dbg_knobs.h",
"lines": 14,
"bytes": 916
},
{
"path": "fa4f.cu",
"lines": 870,
"bytes": 50549
},
{
"path": "fa4s.cu",
"lines": 1135,
"bytes": 70877
},
{
"path": "fa4s1.cu",
"lines": 1246,
"bytes": 77348
},
{
"path": "fa4s3.cu",
"lines": 2607,
"bytes": 162195
},
{
"path": "fa4t.cu",
"lines": 2552,
"bytes": 156809
},
{
"path": "kernel.cu",
"lines": 10049,
"bytes": 623380
},
{
"path": "kernel.h",
"lines": 345,
"bytes": 27340
},
{
"path": "main.cpp",
"lines": 1594,
"bytes": 110359
},
{
"path": "scales.h",
"lines": 27,
"bytes": 1552
}
],
"idea": "fp16 hi/lo splits keep near-fp32 accuracy (tcgen05 GEMMs and flash attention sum the hi/lo cross products); QKV epilogue fuses bias + 3D RoPE; variants chosen per shape.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.920981,
"speedup": 9.3178
}
}
},
{
"board": "L1",
"id": "028_hybrid_attention_mask_preparation",
"name": "Hybrid attention mask preparation",
"group": "Attention",
"op": "causal + sliding-window mask construction",
"direction": "forward",
"model": "XiaomiMiMo/MiMo-V2-Flash",
"workloads": 12,
"kernel": {
"dir": "kernels/L1/028_hybrid_attention_mask_preparation",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 92,
"bytes": 4174
},
{
"path": "main.cpp",
"lines": 75,
"bytes": 4011
}
],
"idea": "One grid-stride CUDA kernel writes both masks with 16-byte stores, building each causal chunk from bit shifts.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.273245,
"speedup": 0.138
}
}
},
{
"board": "L1",
"id": "029_mamba_conv1d_with_gating",
"name": "Mamba Conv1D with gating",
"group": "State space and conv",
"op": "Mamba in-proj + causal depthwise conv1d + SiLU gate",
"direction": "forward",
"model": "ai21labs/AI21-Jamba-Large-1.7",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/029_mamba_conv1d_with_gating",
"language": "CUDA C++",
"files": [
{
"path": "gemm_a.cu",
"lines": 43,
"bytes": 2779
},
{
"path": "gemm_b.cu",
"lines": 43,
"bytes": 2804
},
{
"path": "gemm_c.cu",
"lines": 37,
"bytes": 2475
},
{
"path": "gemm_impl.cuh",
"lines": 1953,
"bytes": 115193
},
{
"path": "kernel.cu",
"lines": 439,
"bytes": 24446
},
{
"path": "kernel.h",
"lines": 90,
"bytes": 6063
},
{
"path": "main.cpp",
"lines": 967,
"bytes": 37249
},
{
"path": "single.cu",
"lines": 2819,
"bytes": 166517
},
{
"path": "single.h",
"lines": 10,
"bytes": 842
}
],
"idea": "tcgen05 in-proj GEMM with conv1d, SiLU and mask fused in the epilogue; masked tokens compacted out; some shapes use one persistent 2-CTA kernel, others CUTLASS.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.935308,
"speedup": 1.603
}
}
},
{
"board": "L1",
"id": "030_attention_output_projection_with_residual",
"name": "Attention output projection with residual",
"group": "Projections and GEMM",
"op": "o_proj GEMM (2560x2560) + residual add",
"direction": "forward",
"model": "ai21labs/AI21-Jamba-Reasoning-3B",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/030_attention_output_projection_with_residual",
"language": "CUDA C++",
"files": [
{
"path": "cute.cu",
"lines": 1857,
"bytes": 117973
},
{
"path": "kernel.cu",
"lines": 453,
"bytes": 25271
},
{
"path": "kernel.h",
"lines": 14,
"bytes": 762
},
{
"path": "main.cpp",
"lines": 124,
"bytes": 5672
},
{
"path": "mru.h",
"lines": 28,
"bytes": 1300
}
],
"idea": "Small M: fixed-algo cuBLASLt with the residual as C (beta = 1), relaunched from a captured graph; large M: persistent 2-SM tcgen05 CuTe GEMM with a residual epilogue.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.47423,
"speedup": 0.959
}
}
},
{
"board": "L1",
"id": "031_repeat_kv_attention_matmul",
"name": "Repeat KV attention matmul",
"group": "Attention",
"op": "GQA repeat_kv + Q@K^T scores",
"direction": "forward",
"model": "allenai/Olmo-3-7B-Think",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/031_repeat_kv_attention_matmul",
"language": "CUDA C++",
"files": [
{
"path": "b2s_kernel.cu",
"lines": 246,
"bytes": 14120
},
{
"path": "b2so_kernel.cu",
"lines": 214,
"bytes": 11418
},
{
"path": "b512_kernel.cu",
"lines": 272,
"bytes": 14614
},
{
"path": "band_kernel.cu",
"lines": 595,
"bytes": 34949
},
{
"path": "big1sm_kernel.cu",
"lines": 314,
"bytes": 17818
},
{
"path": "cutlass_gemm.cu",
"lines": 1316,
"bytes": 79335
},
{
"path": "dyn_kernel.cu",
"lines": 368,
"bytes": 19955
},
{
"path": "hb_kernel.cu",
"lines": 172,
"bytes": 8173
},
{
"path": "hq2_kernel.cu",
"lines": 203,
"bytes": 11258
},
{
"path": "hq_kernel.cu",
"lines": 538,
"bytes": 30952
},
{
"path": "hqmc_kernel.cu",
"lines": 269,
"bytes": 15318
},
{
"path": "kernel.h",
"lines": 235,
"bytes": 16241
},
{
"path": "lat_kernel.cu",
"lines": 386,
"bytes": 20472
},
{
"path": "main.cpp",
"lines": 1465,
"bytes": 85059
},
{
"path": "mck_kernel.cu",
"lines": 227,
"bytes": 11909
},
{
"path": "oddw_kernel.cu",
"lines": 250,
"bytes": 12158
},
{
"path": "pf_kernel.cu",
"lines": 184,
"bytes": 8709
},
{
"path": "pipe_kernel.cu",
"lines": 182,
"bytes": 8847
},
{
"path": "reg_kernel.cu",
"lines": 172,
"bytes": 7879
},
{
"path": "slab_kernel.cu",
"lines": 164,
"bytes": 7281
},
{
"path": "small_kernel.cu",
"lines": 178,
"bytes": 8280
},
{
"path": "t256_kernel.cu",
"lines": 215,
"bytes": 12518
},
{
"path": "tiny_kernel.cu",
"lines": 172,
"bytes": 8459
},
{
"path": "wide_kernel.cu",
"lines": 199,
"bytes": 10627
}
],
"idea": "Batched Q @ K^T with the scale fused, by shape: mma.sync or small tcgen05 kernels for short sequences; CUTLASS SM100 or hand-written tcgen05 GEMMs for long ones.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.621981,
"speedup": 1.4358
}
}
},
{
"board": "L1",
"id": "032_attention_weights_matmul_with_value_projection",
"name": "Attention weights matmul with value projection",
"group": "Attention",
"op": "attention weights @ V + transpose / reshape",
"direction": "forward",
"model": "allenai/Olmo-3-32B-Think",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/032_attention_weights_matmul_with_value_projection",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 3492,
"bytes": 239698
},
{
"path": "kernel.h",
"lines": 7,
"bytes": 356
},
{
"path": "main.cpp",
"lines": 34,
"bytes": 2271
}
],
"idea": "Per-head P @ V on tcgen05 with TMA loads and persistent tiles, storing straight into the transposed layout; short sequences use an mma.sync kernel.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.81185,
"speedup": 2.5185
}
}
},
{
"board": "L1",
"id": "033_post_norm_residual",
"name": "Post norm residual",
"group": "Normalization",
"op": "post-norm residual: residual + RMSNorm(x)",
"direction": "forward",
"model": "allenai/Olmo-3-1025-7B",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/033_post_norm_residual",
"language": "CuTe DSL",
"files": [
{
"path": "main.py",
"lines": 1287,
"bytes": 74233
}
],
"idea": "CuTe DSL row kernels: 128-bit cache-hinted loads, next-wave L2 prefetch, PDL; rows per CTA set by row count, and small inputs split a row over two CTAs",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.797033,
"speedup": 2.5315
}
}
},
{
"board": "L1",
"id": "034_flux_multi_axis_rope_frequency_computation",
"name": "Flux multi axis RoPE frequency computation",
"group": "Image and video",
"op": "FLUX multi-axis RoPE frequencies",
"direction": "forward",
"model": "black-forest-labs/FLUX.1-Fill-dev",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/034_flux_multi_axis_rope_frequency_computation",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 241,
"bytes": 12629
},
{
"path": "kernel.h",
"lines": 5,
"bytes": 348
},
{
"path": "main.cpp",
"lines": 142,
"bytes": 8479
}
],
"idea": "One warp per row: ex2.approx frequencies, packed-FMA angles, fast MUFU cos (sin as a shifted cos), float4 stores; another kernel for long sequences; PDL.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.739678,
"speedup": 2.4801
}
}
},
{
"board": "L1",
"id": "035_flux_ada_layer_norm_zero_modulation_extraction",
"name": "Flux ada layer norm zero modulation extraction",
"group": "Image and video",
"op": "FLUX AdaLN-Zero modulation linear + chunk",
"direction": "forward",
"model": "black-forest-labs/FLUX.1-Kontext-dev",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/035_flux_ada_layer_norm_zero_modulation_extraction",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 5479,
"bytes": 325494
},
{
"path": "main.cpp",
"lines": 240,
"bytes": 12506
}
],
"idea": "Weight-streaming GEMM picked by batch size: TMA + mma.sync TF32 when small, CUTLASS or tcgen05 TF32 mid, in-kernel fp16 convert + tcgen05 when large; CUDA graph",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.734368,
"speedup": 1.986
}
}
},
{
"board": "L1",
"id": "036_flux_output_norm_projection_chain",
"name": "Flux output norm projection chain",
"group": "Image and video",
"op": "FLUX final AdaLN + output projection",
"direction": "forward",
"model": "black-forest-labs/FLUX.1-Kontext-dev",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/036_flux_output_norm_projection_chain",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 4996,
"bytes": 327809
},
{
"path": "kernel.h",
"lines": 30,
"bytes": 2062
},
{
"path": "main.cpp",
"lines": 145,
"bytes": 8194
}
],
"idea": "CUDA graph: split GEMV for scale/shift, then a TMA + tcgen05 TF32 GEMM of raw x with a per-batch scaled weight; LayerNorm stats applied in the epilogue.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.753246,
"speedup": 2.3892
}
}
},
{
"board": "L1",
"id": "037_flux_feedforward_gelu_approximate",
"name": "Flux feedforward GELU approximate",
"group": "Image and video",
"op": "FLUX feed-forward with GELU-tanh",
"direction": "forward",
"model": "black-forest-labs/FLUX.1-dev",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/037_flux_feedforward_gelu_approximate",
"language": "CUDA C++",
"files": [
{
"path": "diag.h",
"lines": 1,
"bytes": 13
},
{
"path": "kernel.cu",
"lines": 4202,
"bytes": 249285
},
{
"path": "kernel.h",
"lines": 75,
"bytes": 4813
},
{
"path": "main.cpp",
"lines": 910,
"bytes": 45061
}
],
"idea": "By token count: tcgen05 TF32 GEMMs for few tokens; else fp16 operands with power-of-two scales on tcgen05 (2-SM when large); GELU-tanh in the first GEMM's epilogue",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.753106,
"speedup": 1.7209
}
}
},
{
"board": "L1",
"id": "038_flux_multi_head_rmsnorm_qk",
"name": "Flux multi head RMSNorm QK",
"group": "Image and video",
"op": "FLUX.2 per-head QK RMSNorm",
"direction": "forward",
"model": "black-forest-labs/FLUX.2-dev",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/038_flux_multi_head_rmsnorm_qk",
"language": "Triton",
"files": [
{
"path": "kernel.py",
"lines": 1648,
"bytes": 95206
}
],
"idea": "One Triton launch normalizes Q and K in head-major token tiles, loading each head weight once; config by token count; inline-PTX L2 cache hints.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.604484,
"speedup": 1.3485
}
}
},
{
"board": "L1",
"id": "039_adaptive_instance_normalization_2d_backward",
"name": "Adaptive instance normalization 2D backward",
"group": "Backward pass",
"op": "adaptive instance norm 2D backward",
"direction": "backward",
"model": "chuxiaojie/NAFNet",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/039_adaptive_instance_normalization_2d_backward",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 7662,
"bytes": 472535
},
{
"path": "kernel.h",
"lines": 25,
"bytes": 2086
},
{
"path": "main.cpp",
"lines": 357,
"bytes": 22969
}
],
"idea": "By shape: a reduce kernel builds per-plane fp64 sums plus the weight and bias grads, then an elementwise kernel writes the input grad; small sizes replay a CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.92775,
"speedup": 9.9207
}
}
},
{
"board": "L1",
"id": "040_conv2d_residual_block",
"name": "Conv2D residual block",
"group": "Image and video",
"op": "NAFNet conv residual block",
"direction": "forward",
"model": "chuxiaojie/NAFNet",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/040_conv2d_residual_block",
"language": "CUDA C++",
"files": [
{
"path": "combo.h",
"lines": 18,
"bytes": 768
},
{
"path": "main.cpp",
"lines": 46,
"bytes": 2906
},
{
"path": "vA_kernel.cu",
"lines": 3824,
"bytes": 255388
},
{
"path": "vA_kernel_twogemm.cu",
"lines": 2115,
"bytes": 126980
},
{
"path": "vB_kernel.cu",
"lines": 4061,
"bytes": 277626
},
{
"path": "vB_kernel_twogemm.cu",
"lines": 2192,
"bytes": 133187
},
{
"path": "vC_kernel.cu",
"lines": 4167,
"bytes": 283127
}
],
"idea": "Fuses both convs and the residual per image tile; with no activation between them, the weights merge into one fp16 mma.sync GEMM (two GEMMs for small inputs).",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.961438,
"speedup": 22.7006
}
}
},
{
"board": "L1",
"id": "041_strided_conv2d_downsampling",
"name": "Strided Conv2D downsampling",
"group": "Image and video",
"op": "NAFNet strided conv2d downsampling",
"direction": "forward",
"model": "chuxiaojie/NAFNet",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/041_strided_conv2d_downsampling",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 4398,
"bytes": 288950
},
{
"path": "kernel.h",
"lines": 5,
"bytes": 214
},
{
"path": "main.cpp",
"lines": 46,
"bytes": 2742
}
],
"idea": "Implicit-GEMM conv on tcgen05: TMA brings raw fp32 input, converter warps write fp16 tiles to smem, fp32 accumulators in TMEM, persistent CTAs, PDL.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.847163,
"speedup": 4.384
}
}
},
{
"board": "L1",
"id": "042_moe_expert_load_balancing_and_token_capacity_backward",
"name": "MoE expert load balancing and token capacity backward",
"group": "Backward pass",
"op": "MoE load-balancing loss / capacity backward",
"direction": "backward",
"model": "deepseek-ai/DeepSeek-R1-0528",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/042_moe_expert_load_balancing_and_token_capacity_backward",
"language": "Triton",
"files": [
{
"path": "main.py",
"lines": 1649,
"bytes": 81411
}
],
"idea": "Memory-bound broadcast add: Triton or Gluon kernels picked by row count, wide vector loads and stores, L2 eviction hints; the loss gradient is read on the device.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.720468,
"speedup": 2.2678
}
}
},
{
"board": "L1",
"id": "043_mla_fused_qkv_rope_split",
"name": "MLA fused QKV RoPE split",
"group": "Projections and GEMM",
"op": "MLA latent projections: q_a -> RMSNorm -> q_b, kv_a + split",
"direction": "forward",
"model": "deepseek-ai/DeepSeek-V3",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/043_mla_fused_qkv_rope_split",
"language": "CUDA C++",
"files": [
{
"path": "cutlass_qb.cu",
"lines": 59,
"bytes": 3765
},
{
"path": "cutlass_qb10.cu",
"lines": 22,
"bytes": 1290
},
{
"path": "cutlass_qb2.cu",
"lines": 42,
"bytes": 2792
},
{
"path": "cutlass_qb3.cu",
"lines": 36,
"bytes": 2334
},
{
"path": "cutlass_qb4.cu",
"lines": 22,
"bytes": 1389
},
{
"path": "cutlass_qb5.cu",
"lines": 32,
"bytes": 1983
},
{
"path": "cutlass_qb6.cu",
"lines": 45,
"bytes": 3088
},
{
"path": "cutlass_qb7.cu",
"lines": 26,
"bytes": 1537
},
{
"path": "cutlass_qb8.cu",
"lines": 30,
"bytes": 1967
},
{
"path": "cutlass_qb9.cu",
"lines": 30,
"bytes": 1923
},
{
"path": "cutlass_qb_common.h",
"lines": 566,
"bytes": 33930
},
{
"path": "kernel.cu",
"lines": 9014,
"bytes": 522511
},
{
"path": "main.cpp",
"lines": 813,
"bytes": 55270
}
],
"idea": "A CUDA graph of tcgen05 GEMMs, picked by token count: joint q_a/kv_a projection (split-K or persistent 2-SM), RMSNorm in its reduce or the q_b epilogue, persistent q_b.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.758613,
"speedup": 1.6246
}
}
},
{
"board": "L1",
"id": "044_moe_expert_computation",
"name": "MoE expert computation",
"group": "MLP and MoE",
"op": "MoE experts: SwiGLU per expert from given ids / weights",
"direction": "forward",
"model": "deepseek-ai/DeepSeek-V3",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/044_moe_expert_computation",
"language": "CUDA C++",
"files": [
{
"path": "cutlass_path.cu",
"lines": 576,
"bytes": 30547
},
{
"path": "cutlass_path.h",
"lines": 63,
"bytes": 3813
},
{
"path": "cutlass_stg_a.cu",
"lines": 17,
"bytes": 904
},
{
"path": "cutlass_stg_b.cu",
"lines": 21,
"bytes": 902
},
{
"path": "cutpath_core.h",
"lines": 711,
"bytes": 41109
},
{
"path": "kernel.cu",
"lines": 3401,
"bytes": 201698
},
{
"path": "kernel.h",
"lines": 95,
"bytes": 6324
},
{
"path": "main.cpp",
"lines": 568,
"bytes": 30889
}
],
"idea": "One persistent 2-SM tcgen05 megakernel: in-kernel routing and token gather, gate/up with SwiGLU, down with weighted red.add; large batches run the down step as CUTLASS grouped GEMMs.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.948983,
"speedup": 2.4137
}
}
},
{
"board": "L1",
"id": "045_fused_linear_gelu_grn_linear",
"name": "Fused linear GELU GRN linear",
"group": "Image and video",
"op": "ConvNeXtV2 MLP + GRN",
"direction": "forward",
"model": "facebook/convnextv2-base-22k-224",
"workloads": 14,
"kernel": {
"dir": "kernels/L1/045_fused_linear_gelu_grn_linear",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 10360,
"bytes": 556152
},
{
"path": "kernel.h",
"lines": 9,
"bytes": 522
},
{
"path": "main.cpp",
"lines": 113,
"bytes": 5898
}
],
"idea": "fp16 tcgen05 GEMMs; the GEMM1 epilogue does GELU and per-channel sums of squares, shared across CTAs before GRN + GEMM2; large inputs recompute GEMM1 in a second pass.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.886625,
"speedup": 5.8284
}
}
},
{
"board": "L1",
"id": "046_attention_softmax_with_softcapping_and_dropout",
"name": "Attention softmax with softcapping and dropout",
"group": "Attention",
"op": "attention softmax with logit soft-cap + dropout",
"direction": "forward",
"model": "google/gemma-3-1b-it",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/046_attention_softmax_with_softcapping_and_dropout",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 1270,
"bytes": 80027
},
{
"path": "kernel.h",
"lines": 3,
"bytes": 165
},
{
"path": "main.cpp",
"lines": 96,
"bytes": 5355
}
],
"idea": "One read, one write: the cap bounds the logits, so no max pass is needed; packed bf16x2/f32x2 math, a kernel per row length, CUDA graph launch.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.905159,
"speedup": 5.1237
}
}
},
{
"board": "L1",
"id": "047_attention_with_qk_norm_and_rope",
"name": "Attention with QK norm and RoPE",
"group": "Attention",
"op": "Gemma3 attention block: QKV/O proj, QK-RMSNorm, RoPE, soft-cap, causal",
"direction": "forward",
"model": "google/gemma-3-12b-it",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/047_attention_with_qk_norm_and_rope",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 14486,
"bytes": 842615
},
{
"path": "kernel.h",
"lines": 3,
"bytes": 278
},
{
"path": "main.cpp",
"lines": 6,
"bytes": 425
},
{
"path": "oproj.cu",
"lines": 161,
"bytes": 9627
}
],
"idea": "tcgen05 QKV GEMM fusing QK-RMSNorm + RoPE (cuBLASLt + norm/RoPE kernel on some shapes); tcgen05 soft-capped flash attention, causal fast path after a mask check",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.851953,
"speedup": 3.6969
}
}
},
{
"board": "L1",
"id": "048_fused_gate_up_projection_with_swiglu",
"name": "Fused gate up projection with SwiGLU",
"group": "MLP and MoE",
"op": "fused gate+up GEMM with GELU-tanh gating (no down proj)",
"direction": "forward",
"model": "google/gemma-3-12b-it",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/048_fused_gate_up_projection_with_swiglu",
"language": "CUDA C++",
"files": [
{
"path": "cutlass_gemm.cu",
"lines": 2,
"bytes": 94
},
{
"path": "cutlass_mix.cu",
"lines": 18,
"bytes": 950
},
{
"path": "gu_body.h",
"lines": 1804,
"bytes": 100798
},
{
"path": "kernel.cu",
"lines": 2535,
"bytes": 149516
},
{
"path": "kernel.h",
"lines": 53,
"bytes": 3930
},
{
"path": "main.cpp",
"lines": 213,
"bytes": 10473
}
],
"idea": "Gate and up weights read in place as one interleaved operand; CUTLASS 2-SM tcgen05 GEMM applies GELU-tanh times up in its epilogue; custom tcgen05 kernels for small M",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.679345,
"speedup": 1.2607
}
}
},
{
"board": "L1",
"id": "049_attention_qk_matmul_with_gqa_repeat_and_scaling",
"name": "Attention QK matmul with GQA repeat and scaling",
"group": "Attention",
"op": "GQA repeat + Q@K^T + scale",
"direction": "forward",
"model": "google/gemma-3-270m",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/049_attention_qk_matmul_with_gqa_repeat_and_scaling",
"language": "CuTe DSL",
"files": [
{
"path": "main.py",
"lines": 5264,
"bytes": 329822
}
],
"idea": "CuTe DSL persistent tcgen05 batched GEMM: a KV group's query heads are just extra GEMM rows, scale in the epilogue; small shapes use an mma.sync kernel.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.628631,
"speedup": 1.6089
}
}
},
{
"board": "L1",
"id": "050_attention_qkv_projection_with_bias_and_reshape",
"name": "Attention QKV projection with bias and reshape",
"group": "Projections and GEMM",
"op": "QKV projection with bias + reshape",
"direction": "forward",
"model": "google/gemma-3-270m",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/050_attention_qkv_projection_with_bias_and_reshape",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 6750,
"bytes": 365888
},
{
"path": "kernel.h",
"lines": 18,
"bytes": 1096
},
{
"path": "main.cpp",
"lines": 241,
"bytes": 13349
}
],
"idea": "One tcgen05 GEMM kernel makes Q, K and V with bias in its epilogue; tile widths set by token count (mma.sync for tiny sizes); CUDA graph launch.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.721885,
"speedup": 2.1843
}
}
},
{
"board": "L1",
"id": "051_attention_qkv_with_qk_norm_single_kernel_backward",
"name": "Attention QKV with QK norm single kernel backward",
"group": "Backward pass",
"op": "QKV + QK-norm backward",
"direction": "backward",
"model": "google/gemma-3-270m",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/051_attention_qkv_with_qk_norm_single_kernel_backward",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 4127,
"bytes": 259987
},
{
"path": "kernel.h",
"lines": 7,
"bytes": 517
},
{
"path": "main.cpp",
"lines": 118,
"bytes": 7479
}
],
"idea": "Small batches: one cooperative kernel does the norm backward, a grid barrier, then warp-specialized TMA + tcgen05 dX and dW GEMMs; large batches split this into PDL-chained kernels.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.887948,
"speedup": 6.4193
}
}
},
{
"board": "L1",
"id": "052_altup_hidden_state_collapse_with_magnitude_normalization",
"name": "AltUp hidden state collapse with magnitude normalization",
"group": "Other",
"op": "Gemma3n AltUp stream collapse",
"direction": "forward",
"model": "google/gemma-3n-E2B",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/052_altup_hidden_state_collapse_with_magnitude_normalization",
"language": "CUDA C++",
"files": [
{
"path": "cutlass_fp16.cu",
"lines": 1627,
"bytes": 105668
},
{
"path": "kernel.cu",
"lines": 858,
"bytes": 48369
},
{
"path": "main.cpp",
"lines": 50,
"bytes": 2530
}
],
"idea": "By row count: a CUTLASS 2-SM tcgen05 GEMM whose epilogue writes scaled fp16 plus row sums of squares, or cuBLASLt; then a PDL collapse kernel.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.890808,
"speedup": 4.3164
}
}
},
{
"board": "L1",
"id": "053_gaussian_topk_sparse_activation",
"name": "Gaussian topk sparse activation",
"group": "Other",
"op": "Gemma3n Gaussian top-k sparse activation",
"direction": "forward",
"model": "google/gemma-3n-E2B",
"workloads": 12,
"kernel": {
"dir": "kernels/L1/053_gaussian_topk_sparse_activation",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 1945,
"bytes": 111202
},
{
"path": "kernel.h",
"lines": 3,
"bytes": 128
},
{
"path": "main.cpp",
"lines": 266,
"bytes": 13782
}
],
"idea": "One pass per row: the row stays on chip while its sum and sum of squares are reduced; kernel picked by shape; big outputs use compressible memory.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.635128,
"speedup": 1.1898
}
}
},
{
"board": "L1",
"id": "054_audio_attention_qkv_projection_with_normalization",
"name": "Audio attention QKV projection with normalization",
"group": "Audio",
"op": "audio attention QKV proj + per-head RMSNorm",
"direction": "forward",
"model": "google/gemma-3n-E4B",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/054_audio_attention_qkv_projection_with_normalization",
"language": "CUDA C++",
"files": [
{
"path": "cf_common.cuh",
"lines": 252,
"bytes": 16824
},
{
"path": "graph_rec.h",
"lines": 75,
"bytes": 3154
},
{
"path": "kernel.cu",
"lines": 326,
"bytes": 14361
},
{
"path": "kernel.h",
"lines": 114,
"bytes": 8072
},
{
"path": "main.cpp",
"lines": 307,
"bytes": 15470
},
{
"path": "qkv_cf.cu",
"lines": 2131,
"bytes": 117006
},
{
"path": "qkv_fp16.cu",
"lines": 2304,
"bytes": 130575
},
{
"path": "qkv_ms.cu",
"lines": 2857,
"bytes": 147736
},
{
"path": "qkv_p2.cu",
"lines": 394,
"bytes": 22350
},
{
"path": "qkv_pp.cu",
"lines": 141,
"bytes": 7588
}
],
"idea": "tcgen05 GEMM with per-head RMSNorm in the epilogue; small M: TF32 swap-AB split-K in clusters; large M: power-of-two scaled fp16 and 2-SM tiles; CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.947195,
"speedup": 14.5904
}
}
},
{
"board": "L1",
"id": "055_attention_qkv_projection_with_gqa_reshape",
"name": "Attention QKV projection with GQA reshape",
"group": "Projections and GEMM",
"op": "QKV projection + GQA reshape",
"direction": "forward",
"model": "ibm-granite/granite-4.0-1b",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/055_attention_qkv_projection_with_gqa_reshape",
"language": "CuTe DSL",
"files": [
{
"path": "main.py",
"lines": 10427,
"bytes": 621205
}
],
"idea": "One persistent CuTe DSL tcgen05 GEMM over the stacked Q/K/V weights (three TMA descriptors, 1- or 2-CTA MMA, double-buffered TMEM, TMA-store epilogue); tile plan by shape.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.726182,
"speedup": 1.8558
}
}
},
{
"board": "L1",
"id": "056_mamba_ssm_dt_projection_softplus_clamp_backward",
"name": "Mamba SSM dt projection softplus clamp backward",
"group": "Backward pass",
"op": "Mamba dt projection + softplus + clamp backward",
"direction": "backward",
"model": "ibm-granite/granite-4.0-micro",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/056_mamba_ssm_dt_projection_softplus_clamp_backward",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 1062,
"bytes": 62720
},
{
"path": "kernel.h",
"lines": 6,
"bytes": 417
},
{
"path": "main.cpp",
"lines": 32,
"bytes": 1617
}
],
"idea": "One memory-bound pass with packed bf16x2 math; per-head bias sums are reduced in a CTA cluster through DSMEM (small inputs) or with fixed-point 64-bit atomics.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.901713,
"speedup": 7.096
}
}
},
{
"board": "L1",
"id": "057_mtp_shifted_embedding_with_dual_rms_norm_fusion",
"name": "MTP shifted embedding with dual RMS norm fusion",
"group": "Full decoder layers",
"op": "MTP input: shifted embedding + dual RMSNorm + concat + proj",
"direction": "forward",
"model": "inclusionAI/Ling-flash-2.0",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/057_mtp_shifted_embedding_with_dual_rms_norm_fusion",
"language": "CUDA C++",
"files": [
{
"path": "cutlass_gemm.cu",
"lines": 197,
"bytes": 10458
},
{
"path": "cutlass_gemm.h",
"lines": 9,
"bytes": 617
},
{
"path": "kernel.cu",
"lines": 5144,
"bytes": 306456
},
{
"path": "kernel.h",
"lines": 103,
"bytes": 8618
},
{
"path": "kernel_lo.cu",
"lines": 699,
"bytes": 35645
},
{
"path": "main.cpp",
"lines": 808,
"bytes": 47685
}
],
"idea": "By token count: a norm pre-pass then a skinny swap-AB tcgen05 GEMM or cuBLASLt; large counts run one persistent 2-SM tcgen05 GEMM whose extra warps do the norms.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.765936,
"speedup": 1.903
}
}
},
{
"board": "L1",
"id": "058_moe_expert_token_radix_sort_with_prefix_sum",
"name": "MoE expert token radix sort with prefix sum",
"group": "MLP and MoE",
"op": "MoE token sort by expert (counting sort + prefix sum)",
"direction": "forward",
"model": "inclusionAI/Ling-mini-2.0",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/058_moe_expert_token_radix_sort_with_prefix_sum",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 1424,
"bytes": 80339
},
{
"path": "kernel.h",
"lines": 3,
"bytes": 113
},
{
"path": "main.cpp",
"lines": 47,
"bytes": 2249
}
],
"idea": "One cluster kernel with no grid sync: CTAs ballot-rank their own tile and count the rest, swap counts by DSMEM st.async, then scan and do a stable scatter.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.952815,
"speedup": 17.6012
}
}
},
{
"board": "L1",
"id": "059_moe_group_score_aggregation_and_masking",
"name": "MoE group score aggregation and masking",
"group": "MLP and MoE",
"op": "MoE group-limited routing step: top-2 group sums, top-4 groups, mask",
"direction": "forward",
"model": "inclusionAI/Ling-mini-2.0",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/059_moe_group_score_aggregation_and_masking",
"language": "Triton",
"files": [
{
"path": "main.py",
"lines": 596,
"bytes": 33961
}
],
"idea": "One autotuned Triton kernel per token block: top-2 per group via packed 64-bit max reductions, group rank by pairwise compares, then masked scores and mask stored.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.860952,
"speedup": 5.1839
}
}
},
{
"board": "L1",
"id": "060_fused_attention_qk_matmul_scale_mask_softmax_backward",
"name": "Fused attention QK matmul scale mask softmax backward",
"group": "Backward pass",
"op": "attention QK scale mask softmax backward",
"direction": "backward",
"model": "meta-llama/Llama-3.1-405B",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/060_fused_attention_qk_matmul_scale_mask_softmax_backward",
"language": "CUDA C++",
"files": [
{
"path": "fk.cuh",
"lines": 1150,
"bytes": 72980
},
{
"path": "inc.cuh",
"lines": 2131,
"bytes": 114093
},
{
"path": "kernel.cu",
"lines": 740,
"bytes": 43273
},
{
"path": "kernel.h",
"lines": 10,
"bytes": 544
},
{
"path": "main.cpp",
"lines": 86,
"bytes": 5179
},
{
"path": "pc.cuh",
"lines": 1606,
"bytes": 94754
},
{
"path": "pk.cuh",
"lines": 159,
"bytes": 9278
},
{
"path": "qc.cuh",
"lines": 716,
"bytes": 38964
},
{
"path": "solo.cuh",
"lines": 1177,
"bytes": 73402
},
{
"path": "solo2.cuh",
"lines": 513,
"bytes": 30448
}
],
"idea": "Fused warp-specialized tcgen05 kernels by key length: dS is built in smem from TMA tiles and feeds the dQ and dK MMAs; other shapes use two passes (dS, then GEMM).",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.807747,
"speedup": 2.7368
}
}
},
{
"board": "L1",
"id": "061_tanh_gated_residual_add_backward",
"name": "Tanh gated residual add backward",
"group": "Backward pass",
"op": "tanh-gated residual add backward",
"direction": "backward",
"model": "meta-llama/Llama-3.2-11B-Vision",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/061_tanh_gated_residual_add_backward",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 1425,
"bytes": 79871
},
{
"path": "kernel.h",
"lines": 5,
"bytes": 301
},
{
"path": "main.cpp",
"lines": 105,
"bytes": 5279
}
],
"idea": "One fused memory-bound kernel: writes both tensor grads, reduces the gate grad with fixed-point atomics and a finishing CTA; big inputs use Cluster Launch Control work stealing.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.906641,
"speedup": 4.3607
}
}
},
{
"board": "L1",
"id": "062_kv_cache_update_with_rope_backward",
"name": "KV cache update with RoPE backward",
"group": "Backward pass",
"op": "KV-cache update with RoPE backward",
"direction": "backward",
"model": "mistralai/Devstral-Small-2507",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/062_kv_cache_update_with_rope_backward",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 2057,
"bytes": 122479
},
{
"path": "kernel.h",
"lines": 6,
"bytes": 322
},
{
"path": "main.cpp",
"lines": 90,
"bytes": 6254
}
],
"idea": "One memory-bound launch, kernel picked by cache size: plain rows stream through as 256-bit copies, written rows are gathered for the RoPE backward and head-summed cos/sin gradients.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.983012,
"speedup": 14.1645
}
}
},
{
"board": "L1",
"id": "063_attention_output_reshape_and_projection",
"name": "Attention output reshape and projection",
"group": "Projections and GEMM",
"op": "attention output reshape + o_proj (heads*v_head_dim -> hidden)",
"direction": "forward",
"model": "moonshotai/Kimi-K2-Instruct-0905",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/063_attention_output_reshape_and_projection",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 8949,
"bytes": 514383
},
{
"path": "kernel.h",
"lines": 10,
"bytes": 664
},
{
"path": "main.cpp",
"lines": 38,
"bytes": 1984
}
],
"idea": "tcgen05 GEMM with the head transpose folded into 3-D TMA loads; per-shape 2-SM persistent tile configs, or swap-AB split-K with a DSMEM reduce for few tokens.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.79395,
"speedup": 1.5364
}
}
},
{
"board": "L1",
"id": "064_latent_kv_expansion_with_split",
"name": "Latent KV expansion with split",
"group": "Projections and GEMM",
"op": "MLA latent KV expansion: RMSNorm + kv_b_proj + split K_nope / V",
"direction": "forward",
"model": "moonshotai/Kimi-K2-Instruct-0905",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/064_latent_kv_expansion_with_split",
"language": "CuTe DSL",
"files": [
{
"path": "kvexp_cute.py",
"lines": 4061,
"bytes": 233026
}
],
"idea": "CuTe DSL: warp-per-row RMSNorm, then a PDL-overlapped persistent tcgen05 GEMM (2-CTA tiles, TMA) storing K and V in final layout; tiny inputs use one fused kernel.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.798737,
"speedup": 2.1096
}
}
},
{
"board": "L1",
"id": "065_fused_statistics_projection_and_split",
"name": "Fused statistics projection and split",
"group": "Audio",
"op": "Conv1d stats projection + split (TTS)",
"direction": "forward",
"model": "myshell-ai/OpenVoice",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/065_fused_statistics_projection_and_split",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 3859,
"bytes": 242344
},
{
"path": "kernel.h",
"lines": 25,
"bytes": 2454
},
{
"path": "kernel_mma.cu",
"lines": 1032,
"bytes": 58853
},
{
"path": "main.cpp",
"lines": 156,
"bytes": 10413
}
],
"idea": "tcgen05 TF32 kernels, mostly persistent, by shape: each CTA keeps a slice of W in smem while TMA streams the input; small shapes use mma.sync.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.831881,
"speedup": 4.2795
}
}
},
{
"board": "L1",
"id": "066_masked_softmax_with_attention_dropout_backward",
"name": "Masked softmax with attention dropout backward",
"group": "Backward pass",
"op": "masked softmax + dropout backward",
"direction": "backward",
"model": "myshell-ai/OpenVoice",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/066_masked_softmax_with_attention_dropout_backward",
"language": "CUDA C++",
"files": [
{
"path": "cta_body.h",
"lines": 789,
"bytes": 41941
},
{
"path": "kernel.cu",
"lines": 750,
"bytes": 37426
},
{
"path": "kernel.h",
"lines": 6,
"bytes": 326
},
{
"path": "launch_rec.h",
"lines": 71,
"bytes": 3132
},
{
"path": "lead_aot.cu",
"lines": 5879,
"bytes": 114858
},
{
"path": "main.cpp",
"lines": 216,
"bytes": 11824
},
{
"path": "ss_aot.cu",
"lines": 3233,
"bytes": 68905
},
{
"path": "ss_body.h",
"lines": 3726,
"bytes": 174734
}
],
"idea": "Memory-bound kernels built per row length: lanes (or a whole CTA for long rows) hold the row in registers via wide loads, reduce with shuffles, then stream out.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.777591,
"speedup": 3.4861
}
}
},
{
"board": "L1",
"id": "067_flash_attention_gqa_ultralong",
"name": "Flash attention GQA ultralong",
"group": "Attention",
"op": "GQA attention block: QKV proj, RoPE, causal SDPA, o_proj (no QK-norm)",
"direction": "forward",
"model": "nvidia/Llama-3.1-Nemotron-8B-UltraLong-1M-Instruct",
"workloads": 18,
"kernel": {
"dir": "kernels/L1/067_flash_attention_gqa_ultralong",
"language": "CUDA C++",
"files": [
{
"path": "attn_p.cu",
"lines": 454,
"bytes": 23992
},
{
"path": "attn_tc.cu",
"lines": 415,
"bytes": 22152
},
{
"path": "cog/sm100_gemm_prefetchb.hpp",
"lines": 1081,
"bytes": 50510
},
{
"path": "gemm.cu",
"lines": 248,
"bytes": 14680
},
{
"path": "gemm_tf32.cu",
"lines": 223,
"bytes": 11350
},
{
"path": "gemm_ws16.cu",
"lines": 298,
"bytes": 15672
},
{
"path": "kernel.cu",
"lines": 336,
"bytes": 16339
},
{
"path": "kernel.h",
"lines": 50,
"bytes": 3581
},
{
"path": "main.cpp",
"lines": 204,
"bytes": 11705
},
{
"path": "s_attn_tc.cu",
"lines": 601,
"bytes": 29485
},
{
"path": "s_gemm.cu",
"lines": 312,
"bytes": 18405
},
{
"path": "s_kernel.cu",
"lines": 182,
"bytes": 9501
},
{
"path": "s_kernel.h",
"lines": 65,
"bytes": 4339
},
{
"path": "v_attn_tc.cu",
"lines": 766,
"bytes": 37343
},
{
"path": "v_gemm.cu",
"lines": 423,
"bytes": 27702
},
{
"path": "v_kernel.cu",
"lines": 183,
"bytes": 9629
},
{
"path": "v_kernel.h",
"lines": 70,
"bytes": 4857
},
{
"path": "v_main.inc",
"lines": 146,
"bytes": 9346
},
{
"path": "v_wsgemm.cu",
"lines": 347,
"bytes": 18103
}
],
"idea": "By length: fp16 tcgen05 QKV GEMM with RoPE, FA4-style causal attention where two Q heads share each K/V tile, then the O GEMM, PDL-chained.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.648559,
"speedup": 1.58
}
}
},
{
"board": "L1",
"id": "068_fused_rope_application_backward",
"name": "Fused RoPE application backward",
"group": "Backward pass",
"op": "RoPE application backward",
"direction": "backward",
"model": "nvidia/Llama-3.1-Nemotron-8B-UltraLong-1M-Instruct",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/068_fused_rope_application_backward",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 1619,
"bytes": 99877
},
{
"path": "main.cpp",
"lines": 88,
"bytes": 5685
}
],
"idea": "Memory-bound pass per position: a cp.async ring over heads rotates the q/k grads back and sums cos/sin grads in registers; launch config from a per-shape table",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.842411,
"speedup": 2.5378
}
}
},
{
"board": "L1",
"id": "069_rms_norm",
"name": "RMS norm",
"group": "Normalization",
"op": "residual add + RMSNorm (returns the normed output only)",
"direction": "forward",
"model": "nvidia/Llama-3.3-Nemotron-70B-Select",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/069_rms_norm",
"language": "Triton + CuTe DSL",
"files": [
{
"path": "main.py",
"lines": 779,
"bytes": 44259
}
],
"idea": "CuTe DSL, kernel by row count: one row per CTA, packed bf16x2 math, PDL; few rows split each row over a 2-CTA cluster summing via DSMEM.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.8439,
"speedup": 2.1215
}
}
},
{
"board": "L1",
"id": "070_mamba2_fused_intra_chunk_diagonal_computation",
"name": "Mamba2 fused intra chunk diagonal computation",
"group": "State space and conv",
"op": "Mamba2 SSD intra-chunk diagonal block",
"direction": "forward",
"model": "nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-FP8",
"workloads": 14,
"kernel": {
"dir": "kernels/L1/070_mamba2_fused_intra_chunk_diagonal_computation",
"language": "CUDA C++",
"files": [
{
"path": "etime.h",
"lines": 17,
"bytes": 877
},
{
"path": "k2h.cu",
"lines": 906,
"bytes": 50043
},
{
"path": "kernel.cu",
"lines": 1189,
"bytes": 68800
},
{
"path": "kernel.h",
"lines": 155,
"bytes": 9078
},
{
"path": "khalf.cu",
"lines": 196,
"bytes": 11081
},
{
"path": "khalf_dev.h",
"lines": 519,
"bytes": 30460
},
{
"path": "kpipe.cu",
"lines": 1207,
"bytes": 73172
},
{
"path": "main.cpp",
"lines": 270,
"bytes": 10282
},
{
"path": "ovl.h",
"lines": 23,
"bytes": 1582
}
],
"idea": "Two chained tcgen05 MMAs per chunk and head: C B^T into TMEM, causal decay applied in registers, then times X; many tiles use a persistent warp-specialized pipeline.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.922074,
"speedup": 6.8325
}
}
},
{
"board": "L1",
"id": "071_kv_cache_update_with_rope",
"name": "KV cache update with RoPE",
"group": "Attention",
"op": "KV-cache update with RoPE on K",
"direction": "forward",
"model": "nvidia/Phi-4-reasoning-plus-NVFP4",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/071_kv_cache_update_with_rope",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 2221,
"bytes": 123756
},
{
"path": "kernel.h",
"lines": 5,
"bytes": 288
},
{
"path": "main.cpp",
"lines": 128,
"bytes": 7172
}
],
"idea": "Memory-bound kernels picked by shape: wide 16- or 32-byte copies of the old cache, RoPE on the new keys in packed bf16 math; replayed through CUDA graphs.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.945376,
"speedup": 9.5273
}
}
},
{
"board": "L1",
"id": "072_cross_attention_qkv_projection_with_gqa_repeat_backward",
"name": "Cross attention QKV projection with GQA repeat backward",
"group": "Backward pass",
"op": "cross-attention QKV + GQA repeat backward",
"direction": "backward",
"model": "nvidia/parakeet-tdt-0.6b-v3",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/072_cross_attention_qkv_projection_with_gqa_repeat_backward",
"language": "CUDA C++",
"files": [
{
"path": "fused.cu",
"lines": 2418,
"bytes": 147804
},
{
"path": "kernel.cu",
"lines": 1894,
"bytes": 100343
},
{
"path": "kernel.h",
"lines": 120,
"bytes": 8459
},
{
"path": "main.cpp",
"lines": 809,
"bytes": 46796
}
],
"idea": "fp32 inputs staged as scaled fp16 (GQA grads summed) plus a block-mean correction term; one grouped 2-CTA tcgen05 GEMM computes all four products; CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.766823,
"speedup": 2.3931
}
}
},
{
"board": "L1",
"id": "073_fused_encoder_final_norm_to_decoder_cross_attention_kv_projection",
"name": "Fused encoder final norm to decoder cross attention KV projection",
"group": "Audio",
"op": "encoder final RMSNorm + cross-attention K/V projection",
"direction": "forward",
"model": "nvidia/parakeet-tdt-0.6b-v3",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/073_fused_encoder_final_norm_to_decoder_cross_attention_kv_projection",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 5466,
"bytes": 320931
},
{
"path": "kernel.h",
"lines": 6,
"bytes": 330
},
{
"path": "main.cpp",
"lines": 32,
"bytes": 1848
}
],
"idea": "Many tokens: norm weight folded into the stacked K/V weights, TMA + tcgen05 GEMM on raw x, row RMS scale in the epilogue; fewer tokens: mma.sync kernels",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.920341,
"speedup": 5.6565
}
}
},
{
"board": "L1",
"id": "074_fused_gated_mlp_silu",
"name": "Fused gated MLP SiLU",
"group": "MLP and MoE",
"op": "gated MLP: fused gate_up GEMM + SiLU*up + down",
"direction": "forward",
"model": "nvidia/parakeet-tdt-0.6b-v3",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/074_fused_gated_mlp_silu",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 3264,
"bytes": 208314
},
{
"path": "main.cpp",
"lines": 8,
"bytes": 625
}
],
"idea": "A prep kernel casts to fp16 with exact power-of-two scales; one persistent 2-SM tcgen05 kernel runs gate/up (SiLU*up epilogue) then down, linked by flags.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.773138,
"speedup": 2.1132
}
}
},
{
"board": "L1",
"id": "075_grouped_query_self_attention_with_rope",
"name": "Grouped query self attention with RoPE",
"group": "Audio",
"op": "GQA self-attention block with RoPE (encoder / decoder)",
"direction": "forward",
"model": "nvidia/parakeet-tdt-0.6b-v3",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/075_grouped_query_self_attention_with_rope",
"language": "CUDA C++",
"files": [
{
"path": "attn.cu",
"lines": 2153,
"bytes": 112321
},
{
"path": "gemm2sm.cu",
"lines": 354,
"bytes": 18014
},
{
"path": "kernel.cu",
"lines": 142,
"bytes": 7603
},
{
"path": "kernel.h",
"lines": 73,
"bytes": 7134
},
{
"path": "main.cpp",
"lines": 1126,
"bytes": 59850
},
{
"path": "oproj_cfg15.cu",
"lines": 8,
"bytes": 607
},
{
"path": "oproj_cfg18.cu",
"lines": 10,
"bytes": 739
},
{
"path": "oproj_cfg19.cu",
"lines": 13,
"bytes": 567
},
{
"path": "oproj_cfg20.cu",
"lines": 7,
"bytes": 487
},
{
"path": "oproj_cfg21.cu",
"lines": 27,
"bytes": 1827
},
{
"path": "oproj_cfg9.cu",
"lines": 13,
"bytes": 595
},
{
"path": "qkv_cfg14.cu",
"lines": 12,
"bytes": 712
},
{
"path": "qkv_cfg15.cu",
"lines": 12,
"bytes": 686
},
{
"path": "qkv_cfg22.cu",
"lines": 12,
"bytes": 616
},
{
"path": "qkv_cfg24.cu",
"lines": 12,
"bytes": 767
},
{
"path": "qkv_cfg7.cu",
"lines": 12,
"bytes": 651
},
{
"path": "qkv_cfg8.cu",
"lines": 12,
"bytes": 612
},
{
"path": "qkv_common.h",
"lines": 496,
"bytes": 29090
},
{
"path": "qkv_decl.h",
"lines": 16,
"bytes": 856
},
{
"path": "qkvh.cu",
"lines": 452,
"bytes": 25311
},
{
"path": "sattn.cu",
"lines": 252,
"bytes": 12030
},
{
"path": "sp.cu",
"lines": 2828,
"bytes": 157113
},
{
"path": "sp64.cu",
"lines": 649,
"bytes": 35834
},
{
"path": "sp64l.cu",
"lines": 654,
"bytes": 36326
},
{
"path": "spk64.cu",
"lines": 1064,
"bytes": 61340
},
{
"path": "split.cu",
"lines": 606,
"bytes": 31439
},
{
"path": "tmem_ops.h",
"lines": 31,
"bytes": 4288
}
],
"idea": "Four PDL kernels in a CUDA graph: fp16 cast + cos/sin prep, CUTLASS QKV GEMM with fused RoPE epilogue, tcgen05 attention picked by shape, CUTLASS output GEMM.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.850835,
"speedup": 5.053
}
}
},
{
"board": "L1",
"id": "076_batched_expert_forward",
"name": "Batched expert forward",
"group": "MLP and MoE",
"op": "gpt-oss experts: gate_up + clamped SwiGLU (alpha, limit) + down, dense over all experts",
"direction": "forward",
"model": "openai/gpt-oss-120b",
"workloads": 14,
"kernel": {
"dir": "kernels/L1/076_batched_expert_forward",
"language": "CUDA C++",
"files": [
{
"path": "bk.h",
"lines": 9,
"bytes": 543
},
{
"path": "bk_gemm.cu",
"lines": 665,
"bytes": 32876
},
{
"path": "dn16_gemm.cu",
"lines": 398,
"bytes": 20326
},
{
"path": "down_gemm.cu",
"lines": 110,
"bytes": 4999
},
{
"path": "f35.h",
"lines": 23,
"bytes": 1333
},
{
"path": "f35_gemm.cu",
"lines": 806,
"bytes": 43596
},
{
"path": "fused_conv_gemm.cu",
"lines": 1413,
"bytes": 89920
},
{
"path": "glu_gemm.cu",
"lines": 286,
"bytes": 15452
},
{
"path": "kernel.cu",
"lines": 656,
"bytes": 32564
},
{
"path": "kernel.h",
"lines": 169,
"bytes": 12127
},
{
"path": "main.cpp",
"lines": 1346,
"bytes": 73512
},
{
"path": "tf32_glu_gemm.cu",
"lines": 204,
"bytes": 9803
},
{
"path": "tf32a_gemm.cu",
"lines": 640,
"bytes": 33128
},
{
"path": "tmema_gemm.cu",
"lines": 1845,
"bytes": 112664
}
],
"idea": "Per-size tcgen05 GEMMs on the fp32 weights (TF32, or converted to fp16 on the fly); the gate_up epilogue fuses bias, clamped SwiGLU and routing weight; CUDA graph replay.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.867062,
"speedup": 3.1363
}
}
},
{
"board": "L1",
"id": "077_whisper_decoder_output_projection",
"name": "Whisper decoder output projection",
"group": "Projections and GEMM",
"op": "Whisper LM head GEMM",
"direction": "forward",
"model": "openai/whisper-large-v3",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/077_whisper_decoder_output_projection",
"language": "CUDA C++",
"files": [
{
"path": "cfg.h",
"lines": 330,
"bytes": 18100
},
{
"path": "cfg2.h",
"lines": 406,
"bytes": 23185
},
{
"path": "g8.cu",
"lines": 272,
"bytes": 12379
},
{
"path": "gemv.cu",
"lines": 303,
"bytes": 13532
},
{
"path": "gemv3d.cu",
"lines": 557,
"bytes": 27862
},
{
"path": "k_huge.cu",
"lines": 82,
"bytes": 4661
},
{
"path": "k_large.cu",
"lines": 7,
"bytes": 388
},
{
"path": "k_mid.cu",
"lines": 12,
"bytes": 729
},
{
"path": "k_small.cu",
"lines": 10,
"bytes": 537
},
{
"path": "k_split.cu",
"lines": 65,
"bytes": 3500
},
{
"path": "k_v128.cu",
"lines": 8,
"bytes": 509
},
{
"path": "kernel.cu",
"lines": 77,
"bytes": 3661
},
{
"path": "kernel.h",
"lines": 13,
"bytes": 731
},
{
"path": "kraster.cu",
"lines": 119,
"bytes": 6937
},
{
"path": "main.cpp",
"lines": 35,
"bytes": 1757
}
],
"idea": "By token count: tiny batches use an mma.sync GEMV fed by bulk/TMA copies with work stealing; others use CUTLASS 2-SM tcgen05 swap-AB GEMMs with L2 hints.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.737958,
"speedup": 1.6383
}
}
},
{
"board": "L1",
"id": "078_group_norm_fusion",
"name": "Group norm fusion",
"group": "Image and video",
"op": "GroupNorm (SD UNet)",
"direction": "forward",
"model": "runwayml/stable-diffusion-v1-5",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/078_group_norm_fusion",
"language": "CUDA C++",
"files": [
{
"path": "gn_chan.cu",
"lines": 161,
"bytes": 10136
},
{
"path": "gn_clc.cuh",
"lines": 241,
"bytes": 11279
},
{
"path": "gn_clc_00.cu",
"lines": 16,
"bytes": 860
},
{
"path": "gn_common.cuh",
"lines": 1520,
"bytes": 79128
},
{
"path": "gn_fixed.cuh",
"lines": 2943,
"bytes": 172432
},
{
"path": "gn_fixed_00.cu",
"lines": 9,
"bytes": 647
},
{
"path": "gn_fixed_01.cu",
"lines": 4,
"bytes": 194
},
{
"path": "gn_fixed_02.cu",
"lines": 4,
"bytes": 194
},
{
"path": "gn_fixed_03.cu",
"lines": 4,
"bytes": 193
},
{
"path": "gn_fixed_04.cu",
"lines": 4,
"bytes": 193
},
{
"path": "gn_fixed_05.cu",
"lines": 4,
"bytes": 193
},
{
"path": "gn_fixed_06.cu",
"lines": 4,
"bytes": 192
},
{
"path": "gn_fixed_07.cu",
"lines": 4,
"bytes": 192
},
{
"path": "gn_fixed_08.cu",
"lines": 4,
"bytes": 193
},
{
"path": "gn_fixed_09.cu",
"lines": 4,
"bytes": 193
},
{
"path": "gn_fixed_10.cu",
"lines": 4,
"bytes": 196
},
{
"path": "gn_fixed_11.cu",
"lines": 4,
"bytes": 196
},
{
"path": "gn_fixed_12.cu",
"lines": 4,
"bytes": 195
},
{
"path": "gn_fixed_13.cu",
"lines": 4,
"bytes": 195
},
{
"path": "gn_fixed_14.cu",
"lines": 4,
"bytes": 195
},
{
"path": "gn_fixed_15.cu",
"lines": 4,
"bytes": 196
},
{
"path": "gn_fixed_16.cu",
"lines": 4,
"bytes": 196
},
{
"path": "gn_fixed_17.cu",
"lines": 4,
"bytes": 196
},
{
"path": "gn_fixed_18.cu",
"lines": 4,
"bytes": 195
},
{
"path": "gn_fixed_19.cu",
"lines": 4,
"bytes": 195
},
{
"path": "gn_fixed_20.cu",
"lines": 7,
"bytes": 198
},
{
"path": "gn_fixed_21.cu",
"lines": 4,
"bytes": 196
},
{
"path": "gn_fixed_22.cu",
"lines": 4,
"bytes": 196
},
{
"path": "gn_fixed_23.cu",
"lines": 4,
"bytes": 196
},
{
"path": "gn_fixed_24.cu",
"lines": 4,
"bytes": 196
},
{
"path": "gn_fixed_25.cu",
"lines": 4,
"bytes": 196
},
{
"path": "gn_fixed_26.cu",
"lines": 4,
"bytes": 196
},
{
"path": "gn_fixed_27.cu",
"lines": 4,
"bytes": 196
},
{
"path": "gn_fixed_28.cu",
"lines": 4,
"bytes": 196
},
{
"path": "gn_fixed_29.cu",
"lines": 4,
"bytes": 196
},
{
"path": "gn_fixed_30.cu",
"lines": 4,
"bytes": 196
},
{
"path": "gn_fixed_31.cu",
"lines": 17,
"bytes": 761
},
{
"path": "gn_fixed_32.cu",
"lines": 4,
"bytes": 197
},
{
"path": "gn_fixed_33.cu",
"lines": 30,
"bytes": 1285
},
{
"path": "gn_fixed_34.cu",
"lines": 4,
"bytes": 200
},
{
"path": "gn_fixed_35.cu",
"lines": 4,
"bytes": 194
},
{
"path": "gn_fixed_36.cu",
"lines": 4,
"bytes": 203
},
{
"path": "gn_fixed_37.cu",
"lines": 4,
"bytes": 183
},
{
"path": "gn_fixed_38.cu",
"lines": 3,
"bytes": 144
},
{
"path": "gn_fixed_39.cu",
"lines": 3,
"bytes": 127
},
{
"path": "gn_fixed_40.cu",
"lines": 3,
"bytes": 142
},
{
"path": "gn_fixed_41.cu",
"lines": 3,
"bytes": 154
},
{
"path": "gn_fixed_42.cu",
"lines": 2,
"bytes": 52
},
{
"path": "gn_fixed_43.cu",
"lines": 2,
"bytes": 52
},
{
"path": "gn_fixed_44.cu",
"lines": 2,
"bytes": 52
},
{
"path": "gn_fixed_45.cu",
"lines": 2,
"bytes": 52
},
{
"path": "gn_fixed_46.cu",
"lines": 2,
"bytes": 52
},
{
"path": "gn_fixed_host.h",
"lines": 483,
"bytes": 21374
},
{
"path": "gn_fixed_w7.cuh",
"lines": 2715,
"bytes": 156276
},
{
"path": "gn_fxlist.h",
"lines": 100,
"bytes": 2903
},
{
"path": "gn_gpi.cuh",
"lines": 196,
"bytes": 9051
},
{
"path": "gn_gq.cu",
"lines": 185,
"bytes": 1691
},
{
"path": "gn_gq.cuh",
"lines": 714,
"bytes": 41080
},
{
"path": "gn_ldiag.cu",
"lines": 10,
"bytes": 299
},
{
"path": "gn_prt.cuh",
"lines": 11,
"bytes": 843
},
{
"path": "gn_prt_03.cu",
"lines": 18,
"bytes": 1258
},
{
"path": "gn_rdn.cu",
"lines": 223,
"bytes": 12518
},
{
"path": "gn_rows3_05.cu",
"lines": 10,
"bytes": 169
},
{
"path": "gn_rows3s_05.cu",
"lines": 3,
"bytes": 143
},
{
"path": "gn_rows_14.cu",
"lines": 4,
"bytes": 218
},
{
"path": "gn_rows_44.cu",
"lines": 4,
"bytes": 218
},
{
"path": "gn_small.cuh",
"lines": 250,
"bytes": 12835
},
{
"path": "gn_small_00.cu",
"lines": 7,
"bytes": 253
},
{
"path": "gn_small_01.cu",
"lines": 3,
"bytes": 121
},
{
"path": "gn_small_02.cu",
"lines": 3,
"bytes": 125
},
{
"path": "gn_small_03.cu",
"lines": 3,
"bytes": 121
},
{
"path": "gn_split.cuh",
"lines": 165,
"bytes": 7276
},
{
"path": "gn_split_00.cu",
"lines": 11,
"bytes": 560
},
{
"path": "gn_topo.cu",
"lines": 15,
"bytes": 565
},
{
"path": "gn_wpg.cuh",
"lines": 164,
"bytes": 8140
},
{
"path": "kernel.cu",
"lines": 728,
"bytes": 38678
},
{
"path": "kernel.h",
"lines": 43,
"bytes": 1119
},
{
"path": "main.cpp",
"lines": 71,
"bytes": 3679
}
],
"idea": "One pass: each group split over a CTA cluster, x kept on chip, partial sums pushed to peers via DSMEM, then normalize + affine; per-shape kernels.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.893736,
"speedup": 6.3361
}
}
},
{
"board": "L1",
"id": "079_ImageNet_83.6_ssm_output_projection_gate_multiply_backward",
"name": "ImageNet 83.6 SSM output projection gate multiply backward",
"group": "Backward pass",
"op": "SSM output projection gate multiply backward",
"direction": "backward",
"model": "saurabhati/VMamba",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/079_ImageNet_83.6_ssm_output_projection_gate_multiply_backward",
"language": "CUDA C++",
"files": [
{
"path": "cutdw.cu",
"lines": 101,
"bytes": 5197
},
{
"path": "kernel.cu",
"lines": 8288,
"bytes": 484504
},
{
"path": "kernel.h",
"lines": 182,
"bytes": 12100
},
{
"path": "main.cpp",
"lines": 584,
"bytes": 37302
},
{
"path": "tiny_impl.cuh",
"lines": 797,
"bytes": 45489
}
],
"idea": "tcgen05 GEMM for the input grad with the gate backward fused in its epilogue, alongside a split-K tcgen05 weight-grad GEMM with DSMEM reduce; schedule picked by M.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.784682,
"speedup": 2.8658
}
}
},
{
"board": "L1",
"id": "080_adaptive_layernorm_continuous_with_modulation",
"name": "Adaptive LayerNorm continuous with modulation",
"group": "Image and video",
"op": "SD3.5 AdaLayerNormContinuous",
"direction": "forward",
"model": "stabilityai/stable-diffusion-3.5-large",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/080_adaptive_layernorm_continuous_with_modulation",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 5919,
"bytes": 321701
},
{
"path": "main.cpp",
"lines": 414,
"bytes": 25593
}
],
"idea": "CUDA graph of two PDL kernels: a split-K GEMV for scale and shift (FP32 FFMA, or 3xTF32 tensor cores at larger batch), then a streaming LayerNorm + modulate pass.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.823055,
"speedup": 4.0055
}
}
},
{
"board": "L1",
"id": "081_joint_attention_context_projection",
"name": "Joint attention context projection",
"group": "Image and video",
"op": "SD3.5 joint-attention context projection",
"direction": "forward",
"model": "stabilityai/stable-diffusion-3.5-large",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/081_joint_attention_context_projection",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 1916,
"bytes": 118055
},
{
"path": "kernel.h",
"lines": 4,
"bytes": 156
},
{
"path": "main.cpp",
"lines": 7,
"bytes": 320
}
],
"idea": "Prep kernel adds the two halves of W (halving K) and casts to fp16; then CUTLASS tcgen05 or cuBLASLt GEMMs with bias, picked per shape.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.970168,
"speedup": 19.8852
}
}
},
{
"board": "L1",
"id": "082_qk_norm_scaled_dot_product_attention",
"name": "QK norm scaled dot product attention",
"group": "Image and video",
"op": "SD3.5 QK-LayerNorm SDPA",
"direction": "forward",
"model": "stabilityai/stable-diffusion-3.5-medium",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/082_qk_norm_scaled_dot_product_attention",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 8876,
"bytes": 480644
},
{
"path": "kernel.h",
"lines": 92,
"bytes": 6998
},
{
"path": "main.cpp",
"lines": 802,
"bytes": 45638
},
{
"path": "precise.cu",
"lines": 138,
"bytes": 6105
}
],
"idea": "tcgen05 QKV GEMM (TF32 or fp16 by size) with Q/K LayerNorm in the epilogue, shape-picked tcgen05 flash attention, then the out GEMM; CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.873338,
"speedup": 5.141
}
}
},
{
"board": "L1",
"id": "083_attention_score_value_matmul",
"name": "Attention score value matmul",
"group": "Image and video",
"op": "SDXL attention weights @ V",
"direction": "forward",
"model": "stabilityai/stable-diffusion-xl-base-1.0",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/083_attention_score_value_matmul",
"language": "CUDA C++",
"files": [
{
"path": "fastdiv.h",
"lines": 22,
"bytes": 819
},
{
"path": "kernel.cu",
"lines": 2905,
"bytes": 171530
},
{
"path": "kernel.h",
"lines": 59,
"bytes": 4932
},
{
"path": "main.cpp",
"lines": 163,
"bytes": 7425
},
{
"path": "tcs.cu",
"lines": 220,
"bytes": 12915
},
{
"path": "umma.cu",
"lines": 1686,
"bytes": 105188
},
{
"path": "uni.cu",
"lines": 594,
"bytes": 36236
}
],
"idea": "By shape: TMA-fed tcgen05 kernels for large and short-K cases, TMA or cp.async mma.sync kernels for the rest; heads stored straight into the merged layout.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.831514,
"speedup": 3.4122
}
}
},
{
"board": "L1",
"id": "084_silu_activation_backward",
"name": "SiLU activation backward",
"group": "Backward pass",
"op": "SiLU backward",
"direction": "backward",
"model": "stabilityai/stable-diffusion-xl-base-1.0",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/084_silu_activation_backward",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 536,
"bytes": 37214
},
{
"path": "kernel.h",
"lines": 4,
"bytes": 169
},
{
"path": "main.cpp",
"lines": 16,
"bytes": 952
}
],
"idea": "Elementwise kernel: float4 loads with L2 cache-policy hints, block and cluster shape picked per tensor size; each call runs as a one-node CUDA graph",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.54333,
"speedup": 1.1514
}
}
},
{
"board": "L1",
"id": "085_geglu_activation",
"name": "GEGLU activation",
"group": "Image and video",
"op": "GEGLU activation",
"direction": "forward",
"model": "stabilityai/stable-diffusion-xl-refiner-1.0",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/085_geglu_activation",
"language": "Triton",
"files": [
{
"path": "main.py",
"lines": 552,
"bytes": 24694
}
],
"idea": "One Triton elementwise kernel: vector loads of both halves with L2 hints, GELU via inline-PTX tanh.approx, multiply, store; load split and grid picked by row count.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.671218,
"speedup": 1.8672
}
}
},
{
"board": "L1",
"id": "086_sam_hq_mask_decoder_iou_hypernetwork_fusion",
"name": "SAM hq mask decoder IoU hypernetwork fusion",
"group": "Image and video",
"op": "SAM-HQ IoU head + hypernetwork MLPs",
"direction": "forward",
"model": "syscv-community/sam-hq-vit-base",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/086_sam_hq_mask_decoder_iou_hypernetwork_fusion",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 2008,
"bytes": 114545
},
{
"path": "kernel.h",
"lines": 11,
"bytes": 607
},
{
"path": "main.cpp",
"lines": 117,
"bytes": 6365
}
],
"idea": "Two PDL-chained mma.sync kernels run all MLPs at once: layer 1, then layer 2 fused with layer 3 (red.add into the outputs); launched as a CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.959724,
"speedup": 22.6061
}
}
},
{
"board": "L1",
"id": "087_embedding_with_initial_layernorm_backward",
"name": "Embedding with initial LayerNorm backward",
"group": "Backward pass",
"op": "embedding + LayerNorm backward",
"direction": "backward",
"model": "taozi555/jamba-mini-1.7-rp",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/087_embedding_with_initial_layernorm_backward",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 2199,
"bytes": 141281
},
{
"path": "kernel.h",
"lines": 23,
"bytes": 2204
},
{
"path": "main.cpp",
"lines": 290,
"bytes": 18639
}
],
"idea": "Reuses a pooled output buffer, zeroing only rows no longer hit; CTA roles: norm-weight grad, token rows, duplicate merge; big batches: id chains + persistent kernel.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.916262,
"speedup": 6.6584
}
}
},
{
"board": "L1",
"id": "088_rotary_position_embedding_application",
"name": "Rotary position embedding application",
"group": "Image and video",
"op": "RoPE application to Q/K (HunyuanImage)",
"direction": "forward",
"model": "tencent/HunyuanImage-2.1",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/088_rotary_position_embedding_application",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 764,
"bytes": 48745
},
{
"path": "main.cpp",
"lines": 127,
"bytes": 7002
}
],
"idea": "A memory-bound kernel picked by row count; tiled versions reuse each cos/sin row across heads; L2 cache hints on loads and stores; cached CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.678157,
"speedup": 1.7036
}
}
},
{
"board": "L1",
"id": "089_vae_attention_block_with_groupnorm",
"name": "VAE attention block with GroupNorm",
"group": "Image and video",
"op": "VAE attention block with GroupNorm",
"direction": "forward",
"model": "tencent/HunyuanImage-2.1",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/089_vae_attention_block_with_groupnorm",
"language": "CUDA C++",
"files": [
{
"path": "blk_epi.hpp",
"lines": 1416,
"bytes": 73068
},
{
"path": "blk_mma.hpp",
"lines": 720,
"bytes": 33360
},
{
"path": "calvars.inc",
"lines": 10,
"bytes": 257
},
{
"path": "gemms.cu",
"lines": 1048,
"bytes": 61629
},
{
"path": "gemms.h",
"lines": 14,
"bytes": 1037
},
{
"path": "kernel.cu",
"lines": 882,
"bytes": 47850
},
{
"path": "kernel.h",
"lines": 5,
"bytes": 291
},
{
"path": "main.cpp",
"lines": 7,
"bytes": 422
},
{
"path": "megapv.cu",
"lines": 416,
"bytes": 23752
},
{
"path": "megapv.h",
"lines": 14,
"bytes": 811
},
{
"path": "precise.cu",
"lines": 188,
"bytes": 9122
},
{
"path": "precise.h",
"lines": 14,
"bytes": 809
},
{
"path": "precise_det.cuh",
"lines": 88,
"bytes": 3891
}
],
"idea": "Folds Wk^T Wq and Wo Wv so keys and values are the normed input; then CUTLASS-built tcgen05 GEMMs for Q/V, exp2 scores and P @ V; CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.893838,
"speedup": 3.2043
}
}
},
{
"board": "L1",
"id": "090_batched_2d_rope_position_encoding_backward",
"name": "Batched 2D RoPE position encoding backward",
"group": "Backward pass",
"op": "batched 2D RoPE backward",
"direction": "backward",
"model": "tencent/HunyuanImage-3.0",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/090_batched_2d_rope_position_encoding_backward",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 454,
"bytes": 24077
},
{
"path": "kernel.h",
"lines": 5,
"bytes": 191
},
{
"path": "main.cpp",
"lines": 27,
"bytes": 1755
}
],
"idea": "Memory-bound elementwise kernel: vector loads, fast range-reduced MUFU sin/cos with an exact fallback for huge or invalid angles; block shape and L2 policy by size.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.897597,
"speedup": 6.6417
}
}
},
{
"board": "L1",
"id": "091_fused_gqa_qkv_rope_qk_norm_backward",
"name": "Fused GQA QKV RoPE QK norm backward",
"group": "Backward pass",
"op": "fused GQA QKV + RoPE + QK-norm backward",
"direction": "backward",
"model": "tencent/HunyuanImage-3.0",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/091_fused_gqa_qkv_rope_qk_norm_backward",
"language": "CUDA C++",
"files": [
{
"path": "fused_dw.h",
"lines": 367,
"bytes": 22542
},
{
"path": "kernel.cu",
"lines": 2694,
"bytes": 165917
},
{
"path": "kernel.h",
"lines": 31,
"bytes": 1219
},
{
"path": "main.cpp",
"lines": 71,
"bytes": 4066
}
],
"idea": "A row kernel backprops through RoPE and QK-RMSNorm into one packed QKV grad; CUTLASS tcgen05 GEMMs give input and weight grads, as one persistent kernel when large",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.957923,
"speedup": 10.3942
}
}
},
{
"board": "L1",
"id": "092_gqa_attention_with_qk_norm",
"name": "GQA attention with QK norm",
"group": "Attention",
"op": "GQA attention block: QKV proj (bias), QK-RMSNorm, RoPE, causal, o_proj",
"direction": "forward",
"model": "zai-org/GLM-4.5-Air",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/092_gqa_attention_with_qk_norm",
"language": "CUDA C++",
"files": [
{
"path": "attn.cu",
"lines": 105,
"bytes": 6326
},
{
"path": "attn2.cu",
"lines": 1555,
"bytes": 96491
},
{
"path": "fused.cu",
"lines": 824,
"bytes": 40910
},
{
"path": "kernel.cu",
"lines": 1711,
"bytes": 103108
},
{
"path": "kernel.h",
"lines": 147,
"bytes": 9462
},
{
"path": "main.cpp",
"lines": 178,
"bytes": 8104
},
{
"path": "oproj.cu",
"lines": 252,
"bytes": 13552
},
{
"path": "oproj_gemm.cu",
"lines": 770,
"bytes": 45774
},
{
"path": "oproj_tc.cu",
"lines": 786,
"bytes": 45288
},
{
"path": "pref.h",
"lines": 59,
"bytes": 3350
},
{
"path": "qkv_wide.cu",
"lines": 723,
"bytes": 45515
}
],
"idea": "Persistent 2-CTA tcgen05 QKV GEMM with bias, QK-RMSNorm and RoPE in the epilogue, flash-style tcgen05 causal attention, then the output GEMM; short sequences fuse QKV and attention.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.709258,
"speedup": 1.4579
}
}
},
{
"board": "L1",
"id": "093_grouped_topk_moe_routing_backward",
"name": "Grouped topk MoE routing backward",
"group": "Backward pass",
"op": "grouped top-k MoE routing backward",
"direction": "backward",
"model": "zai-org/GLM-4.7",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/093_grouped_topk_moe_routing_backward",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 7430,
"bytes": 468988
},
{
"path": "kernel.h",
"lines": 13,
"bytes": 781
},
{
"path": "main.cpp",
"lines": 321,
"bytes": 19786
}
],
"idea": "A small kernel builds the logit gradient G; one fused tcgen05 kernel computes both G @ W and G^T @ H from a shared tile pool; CUDA graph replay.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.867098,
"speedup": 5.0793
}
}
},
{
"board": "L1",
"id": "094_time_decay_exponential_stabilization",
"name": "Time decay exponential stabilization",
"group": "Other",
"op": "RWKV time-decay exponent with stabilisation",
"direction": "forward",
"model": "zhiyuan8/RWKV-v7-1.5B-G1-GGUF",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/094_time_decay_exponential_stabilization",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 2074,
"bytes": 115900
},
{
"path": "main.cpp",
"lines": 44,
"bytes": 2961
}
],
"idea": "By size: many channels get one thread each over the whole sequence with a cp.async ring; few channels split time into chunks, merge chunk states, then recompute outputs.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.999111,
"speedup": 1062.1457
}
}
},
{
"board": "L2",
"id": "001_fused_vision_multihead_attention_with_norms_backward",
"name": "Fused vision multihead attention with norms backward",
"group": "Backward pass",
"op": "vision MHA with norms backward",
"direction": "backward",
"model": "1024m/Molmo-7B-D-Base",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/001_fused_vision_multihead_attention_with_norms_backward",
"language": "CUDA C++",
"files": [
{
"path": "attn_deep.cuh",
"lines": 788,
"bytes": 48997
},
{
"path": "attn_tc_body.inc",
"lines": 1298,
"bytes": 84825
},
{
"path": "dgrad.cu",
"lines": 1569,
"bytes": 97657
},
{
"path": "fp16.cu",
"lines": 964,
"bytes": 55840
},
{
"path": "kernel.cu",
"lines": 1578,
"bytes": 100104
},
{
"path": "kernel.h",
"lines": 228,
"bytes": 19111
},
{
"path": "main.cpp",
"lines": 1300,
"bytes": 84623
},
{
"path": "pdl.h",
"lines": 70,
"bytes": 3615
},
{
"path": "probe.h",
"lines": 68,
"bytes": 3127
},
{
"path": "rec.h",
"lines": 28,
"bytes": 1438
},
{
"path": "wgrad.cu",
"lines": 1027,
"bytes": 63434
}
],
"idea": "Split-fp16 (hi + lo) custom 2-SM tcgen05 GEMMs for near-FP32 results, a cluster-per-head tcgen05 attention backward, a fused LayerNorm backward; replayed as one multi-stream CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.936556,
"speedup": 11.8848
}
}
},
{
"board": "L2",
"id": "002_decoder_layer_full_block",
"name": "Decoder layer full block",
"group": "Full decoder layers",
"op": "Llama decoder layer: RMSNorm, GQA + RoPE, residual, RMSNorm, SwiGLU MLP, residual",
"direction": "forward",
"model": "NousResearch/DeepHermes-3-Llama-3-8B-Preview",
"workloads": 18,
"kernel": {
"dir": "kernels/L2/002_decoder_layer_full_block",
"language": "CUDA C++",
"files": [
{
"path": "cutlass_gemm.cu",
"lines": 71,
"bytes": 4226
},
{
"path": "cutlass_gemm.h",
"lines": 5,
"bytes": 438
},
{
"path": "gu_tmem.cu",
"lines": 1282,
"bytes": 73790
},
{
"path": "gu_tmem.h",
"lines": 56,
"bytes": 5012
},
{
"path": "kernel.cu",
"lines": 1263,
"bytes": 67447
},
{
"path": "kernel.h",
"lines": 46,
"bytes": 4720
},
{
"path": "kernel2.cu",
"lines": 395,
"bytes": 19158
},
{
"path": "kernel2.h",
"lines": 30,
"bytes": 2463
},
{
"path": "kernel3.cu",
"lines": 1010,
"bytes": 56774
},
{
"path": "kernel3.h",
"lines": 26,
"bytes": 2274
},
{
"path": "main.cpp",
"lines": 1252,
"bytes": 90817
},
{
"path": "probe_sm.h",
"lines": 18,
"bytes": 1052
},
{
"path": "tc_gemm.cu",
"lines": 1458,
"bytes": 88734
},
{
"path": "tc_gemm.h",
"lines": 48,
"bytes": 4881
},
{
"path": "tmap_cache.h",
"lines": 28,
"bytes": 1974
},
{
"path": "ws_gemm.cu",
"lines": 1839,
"bytes": 116592
},
{
"path": "ws_gemm.h",
"lines": 72,
"bytes": 6547
}
],
"idea": "By token count: few tokens use weight-streaming tcgen05 GEMMs that convert fp32 weights to fp16 in smem, PDL-chained; many tokens use fp16 GEMMs and a tcgen05 flash attention.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.596572,
"speedup": 1.2621
}
}
},
{
"board": "L2",
"id": "003_grouped_query_attention_with_rope_backward",
"name": "Grouped query attention with RoPE backward",
"group": "Backward pass",
"op": "GQA attention with RoPE backward",
"direction": "backward",
"model": "NousResearch/DeepHermes-3-Mistral-24B-Preview",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/003_grouped_query_attention_with_rope_backward",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 12355,
"bytes": 679756
},
{
"path": "kernel.h",
"lines": 142,
"bytes": 11827
},
{
"path": "main.cpp",
"lines": 2601,
"bytes": 150357
}
],
"idea": "Custom tcgen05 chain: dK/dV with GQA group sum + inverse RoPE fused, dQ, then the input-grad GEMM; weight grads on side streams; PDL and a CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.796833,
"speedup": 2.4869
}
}
},
{
"board": "L2",
"id": "004_fused_residual_rms_mlp",
"name": "Fused residual RMS MLP",
"group": "MLP and MoE",
"op": "residual + RMSNorm + SwiGLU MLP",
"direction": "forward",
"model": "NousResearch/Hermes-4-405B",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/004_fused_residual_rms_mlp",
"language": "CuTe DSL",
"files": [
{
"path": "main.py",
"lines": 4133,
"bytes": 253922
}
],
"idea": "CuTe DSL: RMSNorm kernel, persistent 2-CTA tcgen05 gate/up GEMM with SwiGLU fused in the epilogue, then a split-K down GEMM; dynamic tile scheduler; CUDA graph replay.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.706436,
"speedup": 1.2177
}
}
},
{
"board": "L2",
"id": "005_swiglu_mlp_backward",
"name": "SwiGLU MLP backward",
"group": "Backward pass",
"op": "SwiGLU MLP backward",
"direction": "backward",
"model": "NousResearch/Hermes-4-405B",
"workloads": 18,
"kernel": {
"dir": "kernels/L2/005_swiglu_mlp_backward",
"language": "CUDA C++",
"files": [
{
"path": "bigm.cu",
"lines": 94,
"bytes": 5082
},
{
"path": "cute/arch/copy_sm90_tma.hpp",
"lines": 75,
"bytes": 4203
},
{
"path": "ggemm.cu",
"lines": 105,
"bytes": 6471
},
{
"path": "gx.cu",
"lines": 238,
"bytes": 13511
},
{
"path": "gxf.cu",
"lines": 296,
"bytes": 15029
},
{
"path": "k128.cu",
"lines": 645,
"bytes": 35298
},
{
"path": "kernel.cu",
"lines": 647,
"bytes": 35476
},
{
"path": "kernel.h",
"lines": 73,
"bytes": 6062
},
{
"path": "lt.cpp",
"lines": 212,
"bytes": 11814
},
{
"path": "main.cpp",
"lines": 1404,
"bytes": 82197
},
{
"path": "wgrad.cu",
"lines": 107,
"bytes": 5928
},
{
"path": "wgrad_ef.cu",
"lines": 118,
"bytes": 6787
}
],
"idea": "cuBLASLt GEMMs (custom CUTLASS/tcgen05 ones at small token counts; gate+up weight grads as one GEMM) around a fused SwiGLU-backward kernel; fixed plan per size bucket; CUDA graph replay.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.592906,
"speedup": 1.1021
}
}
},
{
"board": "L2",
"id": "006_multimodal_rope_position_calculation",
"name": "Multimodal RoPE position calculation",
"group": "Attention",
"op": "multimodal 3D RoPE position-id calculation",
"direction": "forward",
"model": "Qwen/Qwen2.5-VL-7B-Instruct",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/006_multimodal_rope_position_calculation",
"language": "CUDA C++",
"files": [
{
"path": "b1.cu",
"lines": 627,
"bytes": 35981
},
{
"path": "b4.cu",
"lines": 445,
"bytes": 25852
},
{
"path": "bm.cu",
"lines": 319,
"bytes": 16309
},
{
"path": "claunch.h",
"lines": 118,
"bytes": 6824
},
{
"path": "cluster.h",
"lines": 923,
"bytes": 61701
},
{
"path": "fused.h",
"lines": 1110,
"bytes": 62997
},
{
"path": "fused_lb1.cu",
"lines": 8,
"bytes": 600
},
{
"path": "fused_lb2.cu",
"lines": 8,
"bytes": 605
},
{
"path": "kernel.cu",
"lines": 3504,
"bytes": 236155
},
{
"path": "ldna.h",
"lines": 79,
"bytes": 5374
},
{
"path": "main.cpp",
"lines": 446,
"bytes": 28574
},
{
"path": "pair.cu",
"lines": 2135,
"bytes": 142696
}
],
"idea": "One fused launch, kernel picked per shape: CTA clusters scan each row with warp ballots and bitmaps; each row passes its image/video counts to later rows.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.980774,
"speedup": 46.0487
}
}
},
{
"board": "L2",
"id": "007_multimodal_rotary_embedding_attention",
"name": "Multimodal rotary embedding attention",
"group": "Attention",
"op": "GQA attention with multimodal 3D RoPE",
"direction": "forward",
"model": "Qwen/Qwen2.5-VL-7B-Instruct",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/007_multimodal_rotary_embedding_attention",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 12722,
"bytes": 783704
},
{
"path": "kernel.h",
"lines": 106,
"bytes": 8134
},
{
"path": "main.cpp",
"lines": 1202,
"bytes": 79089
}
],
"idea": "tcgen05 QKV GEMM with bias and RoPE in the epilogue, mask tiles classified up front, tcgen05 flash attention, o_proj on cuBLASLt or a custom GEMM; CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.766322,
"speedup": 2.238
}
}
},
{
"board": "L2",
"id": "008_moe_sparse_routing_and_dispatch",
"name": "MoE sparse routing and dispatch",
"group": "MLP and MoE",
"op": "MoE block: softmax router + top-8 + SwiGLU experts + weighted sum",
"direction": "forward",
"model": "Qwen/Qwen3-30B-A3B-Instruct-2507",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/008_moe_sparse_routing_and_dispatch",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 6013,
"bytes": 367450
},
{
"path": "kernel.h",
"lines": 12,
"bytes": 805
},
{
"path": "main.cpp",
"lines": 71,
"bytes": 3405
},
{
"path": "probe_cfg.h",
"lines": 2,
"bytes": 33
}
],
"idea": "Router kernel (softmax, top-8, per-expert token blocks), then a persistent tcgen05 kernel running gate/up + SwiGLU tasks and down tasks that add weighted rows into the output.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.902345,
"speedup": 3.4315
}
}
},
{
"board": "L2",
"id": "009_decoder_layer_with_residual_connections",
"name": "Decoder layer with residual connections",
"group": "Full decoder layers",
"op": "MoE decoder layer: RMSNorm, GQA + QK-norm, MoE, residuals",
"direction": "forward",
"model": "Qwen/Qwen3-Coder-30B-A3B-Instruct",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/009_decoder_layer_with_residual_connections",
"language": "CUDA C++",
"files": [
{
"path": "fa4.cu",
"lines": 1462,
"bytes": 87940
},
{
"path": "kernel.cu",
"lines": 12404,
"bytes": 773391
},
{
"path": "kernel.h",
"lines": 106,
"bytes": 8415
},
{
"path": "main.cpp",
"lines": 292,
"bytes": 19377
},
{
"path": "side_steal.cuh",
"lines": 300,
"bytes": 13466
},
{
"path": "ws_probe.cu",
"lines": 162,
"bytes": 9056
}
],
"idea": "tcgen05 chain (fp16 or FP8 by size): QKV GEMM with RoPE + QK-norm epilogue, flash attention that skips masked tiles, o_proj + residual, router, grouped expert GEMMs.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.8275,
"speedup": 3.3628
}
}
},
{
"board": "L2",
"id": "010_moe_expert_computation_with_weighted_accumulation",
"name": "MoE expert computation with weighted accumulation",
"group": "MLP and MoE",
"op": "MoE experts SwiGLU + weighted accumulation (given top-k)",
"direction": "forward",
"model": "Qwen/Qwen3-Coder-30B-A3B-Instruct",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/010_moe_expert_computation_with_weighted_accumulation",
"language": "CUDA C++",
"files": [
{
"path": "fast_path.cu",
"lines": 2422,
"bytes": 144511
},
{
"path": "g12fused.cu",
"lines": 3035,
"bytes": 205494
},
{
"path": "graph_launch.h",
"lines": 50,
"bytes": 2522
},
{
"path": "kernel.cu",
"lines": 997,
"bytes": 60858
},
{
"path": "kernel.h",
"lines": 4,
"bytes": 246
},
{
"path": "main.cpp",
"lines": 8,
"bytes": 609
}
],
"idea": "Tokens sorted by expert on the GPU, then one persistent tcgen05 kernel runs both GEMMs (gate/up + SwiGLU, down + routing weight) from one work queue; CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.956297,
"speedup": 7.7057
}
}
},
{
"board": "L2",
"id": "011_moe_sparse_routing_and_dispatch_backward",
"name": "MoE sparse routing and dispatch backward",
"group": "Backward pass",
"op": "MoE routing + dispatch backward",
"direction": "backward",
"model": "Qwen/Qwen3-Coder-30B-A3B-Instruct",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/011_moe_sparse_routing_and_dispatch_backward",
"language": "CUDA C++",
"files": [
{
"path": "dg_xdyn.cuh",
"lines": 374,
"bytes": 18845
},
{
"path": "kernel.cu",
"lines": 5258,
"bytes": 336112
},
{
"path": "main.cpp",
"lines": 482,
"bytes": 24623
},
{
"path": "route_b.cuh",
"lines": 318,
"bytes": 15727
},
{
"path": "route_c.cuh",
"lines": 778,
"bytes": 41599
},
{
"path": "route_v.cuh",
"lines": 107,
"bytes": 5382
}
],
"idea": "Two launches in a CUDA graph: a warp-per-token router backward kernel, then one tcgen05 kernel that computes both gradient GEMMs (hidden states and gate weight).",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.832835,
"speedup": 4.2604
}
}
},
{
"board": "L2",
"id": "012_moe_expert_batched_execution_with_capacity_factor",
"name": "MoE expert batched execution with capacity factor",
"group": "MLP and MoE",
"op": "MoE experts with capacity-factor batching",
"direction": "forward",
"model": "Qwen/Qwen3-Coder-480B-A35B-Instruct",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/012_moe_expert_batched_execution_with_capacity_factor",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 4567,
"bytes": 265536
},
{
"path": "kernel.h",
"lines": 12,
"bytes": 997
},
{
"path": "main.cpp",
"lines": 76,
"bytes": 3944
}
],
"idea": "Routing kernels rank tokens and drop over-capacity ones; swap-AB tcgen05 grouped GEMMs gather tokens, fuse SwiGLU, and scatter-add weighted rows in the down epilogue; PDL chain",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.899786,
"speedup": 1.7019
}
}
},
{
"board": "L2",
"id": "013_expert_weighted_aggregation_with_shared_expert",
"name": "Expert weighted aggregation with shared expert",
"group": "MLP and MoE",
"op": "MoE experts + weighted sum + sigmoid-gated shared expert",
"direction": "forward",
"model": "Qwen/Qwen3-Next-80B-A3B-Instruct",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/013_expert_weighted_aggregation_with_shared_expert",
"language": "CUDA C++",
"files": [
{
"path": "fused_body.cuh",
"lines": 2801,
"bytes": 159817
},
{
"path": "kernel.cu",
"lines": 1678,
"bytes": 70791
},
{
"path": "main.cpp",
"lines": 6,
"bytes": 603
},
{
"path": "route_body.cuh",
"lines": 707,
"bytes": 37089
}
],
"idea": "Routing groups tokens by expert; one persistent 2-CTA tcgen05 swap-AB grouped GEMM does gate/up + SwiGLU, then down + atomic weighted adds; shared expert as an extra expert.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.944881,
"speedup": 3.5869
}
}
},
{
"board": "L2",
"id": "014_audio_encoder_varlen_attention_with_chunking_backward",
"name": "Audio encoder varlen attention with chunking backward",
"group": "Backward pass",
"op": "audio varlen attention with chunking backward",
"direction": "backward",
"model": "Qwen/Qwen3-Omni-30B-A3B-Instruct",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/014_audio_encoder_varlen_attention_with_chunking_backward",
"language": "CUDA C++",
"files": [
{
"path": "fastlaunch.h",
"lines": 54,
"bytes": 2897
},
{
"path": "gemm.cu",
"lines": 2891,
"bytes": 189830
},
{
"path": "gemm.h",
"lines": 17,
"bytes": 1857
},
{
"path": "kernel.cu",
"lines": 6842,
"bytes": 379349
},
{
"path": "kernel.h",
"lines": 71,
"bytes": 5789
},
{
"path": "main.cpp",
"lines": 1198,
"bytes": 73803
}
],
"idea": "Attention backward per (chunk, head) in custom tensor-core kernels picked by chunk length; projection grads via cuBLASLt or a persistent 2-SM tcgen05 GEMM; CUDA graph replay.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.945714,
"speedup": 13.4225
}
}
},
{
"board": "L2",
"id": "015_audio_sinusoidal_position_embedding_with_conv_projection",
"name": "Audio sinusoidal position embedding with conv projection",
"group": "Audio",
"op": "audio sinusoidal position embed + Conv2d downsampling + proj",
"direction": "forward",
"model": "Qwen/Qwen3-Omni-30B-A3B-Instruct",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/015_audio_sinusoidal_position_embedding_with_conv_projection",
"language": "CUDA C++",
"files": [
{
"path": "cutlass_conv.cu",
"lines": 1068,
"bytes": 64928
},
{
"path": "cutlass_gemm.cu",
"lines": 283,
"bytes": 14558
},
{
"path": "fastlaunch.h",
"lines": 129,
"bytes": 6896
},
{
"path": "kernel.cu",
"lines": 7766,
"bytes": 465045
},
{
"path": "kernel.h",
"lines": 132,
"bytes": 11062
},
{
"path": "main.cpp",
"lines": 1291,
"bytes": 74467
},
{
"path": "plan_table.h",
"lines": 102,
"bytes": 7865
}
],
"idea": "Each conv + bias + GELU runs as an implicit GEMM (mma.sync, CUTLASS conv, or custom tcgen05 split-K); the projection GEMM fuses the scale and position add; PDL chain.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.891792,
"speedup": 5.229
}
}
},
{
"board": "L2",
"id": "016_moe_expert_mlp_with_load_balancing",
"name": "MoE expert MLP with load balancing",
"group": "MLP and MoE",
"op": "MoE block: softmax router + top-8 + SwiGLU experts (returns router logits)",
"direction": "forward",
"model": "Qwen/Qwen3-Omni-30B-A3B-Instruct",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/016_moe_expert_mlp_with_load_balancing",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 3746,
"bytes": 195041
},
{
"path": "kernel.h",
"lines": 93,
"bytes": 2764
},
{
"path": "main.cpp",
"lines": 95,
"bytes": 4402
}
],
"idea": "Split-K router GEMM then softmax + top-8; tokens grouped by expert; one persistent tcgen05 grouped GEMM: gate/up + SwiGLU, then down with atomic weighted adds.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.860126,
"speedup": 2.0881
}
}
},
{
"board": "L2",
"id": "017_fused_vision_cu_seqlens_attention_with_2d_rope_backward",
"name": "Fused vision cu seqlens attention with 2D RoPE backward",
"group": "Backward pass",
"op": "vision varlen attention with 2D RoPE backward",
"direction": "backward",
"model": "Qwen/Qwen3-VL-4B-Instruct",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/017_fused_vision_cu_seqlens_attention_with_2d_rope_backward",
"language": "CUDA C++",
"files": [
{
"path": "attn_tc.cu",
"lines": 9100,
"bytes": 563432
},
{
"path": "main.cpp",
"lines": 47,
"bytes": 3602
}
],
"idea": "fp16 tcgen05 warp-specialized attention (forward recompute, then dQ and dK/dV kernels with ping-pong warpgroups, inverse RoPE in epilogues); cuBLAS or 2-SM tcgen05 projection GEMMs; CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.829945,
"speedup": 3.4105
}
}
},
{
"board": "L2",
"id": "018_cu_seqlens_variable_length_vision_attention",
"name": "Cu seqlens variable length vision attention",
"group": "Image and video",
"op": "vision varlen attention (cu_seqlens) with RoPE",
"direction": "forward",
"model": "Qwen/Qwen-Image-Edit-2509",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/018_cu_seqlens_variable_length_vision_attention",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 6056,
"bytes": 377692
},
{
"path": "kernel.h",
"lines": 7,
"bytes": 517
},
{
"path": "main.cpp",
"lines": 84,
"bytes": 4565
}
],
"idea": "cuBLASLt QKV GEMM, a RoPE pass, warp-specialized TMA + tcgen05 varlen attention (mma.sync for short sequences), cuBLASLt out-proj; the whole call replays as a CUDA graph",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.812297,
"speedup": 4.0091
}
}
},
{
"board": "L2",
"id": "019_decoder_layer_fused_attention_mlp",
"name": "Decoder layer fused attention MLP",
"group": "Full decoder layers",
"op": "Qwen2-VL decoder layer (M-RoPE GQA + SwiGLU)",
"direction": "forward",
"model": "Qwen/Qwen-Image-Edit-2509",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/019_decoder_layer_fused_attention_mlp",
"language": "CUDA C++",
"files": [
{
"path": "attn_fa4.cu",
"lines": 947,
"bytes": 47551
},
{
"path": "attn_fa4x2.cu",
"lines": 636,
"bytes": 30957
},
{
"path": "attn_short_tc.cu",
"lines": 511,
"bytes": 25157
},
{
"path": "attn_sm100.cu",
"lines": 241,
"bytes": 11564
},
{
"path": "fmha_mainloop_opt.hpp",
"lines": 372,
"bytes": 21812
},
{
"path": "fp32_guard.cu",
"lines": 347,
"bytes": 15606
},
{
"path": "gateup_sm100.cu",
"lines": 2903,
"bytes": 146552
},
{
"path": "gemm_common.cuh",
"lines": 89,
"bytes": 4704
},
{
"path": "gemm_f16_f16.cu",
"lines": 13,
"bytes": 768
},
{
"path": "gemm_f16_f32.cu",
"lines": 48,
"bytes": 2758
},
{
"path": "gemm_h1h.cu",
"lines": 41,
"bytes": 2433
},
{
"path": "gemm_oproj.cu",
"lines": 366,
"bytes": 20145
},
{
"path": "gemm_tf32_2sm.cu",
"lines": 41,
"bytes": 2653
},
{
"path": "kernel.h",
"lines": 474,
"bytes": 26582
},
{
"path": "kernels.cu",
"lines": 1616,
"bytes": 79983
},
{
"path": "main.cpp",
"lines": 2406,
"bytes": 139187
},
{
"path": "qkv_rope_cut.cu",
"lines": 137,
"bytes": 6910
},
{
"path": "ws_gemm.cu",
"lines": 4950,
"bytes": 235513
}
],
"idea": "Path picked by token count: few tokens stream fp32 weights through swap-AB tcgen05 kernels with fused epilogues; many tokens use fp16 CUTLASS GEMMs and tcgen05 flash attention.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.641563,
"speedup": 1.3661
}
}
},
{
"board": "L2",
"id": "020_decoder_layer_pre_post_norm_residual",
"name": "Decoder layer pre post norm residual",
"group": "Full decoder layers",
"op": "decoder layer with pre / post norm residuals",
"direction": "forward",
"model": "RekaAI/reka-flash-3",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/020_decoder_layer_pre_post_norm_residual",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 5178,
"bytes": 292104
},
{
"path": "kernel.h",
"lines": 110,
"bytes": 9080
},
{
"path": "main.cpp",
"lines": 511,
"bytes": 30213
}
],
"idea": "By token count: hand-written persistent 2-SM tcgen05 GEMMs (fused RoPE, residual and SwiGLU epilogues) or cuBLASLt; tcgen05 causal GQA attention with a mask check; PDL.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.677576,
"speedup": 1.2641
}
}
},
{
"board": "L2",
"id": "021_cross_attention_text_video_conditioning_backward",
"name": "Cross attention text video conditioning backward",
"group": "Backward pass",
"op": "text-video cross-attention backward",
"direction": "backward",
"model": "Wan-AI/Wan2.2-T2V-A14B",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/021_cross_attention_text_video_conditioning_backward",
"language": "CUDA C++",
"files": [
{
"path": "g16.cuh",
"lines": 2058,
"bytes": 147581
},
{
"path": "kernel.cu",
"lines": 3615,
"bytes": 253546
},
{
"path": "kernel.h",
"lines": 4,
"bytes": 437
},
{
"path": "main.cpp",
"lines": 7,
"bytes": 474
},
{
"path": "tc16p.cuh",
"lines": 671,
"bytes": 39270
},
{
"path": "tc2bw.cuh",
"lines": 288,
"bytes": 14316
},
{
"path": "tc2w.cuh",
"lines": 264,
"bytes": 12949
},
{
"path": "tc3k.cuh",
"lines": 282,
"bytes": 14208
},
{
"path": "tc4k.cuh",
"lines": 405,
"bytes": 23127
},
{
"path": "tc4q.cuh",
"lines": 790,
"bytes": 48881
},
{
"path": "tc5k.cuh",
"lines": 2090,
"bytes": 138883
},
{
"path": "tcw.cuh",
"lines": 541,
"bytes": 32063
}
],
"idea": "fp16 tensor-core pipeline with a power-of-2 scale per tensor: projection and weight-gradient GEMMs on cuBLASLt or a grouped tcgen05 GEMM; tcgen05 attention-backward kernels picked by shape.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.818858,
"speedup": 3.999
}
}
},
{
"board": "L2",
"id": "022_video_latent_denoising_unet_block",
"name": "Video latent denoising UNet block",
"group": "Image and video",
"op": "video latent denoising block",
"direction": "forward",
"model": "Wan-AI/Wan2.2-T2V-A14B",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/022_video_latent_denoising_unet_block",
"language": "CUDA C++",
"files": [
{
"path": "cf_0.cu",
"lines": 3,
"bytes": 136
},
{
"path": "cf_1.cu",
"lines": 3,
"bytes": 136
},
{
"path": "cg_0.cu",
"lines": 3,
"bytes": 118
},
{
"path": "cg_3.cu",
"lines": 3,
"bytes": 118
},
{
"path": "cg_4.cu",
"lines": 4,
"bytes": 172
},
{
"path": "cudnn_attn.cpp",
"lines": 87,
"bytes": 4159
},
{
"path": "cutlass_gemm.cuh",
"lines": 262,
"bytes": 15841
},
{
"path": "fattn.cu",
"lines": 200,
"bytes": 9998
},
{
"path": "kernel.cu",
"lines": 201,
"bytes": 10213
},
{
"path": "kernel.h",
"lines": 50,
"bytes": 2985
},
{
"path": "main.cpp",
"lines": 387,
"bytes": 24410
},
{
"path": "pdl.h",
"lines": 25,
"bytes": 1495
},
{
"path": "pkern.cu",
"lines": 163,
"bytes": 7266
},
{
"path": "prec.h",
"lines": 3,
"bytes": 142
},
{
"path": "tattn.cu",
"lines": 222,
"bytes": 11605
}
],
"idea": "fp16 CUTLASS SM100 GEMMs with LayerNorm folded into weights and fused epilogues; mma.sync attention for frames and short keys, cuDNN for long keys; CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.744869,
"speedup": 2.1202
}
}
},
{
"board": "L2",
"id": "023_video_latent_vae_encoder_downsampling",
"name": "Video latent VAE encoder downsampling",
"group": "Image and video",
"op": "video VAE encoder downsampling",
"direction": "forward",
"model": "Wan-AI/Wan2.2-T2V-A14B",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/023_video_latent_vae_encoder_downsampling",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 5929,
"bytes": 320196
},
{
"path": "main.cpp",
"lines": 320,
"bytes": 23719
}
],
"idea": "Implicit-GEMM 3D convs on tcgen05 (strided TMA boxes, 2-SM pairs), the 1x1 residual as extra K steps, Winograd along width on some stages, GroupNorm stats in epilogues.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.952392,
"speedup": 3.9527
}
}
},
{
"board": "L2",
"id": "024_moe_expert_parallel_execution",
"name": "MoE expert parallel execution",
"group": "MLP and MoE",
"op": "MoE experts (256, given top-k) SwiGLU + scatter-add",
"direction": "forward",
"model": "XiaomiMiMo/MiMo-V2-Flash",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/024_moe_expert_parallel_execution",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 5279,
"bytes": 299501
},
{
"path": "kernel.h",
"lines": 7,
"bytes": 517
},
{
"path": "main.cpp",
"lines": 51,
"bytes": 2202
}
],
"idea": "Group tokens by expert, then tcgen05 GEMMs: gate/up + SwiGLU, then down proj with weighted red.add; one fused persistent kernel for few tokens, 2-CTA GEMMs for many.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.990009,
"speedup": 12.9455
}
}
},
{
"board": "L2",
"id": "025_moe_expert_parallel_execution_backward",
"name": "MoE expert parallel execution backward",
"group": "Backward pass",
"op": "MoE experts backward",
"direction": "backward",
"model": "XiaomiMiMo/MiMo-V2-Flash",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/025_moe_expert_parallel_execution_backward",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 5729,
"bytes": 320466
},
{
"path": "kernel.h",
"lines": 6,
"bytes": 262
},
{
"path": "main.cpp",
"lines": 10,
"bytes": 597
}
],
"idea": "Expert-grouped tcgen05 GEMMs fed by TMA gather4: TF32 recompute with SwiGLU backward in the epilogue, block-scaled MXFP6/MXFP8 input-grad GEMM, BF16 weight-grad GEMMs; PDL chain",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.599945,
"speedup": 1.4046
}
}
},
{
"board": "L2",
"id": "026_moe_expert_parallel_execution_with_weighted_aggregation",
"name": "MoE expert parallel execution with weighted aggregation",
"group": "MLP and MoE",
"op": "MoE experts (16, top-2) with weighted aggregation",
"direction": "forward",
"model": "ai21labs/AI21-Jamba-Large-1.7",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/026_moe_expert_parallel_execution_with_weighted_aggregation",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 2622,
"bytes": 139934
},
{
"path": "kernel.h",
"lines": 14,
"bytes": 879
},
{
"path": "kernel_mid.cu",
"lines": 3254,
"bytes": 167577
},
{
"path": "kernel_mid.h",
"lines": 67,
"bytes": 4335
},
{
"path": "kernel_small.cu",
"lines": 3352,
"bytes": 175781
},
{
"path": "kernel_small.h",
"lines": 65,
"bytes": 4377
},
{
"path": "main.cpp",
"lines": 138,
"bytes": 7238
}
],
"idea": "One persistent 2-SM swap-AB tcgen05 megakernel sorts tokens, runs gate/up + SwiGLU, then down with weighted red.add, gated by per-expert counters; smaller batches use a PDL chain.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.75664,
"speedup": 1.4067
}
}
},
{
"board": "L2",
"id": "027_grouped_query_attention_with_yarn_rope_and_qk_norm",
"name": "Grouped query attention with YaRN RoPE and QK norm",
"group": "Attention",
"op": "GQA attention with YaRN RoPE, QK-norm, sliding window",
"direction": "forward",
"model": "allenai/Olmo-3-32B-Think",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/027_grouped_query_attention_with_yarn_rope_and_qk_norm",
"language": "CUDA C++",
"files": [
{
"path": "attn_tc.cu",
"lines": 3908,
"bytes": 217432
},
{
"path": "big_gemm.cu",
"lines": 1850,
"bytes": 111327
},
{
"path": "cutlass_gemm.cu",
"lines": 246,
"bytes": 13432
},
{
"path": "flash_fix.cuh",
"lines": 262,
"bytes": 12665
},
{
"path": "fused_o.cu",
"lines": 440,
"bytes": 21488
},
{
"path": "gemm.cuh",
"lines": 195,
"bytes": 8340
},
{
"path": "kernel.cu",
"lines": 3200,
"bytes": 190069
},
{
"path": "kernel.h",
"lines": 6,
"bytes": 315
},
{
"path": "lt_gemm.cu",
"lines": 220,
"bytes": 13082
},
{
"path": "m64_helpers.inc",
"lines": 18,
"bytes": 3318
},
{
"path": "main.cpp",
"lines": 10,
"bytes": 587
},
{
"path": "mega.cu",
"lines": 882,
"bytes": 49322
},
{
"path": "pdl_skinny.h",
"lines": 228,
"bytes": 12475
},
{
"path": "skinny_gemm.cu",
"lines": 2683,
"bytes": 144259
}
],
"idea": "Hand-written tcgen05 QKV GEMMs with QK-norm + YaRN RoPE fused in (epilogue or a follow-up kernel), a FlashAttention-4-style tcgen05 core, then the O projection; CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.676288,
"speedup": 1.4463
}
}
},
{
"board": "L2",
"id": "028_gqa_rotary_attention_core_backward",
"name": "GQA rotary attention core backward",
"group": "Backward pass",
"op": "GQA rotary attention core backward",
"direction": "backward",
"model": "baidu/ERNIE-4.5-300B-A47B-PT",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/028_gqa_rotary_attention_core_backward",
"language": "CUDA C++",
"files": [
{
"path": "attn_fused_tc.cu",
"lines": 898,
"bytes": 55021
},
{
"path": "attn_fused_tc_v1.cu",
"lines": 658,
"bytes": 40232
},
{
"path": "attn_tc_bwd.cu",
"lines": 1642,
"bytes": 105964
},
{
"path": "attn_tc_fwd2.cu",
"lines": 504,
"bytes": 29391
},
{
"path": "attn_tc_fwd4.cu",
"lines": 1136,
"bytes": 69551
},
{
"path": "kernel.cu",
"lines": 335,
"bytes": 19376
},
{
"path": "kernel.h",
"lines": 126,
"bytes": 10100
},
{
"path": "main.cpp",
"lines": 1401,
"bytes": 97655
},
{
"path": "tc_gemm.cu",
"lines": 234,
"bytes": 15962
},
{
"path": "wg_gemm.cu",
"lines": 869,
"bytes": 52393
},
{
"path": "ws_gemm.cu",
"lines": 2728,
"bytes": 162480
}
],
"idea": "tcgen05 attention forward + backward (dK/dV summed per query group), RoPE kernels, and cuBLASLt or custom tcgen05 projection GEMMs on two streams; choices timed per shape.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.733443,
"speedup": 1.6935
}
}
},
{
"board": "L2",
"id": "029_moe_sparse_routing_and_dispatch",
"name": "MoE sparse routing and dispatch",
"group": "MLP and MoE",
"op": "MoE block: biased router, top-k, experts + shared expert",
"direction": "forward",
"model": "baidu/ERNIE-4.5-300B-A47B-PT",
"workloads": 9,
"kernel": {
"dir": "kernels/L2/029_moe_sparse_routing_and_dispatch",
"language": "CUDA C++",
"files": [
{
"path": "abcfg.h",
"lines": 7,
"bytes": 224
},
{
"path": "kernel.cu",
"lines": 4346,
"bytes": 266138
},
{
"path": "kernel.h",
"lines": 8,
"bytes": 380
},
{
"path": "main.cpp",
"lines": 54,
"bytes": 3704
}
],
"idea": "One persistent 2-SM tcgen05 megakernel: a scheduler hands out router, expert gate/up (SiLU) and down GEMM items, shared expert included; outputs are reduce-added in place.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.883839,
"speedup": 2.0849
}
}
},
{
"board": "L2",
"id": "030_flux_concatenated_sequence_processing_with_split",
"name": "Flux concatenated sequence processing with split",
"group": "Image and video",
"op": "FLUX concat text+image, linear, split",
"direction": "forward",
"model": "black-forest-labs/FLUX.1-Kontext-dev",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/030_flux_concatenated_sequence_processing_with_split",
"language": "CUDA C++",
"files": [
{
"path": "cutlass_gemm.cu",
"lines": 204,
"bytes": 13554
},
{
"path": "kernel.cu",
"lines": 3042,
"bytes": 176130
},
{
"path": "kernel.h",
"lines": 84,
"bytes": 4736
},
{
"path": "main.cpp",
"lines": 244,
"bytes": 12838
}
],
"idea": "No real concat: one GEMM launch covers both token sets, output split by views; TF32 tcgen05 for small inputs, else row-scaled fp16 copies on tcgen05 or CUTLASS.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.676785,
"speedup": 1.6273
}
}
},
{
"board": "L2",
"id": "031_flux_timestep_guidance_projection_embedding",
"name": "Flux timestep guidance projection embedding",
"group": "Image and video",
"op": "FLUX timestep + guidance embedding",
"direction": "forward",
"model": "black-forest-labs/FLUX.1-dev",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/031_flux_timestep_guidance_projection_embedding",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 2275,
"bytes": 131633
},
{
"path": "kernel.h",
"lines": 7,
"bytes": 470
},
{
"path": "main.cpp",
"lines": 38,
"bytes": 2393
}
],
"idea": "Small batches: fp32 FMA kernels streaming weights via bulk copies and an mbarrier ring; larger batches: tcgen05 TF32 GEMMs with hi/lo splits for near-fp32 accuracy; PDL.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.909997,
"speedup": 9.9132
}
}
},
{
"board": "L2",
"id": "032_dual_stream_attention_with_conditional_cross_attention",
"name": "Dual stream attention with conditional cross attention",
"group": "Image and video",
"op": "FIBO dual-stream attention block",
"direction": "forward",
"model": "briaai/FIBO",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/032_dual_stream_attention_with_conditional_cross_attention",
"language": "CUDA C++",
"files": [
{
"path": "cudnn_sdpa.cu",
"lines": 83,
"bytes": 4277
},
{
"path": "cutlass_gemm.cu",
"lines": 411,
"bytes": 26568
},
{
"path": "kernel.cu",
"lines": 10814,
"bytes": 626966
},
{
"path": "main.cpp",
"lines": 15,
"bytes": 1400
},
{
"path": "sel_table.h",
"lines": 143,
"bytes": 4162
}
],
"idea": "Per-shape fp16 tcgen05 pipeline: adaLN projection, QKV GEMM with fused bias and RoPE, text K/V on a side stream, flash attention (or cuDNN SDPA), gated-residual output GEMM.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.776539,
"speedup": 2.6596
}
}
},
{
"board": "L2",
"id": "033_multi_scale_feature_pyramid",
"name": "Multi scale feature pyramid",
"group": "Image and video",
"op": "multi-scale feature pyramid (U-Net)",
"direction": "forward",
"model": "chuxiaojie/NAFNet",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/033_multi_scale_feature_pyramid",
"language": "CUDA C++",
"files": [
{
"path": "conv3x3.cu",
"lines": 1257,
"bytes": 54217
},
{
"path": "conv3x3_tc.cu",
"lines": 5521,
"bytes": 288637
},
{
"path": "conv_cutlass.cu",
"lines": 446,
"bytes": 23041
},
{
"path": "conv_earlyb.hpp",
"lines": 932,
"bytes": 41858
},
{
"path": "convt2.cu",
"lines": 1846,
"bytes": 88027
},
{
"path": "convt_tc.cu",
"lines": 838,
"bytes": 43510
},
{
"path": "enc0down0.cu",
"lines": 257,
"bytes": 11470
},
{
"path": "fpn_table.h",
"lines": 196,
"bytes": 23021
},
{
"path": "kernel.cu",
"lines": 1819,
"bytes": 81214
},
{
"path": "kernel.h",
"lines": 255,
"bytes": 16140
},
{
"path": "main.cpp",
"lines": 4835,
"bytes": 252106
},
{
"path": "mega.cu",
"lines": 883,
"bytes": 39090
},
{
"path": "outconv.cu",
"lines": 1172,
"bytes": 56519
},
{
"path": "pdl.cuh",
"lines": 206,
"bytes": 8910
}
],
"idea": "Per-shape table picks each conv: a cuDNN engine or a custom TF32 tcgen05 implicit-GEMM kernel checked bit-exact against cuDNN; bias and concat fused; CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.819267,
"speedup": 4.1644
}
}
},
{
"board": "L2",
"id": "034_vision_language_cross_attention_fusion",
"name": "Vision language cross attention fusion",
"group": "Attention",
"op": "language-to-vision cross-attention with 1D / 3D RoPE",
"direction": "forward",
"model": "cybermotaz/Qwen3-VL-32B-Instruct-NVFP4",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/034_vision_language_cross_attention_fusion",
"language": "CUDA C++",
"files": [
{
"path": "cg_256x128_c2.cu",
"lines": 10,
"bytes": 521
},
{
"path": "cg_256x128_c4.cu",
"lines": 11,
"bytes": 605
},
{
"path": "cg_256x256_c2.cu",
"lines": 10,
"bytes": 521
},
{
"path": "cg_256x256_c4.cu",
"lines": 10,
"bytes": 560
},
{
"path": "cg_256x64_c2.cu",
"lines": 11,
"bytes": 588
},
{
"path": "cutlass_gemm.cuh",
"lines": 152,
"bytes": 8657
},
{
"path": "kernel.cu",
"lines": 6708,
"bytes": 382556
},
{
"path": "kernel.h",
"lines": 186,
"bytes": 9866
},
{
"path": "main.cpp",
"lines": 170,
"bytes": 10430
}
],
"idea": "Three PDL-chained kernels: QKV tcgen05 GEMM with bias and 1D/3D RoPE in its epilogue, tcgen05 flash attention keeping P in TMEM, then the output GEMM (mostly CUTLASS).",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.742762,
"speedup": 1.7861
}
}
},
{
"board": "L2",
"id": "035_convnextv2_block_with_grn",
"name": "ConvNeXtV2 block with GRN",
"group": "Image and video",
"op": "ConvNeXtV2 block with GRN",
"direction": "forward",
"model": "facebook/convnextv2-base-22k-224",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/035_convnextv2_block_with_grn",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 13749,
"bytes": 836510
},
{
"path": "kernel.h",
"lines": 6,
"bytes": 407
},
{
"path": "main.cpp",
"lines": 9,
"bytes": 659
}
],
"idea": "Per-shape chain of PDL kernels in one CUDA graph: depthwise conv (+LayerNorm), tcgen05 GEMM with GELU epilogue, GRN sums, then a tcgen05 GEMM applying GRN, bias and residual.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.831854,
"speedup": 4.5942
}
}
},
{
"board": "L2",
"id": "036_convnextv2_layer_with_nhwc_persistence_backward",
"name": "ConvNeXtV2 layer with NHWC persistence backward",
"group": "Backward pass",
"op": "ConvNeXtV2 layer backward",
"direction": "backward",
"model": "facebook/convnextv2-base-22k-224",
"workloads": 14,
"kernel": {
"dir": "kernels/L2/036_convnextv2_layer_with_nhwc_persistence_backward",
"language": "CUDA C++",
"files": [
{
"path": "k3p.cuh",
"lines": 1145,
"bytes": 66198
},
{
"path": "k3s.cuh",
"lines": 896,
"bytes": 48987
},
{
"path": "kernel.cu",
"lines": 7639,
"bytes": 419249
},
{
"path": "kernel.h",
"lines": 17,
"bytes": 1144
},
{
"path": "main.cpp",
"lines": 386,
"bytes": 22110
}
],
"idea": "tcgen05 pipeline: one fused kernel runs both MLP data-grad GEMMs (hi/lo split operands for fp32 accuracy) with GRN, GELU and LayerNorm backward; weight-grad and depthwise kernels overlap.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.907037,
"speedup": 9.1161
}
}
},
{
"board": "L2",
"id": "037_qk_norm_rope_attention_core_backward",
"name": "QK norm RoPE attention core backward",
"group": "Backward pass",
"op": "QK-norm RoPE attention core backward",
"direction": "backward",
"model": "google/gemma-3-4b-it",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/037_qk_norm_rope_attention_core_backward",
"language": "CUDA C++",
"files": [
{
"path": "exact_ref.cpp",
"lines": 74,
"bytes": 3938
},
{
"path": "kernel.cu",
"lines": 6780,
"bytes": 399980
},
{
"path": "main.cpp",
"lines": 11,
"bytes": 776
}
],
"idea": "Strict fp32: larger projection GEMMs use Strassen-Winograd or rank-48 fast-matmul levels over batched SGEMMs; flash-style fp32 causal soft-cap attention fwd + bwd; CUDA graph",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.221197,
"speedup": 0.2968
}
}
},
{
"board": "L2",
"id": "038_audio_relative_position_attention",
"name": "Audio relative position attention",
"group": "Audio",
"op": "Gemma3n audio relative-position attention",
"direction": "forward",
"model": "google/gemma-3n-E2B",
"workloads": 14,
"kernel": {
"dir": "kernels/L2/038_audio_relative_position_attention",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 10783,
"bytes": 626243
},
{
"path": "kernel.h",
"lines": 80,
"bytes": 7280
},
{
"path": "main.cpp",
"lines": 90,
"bytes": 4853
}
],
"idea": "tcgen05 2-SM QKV GEMM that also builds the position embeddings; banded local attention on tcgen05 or mma.sync with the relative shift done in-kernel; PDL chain.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.95767,
"speedup": 17.9933
}
}
},
{
"board": "L2",
"id": "039_kv_shared_attention_with_rope",
"name": "KV shared attention with RoPE",
"group": "Attention",
"op": "Gemma3n KV-shared attention with RoPE",
"direction": "forward",
"model": "google/gemma-3n-E2B",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/039_kv_shared_attention_with_rope",
"language": "CUDA C++",
"files": [
{
"path": "kdecl.h",
"lines": 19,
"bytes": 972
},
{
"path": "kernel.cu",
"lines": 4822,
"bytes": 284060
},
{
"path": "kernel.h",
"lines": 117,
"bytes": 9099
},
{
"path": "main.cpp",
"lines": 1036,
"bytes": 60793
},
{
"path": "oepi.cuh",
"lines": 782,
"bytes": 40651
}
],
"idea": "One persistent tcgen05 megakernel runs the QKV GEMM (RMSNorm + RoPE epilogue), GQA flash attention skipping masked tiles, and o_proj, as ordered tickets synced by counters.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.900087,
"speedup": 5.0347
}
}
},
{
"board": "L2",
"id": "040_altup_predict_correction_cycle_backward",
"name": "AltUp predict correction cycle backward",
"group": "Backward pass",
"op": "AltUp predict / correct backward",
"direction": "backward",
"model": "google/gemma-3n-E4B",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/040_altup_predict_correction_cycle_backward",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 959,
"bytes": 54609
},
{
"path": "kernel.h",
"lines": 66,
"bytes": 4074
},
{
"path": "kernel_g128.cu",
"lines": 1457,
"bytes": 95434
},
{
"path": "kernel_ws.cu",
"lines": 908,
"bytes": 53272
},
{
"path": "kernel_wsr.cu",
"lines": 1507,
"bytes": 106644
},
{
"path": "main.cpp",
"lines": 431,
"bytes": 29959
}
],
"idea": "One persistent warp-specialized kernel: TMA stages each token's rows in an mbarrier ring, a few row dot products give every grad, and weight grads are reduced across CTAs.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.993548,
"speedup": 20.9939
}
}
},
{
"board": "L2",
"id": "041_kv_shared_attention_with_dual_rope",
"name": "KV shared attention with dual RoPE",
"group": "Attention",
"op": "Gemma3n KV-shared attention with dual RoPE",
"direction": "forward",
"model": "google/gemma-3n-E4B",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/041_kv_shared_attention_with_dual_rope",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 10702,
"bytes": 615216
},
{
"path": "kernel.h",
"lines": 7,
"bytes": 573
},
{
"path": "main.cpp",
"lines": 17,
"bytes": 1554
},
{
"path": "oproj_cutlass.cu",
"lines": 117,
"bytes": 6679
}
],
"idea": "tcgen05 projection GEMM with RMSNorm + RoPE in its epilogue; persistent tcgen05 GQA flash attention with soft-cap, causal by default plus a mask fix-up kernel",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.958881,
"speedup": 12.7298
}
}
},
{
"board": "L2",
"id": "042_ffn_gelu_projection_fused_backward",
"name": "FFN GELU projection fused backward",
"group": "Backward pass",
"op": "FFN GELU projection backward",
"direction": "backward",
"model": "hexgrad/Kokoro-82M",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/042_ffn_gelu_projection_fused_backward",
"language": "CUDA C++",
"files": [
{
"path": "b2b.cuh",
"lines": 461,
"bytes": 26043
},
{
"path": "dhk.cuh",
"lines": 413,
"bytes": 25915
},
{
"path": "dht.cuh",
"lines": 437,
"bytes": 30993
},
{
"path": "fused2.cuh",
"lines": 532,
"bytes": 27147
},
{
"path": "ggk.cuh",
"lines": 1920,
"bytes": 132819
},
{
"path": "ggw.cuh",
"lines": 330,
"bytes": 18346
},
{
"path": "k1v.cuh",
"lines": 491,
"bytes": 32034
},
{
"path": "kernel.cu",
"lines": 579,
"bytes": 32209
},
{
"path": "kernel.h",
"lines": 247,
"bytes": 17233
},
{
"path": "main.cpp",
"lines": 1581,
"bytes": 100949
},
{
"path": "sdh.cuh",
"lines": 573,
"bytes": 36069
},
{
"path": "simt.cuh",
"lines": 121,
"bytes": 6417
},
{
"path": "swg.cuh",
"lines": 437,
"bytes": 28162
},
{
"path": "tgd.cuh",
"lines": 226,
"bytes": 11833
},
{
"path": "tgg.cuh",
"lines": 353,
"bytes": 22070
},
{
"path": "wgrad.cuh",
"lines": 1814,
"bytes": 123403
}
],
"idea": "Split-fp16 (hi + lo) GEMMs for near-FP32 grads: custom 2-CTA tcgen05 kernels fuse the fc2 input-grad GEMM with GELU backward and compute the weight grads; multi-stream CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.778289,
"speedup": 3.0573
}
}
},
{
"board": "L2",
"id": "043_mamba_chunk_scan_with_segsum",
"name": "Mamba chunk scan with segsum",
"group": "State space and conv",
"op": "Mamba2 chunk scan with segsum",
"direction": "forward",
"model": "ibm-granite/granite-4.0-1b",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/043_mamba_chunk_scan_with_segsum",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 8866,
"bytes": 416262
},
{
"path": "kernel.h",
"lines": 19,
"bytes": 1175
},
{
"path": "kernel_v3.cu",
"lines": 1513,
"bytes": 76589
},
{
"path": "main.cpp",
"lines": 58,
"bytes": 3379
}
],
"idea": "SSD on tcgen05: per-chunk masked C @ B^T, chunk outputs and states, an fp32 scan across chunks, then the cross-chunk output; some shapes run one fused kernel.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.971494,
"speedup": 29.828
}
}
},
{
"board": "L2",
"id": "044_mamba_discretization_and_segsum",
"name": "Mamba discretization and segsum",
"group": "State space and conv",
"op": "Mamba SSM discretisation + segsum",
"direction": "forward",
"model": "ibm-granite/granite-4.0-micro",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/044_mamba_discretization_and_segsum",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 3863,
"bytes": 265149
},
{
"path": "kernel.h",
"lines": 13,
"bytes": 867
},
{
"path": "main.cpp",
"lines": 332,
"bytes": 19822
}
],
"idea": "A per-shape table picks the plan: a scan of softplus(dt)*A writes L while C @ B^T tiles on tcgen05 or mma.sync write G and M, side by side.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.942343,
"speedup": 7.0549
}
}
},
{
"board": "L2",
"id": "045_audio_encoder_to_language_model_multimodal_fusion",
"name": "Audio encoder to language model multimodal fusion",
"group": "Audio",
"op": "speech encoder + Q-Former + scatter into LM embeddings",
"direction": "forward",
"model": "ibm-granite/granite-speech-3.3-8b",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/045_audio_encoder_to_language_model_multimodal_fusion",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 11753,
"bytes": 647924
},
{
"path": "kernel.h",
"lines": 143,
"bytes": 6829
},
{
"path": "main.cpp",
"lines": 56,
"bytes": 2638
}
],
"idea": "PDL chain: one cluster per window runs the encoder (and attention) with DSMEM exchange; tcgen05 GEMMs project and scatter the rows; a side-stream TMA copy writes the other rows.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.99255,
"speedup": 6.5777
}
}
},
{
"board": "L2",
"id": "046_conformer_relative_position_attention",
"name": "Conformer relative position attention",
"group": "Audio",
"op": "Conformer relative-position attention",
"direction": "forward",
"model": "ibm-granite/granite-speech-3.3-8b",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/046_conformer_relative_position_attention",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 6646,
"bytes": 415634
},
{
"path": "kernel.h",
"lines": 63,
"bytes": 3112
},
{
"path": "main.cpp",
"lines": 232,
"bytes": 13965
}
],
"idea": "PDL chain: LayerNorm, 2-CTA tcgen05 QKV GEMM, tcgen05 flash attention adding Q times the position table as a bias (streamed via smem), then a tcgen05 output GEMM.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.844249,
"speedup": 4.0381
}
}
},
{
"board": "L2",
"id": "047_moe_training_token_repeat_and_expert_computation",
"name": "MoE training token repeat and expert computation",
"group": "MLP and MoE",
"op": "MoE training forward: token repeat + masked expert SwiGLU",
"direction": "forward",
"model": "inclusionAI/Ling-1T",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/047_moe_training_token_repeat_and_expert_computation",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 1912,
"bytes": 106473
},
{
"path": "kernel.h",
"lines": 29,
"bytes": 1261
},
{
"path": "kernel_big.cu",
"lines": 787,
"bytes": 39625
},
{
"path": "kernel_big.h",
"lines": 11,
"bytes": 767
},
{
"path": "kernel_bigf.cu",
"lines": 845,
"bytes": 42184
},
{
"path": "kernel_bigf.h",
"lines": 11,
"bytes": 625
},
{
"path": "kernel_cb.cu",
"lines": 257,
"bytes": 12899
},
{
"path": "kernel_cg.cu",
"lines": 1252,
"bytes": 68480
},
{
"path": "main.cpp",
"lines": 255,
"bytes": 15771
}
],
"idea": "By tokens per expert: smaller cases use persistent tcgen05 kernels that TMA-gather token rows, fuse SwiGLU and atomically add weighted outputs (f16x2); the largest use CUTLASS grouped GEMMs.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.920425,
"speedup": 1.9683
}
}
},
{
"board": "L2",
"id": "048_moe_expert_inference_batched_dispatch",
"name": "MoE expert inference batched dispatch",
"group": "MLP and MoE",
"op": "MoE experts inference dispatch (sorted by expert)",
"direction": "forward",
"model": "inclusionAI/Ling-flash-2.0",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/048_moe_expert_inference_batched_dispatch",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 3264,
"bytes": 197663
},
{
"path": "kernel.h",
"lines": 33,
"bytes": 2363
},
{
"path": "main.cpp",
"lines": 175,
"bytes": 8650
},
{
"path": "mbench.cu",
"lines": 186,
"bytes": 10137
}
],
"idea": "Route kernel sorts tokens by expert; tcgen05 gate/up kernel TMA-gathers token rows and fuses SwiGLU; tcgen05 down kernel adds weighted outputs into fp16, then cast to bf16.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.981803,
"speedup": 7.1149
}
}
},
{
"board": "L2",
"id": "049_group_limited_topk_routing",
"name": "Group limited topk routing",
"group": "MLP and MoE",
"op": "group-limited top-k routing: router GEMM, sigmoid + bias, 8 groups / top-4 / top-8",
"direction": "forward",
"model": "inclusionAI/Ring-flash-2.0",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/049_group_limited_topk_routing",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 8893,
"bytes": 537053
},
{
"path": "main.cpp",
"lines": 1859,
"bytes": 119407
}
],
"idea": "cuBLASLt or tcgen05 router GEMM over K-split partial sums, then a PDL group top-k kernel; many tokens: routing fused into the tcgen05 GEMM epilogue",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.91032,
"speedup": 7.5521
}
}
},
{
"board": "L2",
"id": "050_vae_decoder_mid_block_attention_resnet",
"name": "VAE decoder mid block attention ResNet",
"group": "Image and video",
"op": "VAE decoder mid-block (ResNet + attention)",
"direction": "forward",
"model": "kaiyuyue/FLUX.2-dev-vae",
"workloads": 11,
"kernel": {
"dir": "kernels/L2/050_vae_decoder_mid_block_attention_resnet",
"language": "CUDA C++",
"files": [
{
"path": "cutlass_conv.cu",
"lines": 71,
"bytes": 3686
},
{
"path": "htcombo.inc",
"lines": 8,
"bytes": 418
},
{
"path": "kernel.cu",
"lines": 12682,
"bytes": 687639
},
{
"path": "kernel.h",
"lines": 58,
"bytes": 4716
},
{
"path": "main.cpp",
"lines": 1140,
"bytes": 65089
}
],
"idea": "Custom tcgen05 kernels: implicit-GEMM 3x3 convs with cluster weight multicast, fused GroupNorm + SiLU, attention with pre-folded Q-K and V-out weights on many shapes; CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.811109,
"speedup": 3.2816
}
}
},
{
"board": "L2",
"id": "051_seqlen-finetuned-reconstructed_hyena_complete_forward_block",
"name": "Seqlen-finetuned-reconstructed Hyena complete forward block",
"group": "State space and conv",
"op": "Hyena block forward",
"direction": "forward",
"model": "magicslabnu/Hyena-small-32k",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/051_seqlen-finetuned-reconstructed_hyena_complete_forward_block",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 14383,
"bytes": 732533
},
{
"path": "kernel.h",
"lines": 283,
"bytes": 18889
},
{
"path": "main.cpp",
"lines": 1549,
"bytes": 86039
}
],
"idea": "CUDA graph of custom kernels: tcgen05 in-proj fused with the short conv, long conv by cuFFT or a Toeplitz tensor-core kernel, tcgen05 out-proj with LayerNorm, fused fc1-GELU-fc2 MLP.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.93265,
"speedup": 12.8941
}
}
},
{
"board": "L2",
"id": "052_seqlen-finetuned-reconstructed_hyena_gating_and_output_projection",
"name": "Seqlen-finetuned-reconstructed Hyena gating and output projection",
"group": "State space and conv",
"op": "Hyena gating + FFT conv + output projection",
"direction": "forward",
"model": "magicslabnu/Hyena-small-32k",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/052_seqlen-finetuned-reconstructed_hyena_gating_and_output_projection",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 11813,
"bytes": 726609
},
{
"path": "kernel.h",
"lines": 4,
"bytes": 273
},
{
"path": "main.cpp",
"lines": 48,
"bytes": 2717
}
],
"idea": "The FFT conv runs exactly as a causal block-Toeplitz GEMM on tensor cores, gates fused in; then a tcgen05 output-projection GEMM, fused as a tail for some shapes.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.91246,
"speedup": 9.6192
}
}
},
{
"board": "L2",
"id": "053_text_decoder_layer_with_self_attention_and_mlp",
"name": "Text decoder layer with self attention and MLP",
"group": "Full decoder layers",
"op": "Mllama text decoder layer: RMSNorm, GQA + RoPE, SwiGLU MLP, residuals",
"direction": "forward",
"model": "meta-llama/Llama-3.2-11B-Vision",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/053_text_decoder_layer_with_self_attention_and_mlp",
"language": "CUDA C++",
"files": [
{
"path": "attn.cu",
"lines": 3488,
"bytes": 166687
},
{
"path": "attn4.cu",
"lines": 1007,
"bytes": 53059
},
{
"path": "kernel.cu",
"lines": 7136,
"bytes": 383465
},
{
"path": "kernel.h",
"lines": 212,
"bytes": 15983
},
{
"path": "main.cpp",
"lines": 603,
"bytes": 36937
},
{
"path": "mega_impl.cuh",
"lines": 1122,
"bytes": 49485
}
],
"idea": "tcgen05 GEMMs with fused epilogues (RoPE, residual adds, SiLU*mul), swap-AB skinny GEMMs for few tokens, attention kernels picked by shape after an on-device causal-mask check.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.745709,
"speedup": 1.6892
}
}
},
{
"board": "L2",
"id": "054_vision_encoder_layer_with_gated_residuals",
"name": "Vision encoder layer with gated residuals",
"group": "Image and video",
"op": "vision encoder layer with tanh-gated residuals",
"direction": "forward",
"model": "meta-llama/Llama-3.2-11B-Vision",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/054_vision_encoder_layer_with_gated_residuals",
"language": "CUDA C++",
"files": [
{
"path": "attn_fa4.cu",
"lines": 3464,
"bytes": 214605
},
{
"path": "choice_table.h",
"lines": 21,
"bytes": 2771
},
{
"path": "diag.h",
"lines": 20,
"bytes": 1130
},
{
"path": "ef_load.h",
"lines": 35,
"bytes": 2173
},
{
"path": "epi_ops.h",
"lines": 131,
"bytes": 5811
},
{
"path": "gelu_fast.h",
"lines": 79,
"bytes": 4248
},
{
"path": "gemm.cu",
"lines": 1918,
"bytes": 135222
},
{
"path": "gemm_e.cu",
"lines": 710,
"bytes": 46442
},
{
"path": "gemm_pf.cu",
"lines": 308,
"bytes": 19936
},
{
"path": "kernel.cu",
"lines": 1451,
"bytes": 83445
},
{
"path": "kernel.h",
"lines": 158,
"bytes": 14057
},
{
"path": "l2p.h",
"lines": 77,
"bytes": 4454
},
{
"path": "lnfc1.cu",
"lines": 311,
"bytes": 16555
},
{
"path": "main.cpp",
"lines": 761,
"bytes": 50369
},
{
"path": "oproj_ov.cu",
"lines": 149,
"bytes": 8540
},
{
"path": "pf_gemm.h",
"lines": 82,
"bytes": 4840
},
{
"path": "sched_depth.h",
"lines": 8,
"bytes": 506
},
{
"path": "tl.h",
"lines": 42,
"bytes": 2211
},
{
"path": "wlb.h",
"lines": 136,
"bytes": 7183
}
],
"idea": "CUTLASS tcgen05 GEMMs with fused epilogues (gated residual, bias + GELU) and custom attention (mma.sync for short sequences, tcgen05/TMEM flash otherwise); the layer replays as one CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.686531,
"speedup": 1.7807
}
}
},
{
"board": "L2",
"id": "055_audio_encoder_conv_positional_layer_stack",
"name": "Audio encoder conv positional layer stack",
"group": "Audio",
"op": "audio conv stem + first encoder layer",
"direction": "forward",
"model": "mistralai/Voxtral-Small-24B-2507",
"workloads": 15,
"kernel": {
"dir": "kernels/L2/055_audio_encoder_conv_positional_layer_stack",
"language": "CUDA C++",
"files": [
{
"path": "attn_tc.cu",
"lines": 727,
"bytes": 43601
},
{
"path": "conv1_tc.cu",
"lines": 521,
"bytes": 34840
},
{
"path": "conv2w3_tc.cu",
"lines": 533,
"bytes": 32587
},
{
"path": "conv2w_tc.cu",
"lines": 516,
"bytes": 31617
},
{
"path": "gelu_fast.h",
"lines": 39,
"bytes": 2624
},
{
"path": "kernel.cu",
"lines": 545,
"bytes": 32433
},
{
"path": "main.cpp",
"lines": 798,
"bytes": 51424
},
{
"path": "qkv_tc.cu",
"lines": 374,
"bytes": 22335
}
],
"idea": "tcgen05 conv GEMMs with fused bias, GELU and positional add; persistent tcgen05 attention; projections and MLP mostly on cuBLASLt with fused epilogues; one CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.69816,
"speedup": 1.2861
}
}
},
{
"board": "L2",
"id": "056_language_model_decoder_prenorm_attention_ffn_residual_backward",
"name": "Language model decoder prenorm attention FFN residual backward",
"group": "Backward pass",
"op": "decoder layer backward",
"direction": "backward",
"model": "mistralai/Voxtral-Small-24B-2507",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/056_language_model_decoder_prenorm_attention_ffn_residual_backward",
"language": "CUDA C++",
"files": [
{
"path": "cut_c_128_p.cu",
"lines": 4,
"bytes": 227
},
{
"path": "cut_c_256_p.cu",
"lines": 4,
"bytes": 227
},
{
"path": "cut_dispatch.cu",
"lines": 38,
"bytes": 2450
},
{
"path": "cut_r_128_p.cu",
"lines": 4,
"bytes": 253
},
{
"path": "cut_r_256_p.cu",
"lines": 4,
"bytes": 253
},
{
"path": "cutlass_gemm.h",
"lines": 29,
"bytes": 2171
},
{
"path": "cutlass_impl.h",
"lines": 145,
"bytes": 8544
},
{
"path": "kernel.cu",
"lines": 7676,
"bytes": 423329
},
{
"path": "kernel.h",
"lines": 139,
"bytes": 9740
},
{
"path": "lt_table.h",
"lines": 90,
"bytes": 15175
},
{
"path": "main.cpp",
"lines": 1976,
"bytes": 110799
}
],
"idea": "cuBLASLt projection GEMMs (algorithms timed per shape, weight grads overlapped on a second stream) plus custom SwiGLU-backward, RMSNorm-backward and tcgen05 attention-backward kernels (GQA sum, RoPE backward).",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.71436,
"speedup": 1.5583
}
}
},
{
"board": "L2",
"id": "057_residual_coupling_flow_block",
"name": "Residual coupling flow block",
"group": "Audio",
"op": "normalising-flow residual coupling block (TTS)",
"direction": "forward",
"model": "myshell-ai/OpenVoice",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/057_residual_coupling_flow_block",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 11867,
"bytes": 717644
},
{
"path": "main.cpp",
"lines": 79,
"bytes": 3774
}
],
"idea": "A filter-prep kernel, then one persistent 2-SM TF32 tcgen05 kernel where each CTA pair runs all coupling steps for its tile; other shapes use staged conv kernels.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.906222,
"speedup": 8.6263
}
}
},
{
"board": "L2",
"id": "058_mamba2_selective_scan",
"name": "Mamba2 selective scan",
"group": "State space and conv",
"op": "Mamba2 selective scan with conv + gated norm",
"direction": "forward",
"model": "nvidia/Nemotron-H-47B-Base-8K",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/058_mamba2_selective_scan",
"language": "CUDA C++",
"files": [
{
"path": "gemm_clc.cuh",
"lines": 657,
"bytes": 41969
},
{
"path": "gemm_evt.cu",
"lines": 169,
"bytes": 9790
},
{
"path": "gemm_evt.h",
"lines": 9,
"bytes": 647
},
{
"path": "kernel.cu",
"lines": 2650,
"bytes": 155151
},
{
"path": "kernel.h",
"lines": 3,
"bytes": 329
},
{
"path": "main.cpp",
"lines": 12,
"bytes": 842
}
],
"idea": "Warp-specialized tcgen05 chunked-scan kernel keeps each head's SSM state in TMEM; fused conv + SiLU and gated-norm kernels; projections on cuBLASLt or a custom tcgen05 GEMM.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.854164,
"speedup": 2.376
}
}
},
{
"board": "L2",
"id": "059_decoder_layer_full_block",
"name": "Decoder layer full block",
"group": "Full decoder layers",
"op": "Qwen3 decoder layer: RMSNorm, QKV + QK-norm, RoPE, GQA, o_proj, SwiGLU MLP",
"direction": "forward",
"model": "nvidia/Qwen3-14B-NVFP4",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/059_decoder_layer_full_block",
"language": "CUDA C++",
"files": [
{
"path": "attn_fa4.cu",
"lines": 753,
"bytes": 40805
},
{
"path": "attn_g5.cu",
"lines": 274,
"bytes": 13501
},
{
"path": "attn_tc2.cu",
"lines": 831,
"bytes": 40314
},
{
"path": "common.cu",
"lines": 423,
"bytes": 22102
},
{
"path": "engine.cu",
"lines": 1246,
"bytes": 70200
},
{
"path": "kernel.h",
"lines": 182,
"bytes": 12547
},
{
"path": "lt.cpp",
"lines": 177,
"bytes": 9978
},
{
"path": "main.cpp",
"lines": 205,
"bytes": 13485
},
{
"path": "wgemm.cu",
"lines": 732,
"bytes": 40885
}
],
"idea": "FlashAttention-4-style tcgen05 attention, 2-SM tcgen05 GEMMs for QKV (norm + RoPE epilogue) and SwiGLU, cuBLASLt o_proj/down with fused residual; few tokens use split-K weight-streaming GEMMs.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.64744,
"speedup": 1.292
}
}
},
{
"board": "L2",
"id": "060_chunk_gated_delta_rule_linear_attention",
"name": "Chunk gated delta rule linear attention",
"group": "Attention",
"op": "chunked gated delta-rule linear attention",
"direction": "forward",
"model": "nvidia/Qwen3-Next-80B-A3B-Thinking-NVFP4",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/060_chunk_gated_delta_rule_linear_attention",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 5630,
"bytes": 319060
},
{
"path": "kernel.h",
"lines": 137,
"bytes": 13093
},
{
"path": "kernel2.cu",
"lines": 10518,
"bytes": 592102
},
{
"path": "kernel2_nh.cu",
"lines": 29,
"bytes": 1239
},
{
"path": "kernel_nh.cu",
"lines": 29,
"bytes": 1237
},
{
"path": "kernel_nh.h",
"lines": 138,
"bytes": 13259
},
{
"path": "main.cpp",
"lines": 417,
"bytes": 22590
},
{
"path": "rlh.inc",
"lines": 488,
"bytes": 24460
},
{
"path": "tlprep.inc",
"lines": 738,
"bytes": 37612
},
{
"path": "tmapcache.h",
"lines": 34,
"bytes": 1910
}
],
"idea": "Prep kernel builds per-chunk WY terms (blocked triangular inverse); a recurrence kernel walks the chunks with tcgen05 state GEMMs, fp32 state kept in TMEM; route picked by shape",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.965604,
"speedup": 20.0548
}
}
},
{
"board": "L2",
"id": "061_sparse_moe_routing_and_experts",
"name": "Sparse MoE routing and experts",
"group": "MLP and MoE",
"op": "MoE block: softmax router top-10 + experts + sigmoid-gated shared expert",
"direction": "forward",
"model": "nvidia/Qwen3-Next-80B-A3B-Thinking-NVFP4",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/061_sparse_moe_routing_and_experts",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 6427,
"bytes": 390704
},
{
"path": "kernel.h",
"lines": 4,
"bytes": 275
},
{
"path": "main.cpp",
"lines": 5,
"bytes": 216
}
],
"idea": "Router GEMM + top-k kernel, then persistent tcgen05 expert kernels (gate/up + SiLU, then down with weighted reduce-add, shared expert included); layout picked by token count.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.925969,
"speedup": 3.5911
}
}
},
{
"board": "L2",
"id": "062_decoder_complete_layer",
"name": "Decoder complete layer",
"group": "Audio",
"op": "speech decoder layer: self-attn + cross-attn + MLP",
"direction": "forward",
"model": "nvidia/canary-qwen-2.5b",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/062_decoder_complete_layer",
"language": "CUDA C++",
"files": [
{
"path": "cat_mainloop.hpp",
"lines": 834,
"bytes": 38050
},
{
"path": "dec_table.h",
"lines": 195,
"bytes": 9310
},
{
"path": "ef_mainloop.hpp",
"lines": 45,
"bytes": 2721
},
{
"path": "fmha_safe_mainloop.hpp",
"lines": 1262,
"bytes": 48894
},
{
"path": "ilv_mainloop.hpp",
"lines": 730,
"bytes": 31142
},
{
"path": "ilv_swiglu.hpp",
"lines": 404,
"bytes": 23574
},
{
"path": "kernel.cu",
"lines": 6742,
"bytes": 369416
},
{
"path": "kernel.h",
"lines": 158,
"bytes": 13554
},
{
"path": "kernel_fa.cu",
"lines": 2945,
"bytes": 165912
},
{
"path": "kernel_ilv2.cu",
"lines": 133,
"bytes": 6712
},
{
"path": "main.cpp",
"lines": 870,
"bytes": 51858
},
{
"path": "pf_wrap.hpp",
"lines": 74,
"bytes": 4384
},
{
"path": "rope_epi.hpp",
"lines": 359,
"bytes": 19572
},
{
"path": "rownorm_epi.hpp",
"lines": 432,
"bytes": 25218
}
],
"idea": "Per-shape CUTLASS SM100 tcgen05 GEMMs (or a hand-written swap-AB one for small M) and tcgen05 flash attention, PDL-chained; gate and up run as one batched GEMM.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.708559,
"speedup": 1.8308
}
}
},
{
"board": "L2",
"id": "063_encoder_layer_dual_residual_norm_chain",
"name": "Encoder layer dual residual norm chain",
"group": "Audio",
"op": "speech encoder layer (dual residual-norm chain)",
"direction": "forward",
"model": "nvidia/parakeet-tdt-0.6b-v3",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/063_encoder_layer_dual_residual_norm_chain",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 8769,
"bytes": 530669
},
{
"path": "kernel.h",
"lines": 5,
"bytes": 382
},
{
"path": "main.cpp",
"lines": 7,
"bytes": 520
}
],
"idea": "fp16 tcgen05 pipeline with norm weights folded into the weights: persistent GEMMs with fused RoPE, residual and SwiGLU epilogues, GQA-packed tcgen05 flash attention; CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.711731,
"speedup": 1.935
}
}
},
{
"board": "L2",
"id": "064_multi_head_qkv_projection_with_rope_backward",
"name": "Multi head QKV projection with RoPE backward",
"group": "Backward pass",
"op": "QKV projection with RoPE backward",
"direction": "backward",
"model": "nvidia/parakeet-tdt-0.6b-v3",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/064_multi_head_qkv_projection_with_rope_backward",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 3285,
"bytes": 204294
},
{
"path": "main.cpp",
"lines": 138,
"bytes": 8707
}
],
"idea": "A prep kernel undoes RoPE on the Q/K grads and casts to fp16; one PDL-chained tcgen05 GEMM launch computes both dX and dW; CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.697463,
"speedup": 1.8206
}
}
},
{
"board": "L2",
"id": "065_sparse_expert_dispatch_and_combine",
"name": "Sparse expert dispatch and combine",
"group": "MLP and MoE",
"op": "gpt-oss sparse experts: gate_up + clamped SwiGLU + down + index_add",
"direction": "forward",
"model": "openai/gpt-oss-120b",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/065_sparse_expert_dispatch_and_combine",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 3388,
"bytes": 210393
},
{
"path": "kernel.h",
"lines": 6,
"bytes": 326
},
{
"path": "main.cpp",
"lines": 33,
"bytes": 1961
}
],
"idea": "Buckets tokens by expert, then grouped tcgen05 GEMMs: gate_up with a fused clamped-SwiGLU epilogue, down_proj whose epilogue bulk-reduce-adds weighted rows into the output.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.756324,
"speedup": 2.1558
}
}
},
{
"board": "L2",
"id": "066_resnet_block_with_time_embedding",
"name": "ResNet block with time embedding",
"group": "Image and video",
"op": "SD ResNet block with time embedding",
"direction": "forward",
"model": "runwayml/stable-diffusion-v1-5",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/066_resnet_block_with_time_embedding",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 9902,
"bytes": 605365
},
{
"path": "kernel.h",
"lines": 14,
"bytes": 612
},
{
"path": "main.cpp",
"lines": 171,
"bytes": 10429
},
{
"path": "plan_table.h",
"lines": 19,
"bytes": 1050
}
],
"idea": "PDL chain: one-launch GroupNorm + SiLU into padded NHWC fp16, TMA-fed tcgen05 implicit-GEMM convs, and GN2 overlapped with conv1 through per-batch ready counters.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.820503,
"speedup": 3.4851
}
}
},
{
"board": "L2",
"id": "067_patch_embed_to_joint_attention_input",
"name": "Patch embed to joint attention input",
"group": "Image and video",
"op": "SD3.5 patch embed + time / text conditioning",
"direction": "forward",
"model": "stabilityai/stable-diffusion-3.5-large",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/067_patch_embed_to_joint_attention_input",
"language": "CUDA C++",
"files": [
{
"path": "convert.cu",
"lines": 340,
"bytes": 19059
},
{
"path": "ctx_gemm.cu",
"lines": 2705,
"bytes": 157056
},
{
"path": "ctx_nosplit.cu",
"lines": 219,
"bytes": 12854
},
{
"path": "ctx_swapk.cu",
"lines": 336,
"bytes": 17393
},
{
"path": "cutlass_gemm.cu",
"lines": 230,
"bytes": 12714
},
{
"path": "fused.cu",
"lines": 819,
"bytes": 40977
},
{
"path": "kernel.cu",
"lines": 3838,
"bytes": 210411
},
{
"path": "kernel.h",
"lines": 167,
"bytes": 13689
},
{
"path": "main.cpp",
"lines": 1113,
"bytes": 65679
},
{
"path": "temb_tc.cu",
"lines": 355,
"bytes": 19635
}
],
"idea": "Three parallel streams: a persistent TF32 tcgen05 implicit-im2col patch-embed GEMM, a custom tcgen05 (or cuBLASLt) context-embedder GEMM, and split-K kernels for the conditioning.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.741702,
"speedup": 2.3782
}
}
},
{
"board": "L2",
"id": "068_gelu_approximate_feedforward_backward",
"name": "GELU approximate feedforward backward",
"group": "Backward pass",
"op": "GELU feed-forward backward",
"direction": "backward",
"model": "stabilityai/stable-diffusion-3.5-medium",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/068_gelu_approximate_feedforward_backward",
"language": "CUDA C++",
"files": [
{
"path": "fused.cu",
"lines": 820,
"bytes": 42320
},
{
"path": "kernel.cu",
"lines": 932,
"bytes": 49355
},
{
"path": "kernel.h",
"lines": 155,
"bytes": 11343
},
{
"path": "main.cpp",
"lines": 1047,
"bytes": 67198
},
{
"path": "nslice.cu",
"lines": 419,
"bytes": 22259
},
{
"path": "plain.cu",
"lines": 1458,
"bytes": 88557
},
{
"path": "wgtf.cu",
"lines": 301,
"bytes": 16697
}
],
"idea": "Mostly fp16 tcgen05 GEMMs: one with a fused GELU-backward epilogue, then weight and input grads on side streams with PDL; fp32 rerun if fp16 overflows.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.659713,
"speedup": 1.5246
}
}
},
{
"board": "L2",
"id": "069_joint_transformer_block_residual_path",
"name": "Joint transformer block residual path",
"group": "Image and video",
"op": "SD3.5 joint transformer block residual path",
"direction": "forward",
"model": "stabilityai/stable-diffusion-3.5-medium",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/069_joint_transformer_block_residual_path",
"language": "CUDA C++",
"files": [
{
"path": "attn_sb.cu",
"lines": 693,
"bytes": 37625
},
{
"path": "cg.h",
"lines": 113,
"bytes": 10536
},
{
"path": "cg_bias.cu",
"lines": 8,
"bytes": 491
},
{
"path": "cg_gelu.cu",
"lines": 10,
"bytes": 640
},
{
"path": "cg_plain.cu",
"lines": 12,
"bytes": 815
},
{
"path": "dec.cpp",
"lines": 44,
"bytes": 1327
},
{
"path": "dec.h",
"lines": 9,
"bytes": 346
},
{
"path": "dec_table.h",
"lines": 250,
"bytes": 14394
},
{
"path": "gemm_tune.cu",
"lines": 82,
"bytes": 3534
},
{
"path": "gemm_tune.h",
"lines": 31,
"bytes": 1708
},
{
"path": "hostcache.h",
"lines": 44,
"bytes": 2423
},
{
"path": "kernel.cu",
"lines": 5898,
"bytes": 301490
},
{
"path": "kernel.h",
"lines": 154,
"bytes": 14306
},
{
"path": "main.cpp",
"lines": 1544,
"bytes": 102441
},
{
"path": "pdl.h",
"lines": 31,
"bytes": 1726
},
{
"path": "sgx.cu",
"lines": 2956,
"bytes": 178385
},
{
"path": "sgx_sweep8.cu",
"lines": 4,
"bytes": 148
},
{
"path": "skm.cu",
"lines": 285,
"bytes": 13786
},
{
"path": "smm.cu",
"lines": 32,
"bytes": 1968
},
{
"path": "tc.cu",
"lines": 1095,
"bytes": 60624
},
{
"path": "tc_np.cu",
"lines": 1113,
"bytes": 62565
},
{
"path": "tcbf.cu",
"lines": 1875,
"bytes": 103515
},
{
"path": "tcbf_np.cu",
"lines": 2491,
"bytes": 140857
},
{
"path": "torch_lite.h",
"lines": 12,
"bytes": 563
}
],
"idea": "Per-shape table picks exact FP32 GEMMs (FFMA2 tiles or cuBLAS) and attention kernels; long sequences use a tcgen05 key screen, then exact softmax over only keys with nonzero weight.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.641822,
"speedup": 1.7903
}
}
},
{
"board": "L2",
"id": "070_basic_transformer_block",
"name": "Basic transformer block",
"group": "Image and video",
"op": "SDXL basic transformer block",
"direction": "forward",
"model": "stabilityai/stable-diffusion-xl-refiner-1.0",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/070_basic_transformer_block",
"language": "CUDA C++",
"files": [
{
"path": "cutlass_resid.cu",
"lines": 239,
"bytes": 13433
},
{
"path": "kernel.cu",
"lines": 7731,
"bytes": 410575
},
{
"path": "kernel.h",
"lines": 3,
"bytes": 113
},
{
"path": "main.cpp",
"lines": 12,
"bytes": 904
}
],
"idea": "Custom fp16 tcgen05 kernels for the QKV GEMM, self- and cross-attention and GEGLU FF1; CUTLASS and cuBLASLt residual GEMMs; side streams, PDL, one CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.670653,
"speedup": 1.6521
}
}
},
{
"board": "L2",
"id": "071_edit_consistency_loss_with_perceptual_weighting",
"name": "Edit consistency loss with perceptual weighting",
"group": "Image and video",
"op": "edit-consistency perceptual loss",
"direction": "forward",
"model": "stepfun-ai/Step1X-Edit-v1p2",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/071_edit_consistency_loss_with_perceptual_weighting",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 9396,
"bytes": 563660
},
{
"path": "kernel.h",
"lines": 17,
"bytes": 997
},
{
"path": "main.cpp",
"lines": 94,
"bytes": 5003
}
],
"idea": "Predicted and target images run as one batch through fp16 tcgen05 implicit-GEMM 3x3 convs (2-SM pairs, weight multicast); some loss terms run on a parallel graph branch.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.940117,
"speedup": 6.1267
}
}
},
{
"board": "L2",
"id": "072_region_aware_self_attention_with_edit_bias_backward",
"name": "Region aware self attention with edit bias backward",
"group": "Backward pass",
"op": "region-aware self-attention backward",
"direction": "backward",
"model": "stepfun-ai/Step1X-Edit-v1p2",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/072_region_aware_self_attention_with_edit_bias_backward",
"language": "CUDA C++",
"files": [
{
"path": "a_dcheck.cu",
"lines": 77,
"bytes": 4430
},
{
"path": "b_attnA.cu",
"lines": 781,
"bytes": 46560
},
{
"path": "b_dcheck.cu",
"lines": 88,
"bytes": 5358
},
{
"path": "b_dq_tc.cu",
"lines": 801,
"bytes": 47539
},
{
"path": "b_kernel.cu",
"lines": 2150,
"bytes": 126771
},
{
"path": "b_kernel.h",
"lines": 98,
"bytes": 6553
},
{
"path": "b_main.cpp",
"lines": 554,
"bytes": 35598
},
{
"path": "b_stats.h",
"lines": 65,
"bytes": 3609
},
{
"path": "b_verify.cu",
"lines": 327,
"bytes": 16095
},
{
"path": "f32x2.h",
"lines": 57,
"bytes": 2967
},
{
"path": "fast_out.h",
"lines": 52,
"bytes": 2767
},
{
"path": "ga2sm.cu",
"lines": 503,
"bytes": 29524
},
{
"path": "gh2sm.cu",
"lines": 477,
"bytes": 29293
},
{
"path": "kernel.cu",
"lines": 3661,
"bytes": 235267
},
{
"path": "kernel.h",
"lines": 122,
"bytes": 8604
},
{
"path": "main.cpp",
"lines": 858,
"bytes": 59087
}
],
"idea": "One CUDA graph per shape: cuBLASLt fp16 projection GEMMs, an mma.sync attention-backward kernel, a tcgen05 dQ kernel and bias-gradient sums; a check triggers an exact fp32 fallback.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.870734,
"speedup": 5.641
}
}
},
{
"board": "L2",
"id": "073_feedforward_mlp_backward",
"name": "Feedforward MLP backward",
"group": "Backward pass",
"op": "feed-forward MLP backward",
"direction": "backward",
"model": "stepfun-ai/Step1X-Edit",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/073_feedforward_mlp_backward",
"language": "CUDA C++",
"files": [
{
"path": "defscalar.h",
"lines": 104,
"bytes": 6328
},
{
"path": "g1f1.cu",
"lines": 10,
"bytes": 567
},
{
"path": "g1fr.cu",
"lines": 997,
"bytes": 62216
},
{
"path": "gelu0.h",
"lines": 130,
"bytes": 6017
},
{
"path": "kernel.cu",
"lines": 8073,
"bytes": 488548
},
{
"path": "kernel.h",
"lines": 13,
"bytes": 705
},
{
"path": "main.cpp",
"lines": 180,
"bytes": 11836
},
{
"path": "tmael.h",
"lines": 63,
"bytes": 4125
}
],
"idea": "Cached CUDA graph of fp16 CUTLASS tcgen05 GEMMs; extra fp8 or NVFP4 GEMMs add rounding-error terms only when input statistics need them; GELU backward fused.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.67455,
"speedup": 1.5913
}
}
},
{
"board": "L2",
"id": "074_sam_hq_mask_decoder_iou_hypernetwork_fusion_backward",
"name": "SAM hq mask decoder IoU hypernetwork fusion backward",
"group": "Backward pass",
"op": "SAM-HQ hypernetwork backward",
"direction": "backward",
"model": "syscv-community/sam-hq-vit-base",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/074_sam_hq_mask_decoder_iou_hypernetwork_fusion_backward",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 5071,
"bytes": 281199
},
{
"path": "kernel.h",
"lines": 70,
"bytes": 4129
},
{
"path": "main.cpp",
"lines": 174,
"bytes": 10934
}
],
"idea": "One persistent kernel: CTAs take ordered task tickets and wait on dependency counters; fp16 conversions and TMA-fed mma.sync GEMM tiles (a few on tcgen05), no grid barriers.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.900283,
"speedup": 8.2185
}
}
},
{
"board": "L2",
"id": "075_sam_hq_mask_decoder_two_way_transformer",
"name": "SAM hq mask decoder two way transformer",
"group": "Image and video",
"op": "SAM-HQ two-way transformer block",
"direction": "forward",
"model": "syscv-community/sam-hq-vit-base",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/075_sam_hq_mask_decoder_two_way_transformer",
"language": "CUDA C++",
"files": [
{
"path": "comb2.cuh",
"lines": 693,
"bytes": 35850
},
{
"path": "combsplit.cuh",
"lines": 173,
"bytes": 8720
},
{
"path": "front.cuh",
"lines": 198,
"bytes": 8539
},
{
"path": "front2.cuh",
"lines": 771,
"bytes": 39674
},
{
"path": "kernel.cu",
"lines": 1701,
"bytes": 87588
},
{
"path": "kernel.h",
"lines": 54,
"bytes": 3030
},
{
"path": "kernel_small.cu",
"lines": 3149,
"bytes": 157179
},
{
"path": "lin2.cuh",
"lines": 892,
"bytes": 51430
},
{
"path": "main.cpp",
"lines": 325,
"bytes": 17431
},
{
"path": "p1umma.cuh",
"lines": 1159,
"bytes": 62266
},
{
"path": "p2umma.cuh",
"lines": 1103,
"bytes": 64164
},
{
"path": "tcfg.h",
"lines": 3,
"bytes": 158
},
{
"path": "tsdbg.cuh",
"lines": 41,
"bytes": 2357
},
{
"path": "umma.cuh",
"lines": 186,
"bytes": 11577
}
],
"idea": "By shape, a PDL chain of custom kernels: tcgen05 passes for the image-side attention, mma.sync for small token GEMMs, L2 weight prefetch; CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.943878,
"speedup": 13.1402
}
}
},
{
"board": "L2",
"id": "076_sam_hq_vision_attention_with_relative_position_backward",
"name": "SAM hq vision attention with relative position backward",
"group": "Backward pass",
"op": "SAM-HQ relative-position attention backward",
"direction": "backward",
"model": "syscv-community/sam-hq-vit-base",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/076_sam_hq_vision_attention_with_relative_position_backward",
"language": "CUDA C++",
"files": [
{
"path": "gemm.cu",
"lines": 1530,
"bytes": 86515
},
{
"path": "kernel.cu",
"lines": 8011,
"bytes": 426260
},
{
"path": "kernel.h",
"lines": 243,
"bytes": 15607
},
{
"path": "lt.cu",
"lines": 116,
"bytes": 6466
},
{
"path": "main.cpp",
"lines": 1042,
"bytes": 54873
},
{
"path": "mega.cu",
"lines": 1564,
"bytes": 84081
},
{
"path": "proj.cu",
"lines": 3693,
"bytes": 202617
}
],
"idea": "Rel-pos bias folded into QK^T via extra head-dim columns (rel logits on Q, one-hot on K); TMA + tcgen05 attention and projection kernels in a CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.855844,
"speedup": 5.4852
}
}
},
{
"board": "L2",
"id": "077_sam_hq_vision_encoder_window_partition_attention",
"name": "SAM hq vision encoder window partition attention",
"group": "Image and video",
"op": "SAM-HQ windowed attention block",
"direction": "forward",
"model": "syscv-community/sam-hq-vit-base",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/077_sam_hq_vision_encoder_window_partition_attention",
"language": "CUDA C++",
"files": [
{
"path": "fp32path.cu",
"lines": 221,
"bytes": 10902
},
{
"path": "gemm.cu",
"lines": 905,
"bytes": 55568
},
{
"path": "gemm.h",
"lines": 12,
"bytes": 1052
},
{
"path": "gemm1.cu",
"lines": 1082,
"bytes": 67547
},
{
"path": "gemm1.h",
"lines": 13,
"bytes": 1176
},
{
"path": "kernel.cu",
"lines": 1660,
"bytes": 99606
},
{
"path": "kernel.h",
"lines": 44,
"bytes": 3591
},
{
"path": "main.cpp",
"lines": 575,
"bytes": 33867
},
{
"path": "proj.cu",
"lines": 349,
"bytes": 19132
},
{
"path": "proj.h",
"lines": 8,
"bytes": 622
}
],
"idea": "LN1 folded into a 2-SM tcgen05 QKV GEMM, tcgen05 window attention with rel-pos bias via an augmented query, cuBLASLt proj, tcgen05 MLP GEMMs fusing LN2, GELU and residual.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.931478,
"speedup": 6.3137
}
}
},
{
"board": "L2",
"id": "078_fused_final_layer_upsample_with_adaptive_norm",
"name": "Fused final layer upsample with adaptive norm",
"group": "Image and video",
"op": "HunyuanImage final layer upsample + adaptive norm",
"direction": "forward",
"model": "tencent/HunyuanImage-3.0",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/078_fused_final_layer_upsample_with_adaptive_norm",
"language": "CUDA C++",
"files": [
{
"path": "conv2sm.cu",
"lines": 882,
"bytes": 51076
},
{
"path": "cudnn_conv.h",
"lines": 372,
"bytes": 17264
},
{
"path": "cutlass_conv.cu",
"lines": 33,
"bytes": 2570
},
{
"path": "cutlass_conv1.cu",
"lines": 101,
"bytes": 6152
},
{
"path": "cutlass_conv1_dyn.cu",
"lines": 89,
"bytes": 5220
},
{
"path": "cutlass_conv_192.cu",
"lines": 17,
"bytes": 1234
},
{
"path": "cutlass_conv_192f.cu",
"lines": 14,
"bytes": 882
},
{
"path": "cutlass_conv_c24.cu",
"lines": 13,
"bytes": 653
},
{
"path": "cutlass_conv_cfg.h",
"lines": 197,
"bytes": 11381
},
{
"path": "cutlass_conv_f.cu",
"lines": 27,
"bytes": 2361
},
{
"path": "cutlass_conv_fsk.cu",
"lines": 18,
"bytes": 1422
},
{
"path": "cutlass_conv_sk.cu",
"lines": 19,
"bytes": 1332
},
{
"path": "kernel.cu",
"lines": 2368,
"bytes": 123622
},
{
"path": "kernel.h",
"lines": 81,
"bytes": 7141
},
{
"path": "main.cpp",
"lines": 932,
"bytes": 60509
},
{
"path": "pins.h",
"lines": 41,
"bytes": 2402
}
],
"idea": "NHWC data: cuDNN first conv; a 2-SM tcgen05 kernel fuses conv2, skip conv, biases and GroupNorm stats; the mma.sync last conv applies GroupNorm + SiLU on load.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.797338,
"speedup": 2.2613
}
}
},
{
"board": "L2",
"id": "079_git_vision_encoder_layer",
"name": "Git vision encoder layer",
"group": "Image and video",
"op": "ViT encoder layer (MaskGIT)",
"direction": "forward",
"model": "valhalla/maskgit-imagenet-soft-code-34k",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/079_git_vision_encoder_layer",
"language": "CUDA C++",
"files": [
{
"path": "attn.cu",
"lines": 790,
"bytes": 47465
},
{
"path": "attn2.cu",
"lines": 537,
"bytes": 33620
},
{
"path": "attn2c.cu",
"lines": 1978,
"bytes": 137630
},
{
"path": "attn2csk.cu",
"lines": 752,
"bytes": 41180
},
{
"path": "attn2d.cu",
"lines": 645,
"bytes": 35660
},
{
"path": "attn2e.cu",
"lines": 612,
"bytes": 35321
},
{
"path": "attn3l.cu",
"lines": 621,
"bytes": 35105
},
{
"path": "attn4.cu",
"lines": 570,
"bytes": 30480
},
{
"path": "attn_ks.cu",
"lines": 388,
"bytes": 21889
},
{
"path": "attn_med.cu",
"lines": 214,
"bytes": 11350
},
{
"path": "attn_short.cu",
"lines": 207,
"bytes": 10701
},
{
"path": "attn_stc.cu",
"lines": 1880,
"bytes": 110272
},
{
"path": "epi_f32x2.h",
"lines": 67,
"bytes": 3333
},
{
"path": "fc2tc.cu",
"lines": 392,
"bytes": 23262
},
{
"path": "gemm_fc1.cu",
"lines": 1195,
"bytes": 80555
},
{
"path": "gemm_fc2.cu",
"lines": 490,
"bytes": 35282
},
{
"path": "kernel.cu",
"lines": 1609,
"bytes": 95334
},
{
"path": "kernel.h",
"lines": 241,
"bytes": 24106
},
{
"path": "ln2gemm.cu",
"lines": 344,
"bytes": 19482
},
{
"path": "lngemm.cu",
"lines": 228,
"bytes": 12094
},
{
"path": "lnqkv_tc.cu",
"lines": 516,
"bytes": 29927
},
{
"path": "lnqkv_tf32.cu",
"lines": 284,
"bytes": 15758
},
{
"path": "main.cpp",
"lines": 1525,
"bytes": 111814
},
{
"path": "qkvtc.cu",
"lines": 257,
"bytes": 13991
},
{
"path": "rev_sched.h",
"lines": 82,
"bytes": 4545
},
{
"path": "tune_table.h",
"lines": 111,
"bytes": 12782
},
{
"path": "w32gemm.cu",
"lines": 343,
"bytes": 19657
}
],
"idea": "Per-shape CUDA graph: fp16 weights, LayerNorm kernels that also write residual + bias seeds, CUTLASS/cuBLAS GEMMs that add onto them (fc1 with quickGELU epilogue), FA4-style tcgen05 attention",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.631628,
"speedup": 1.5106
}
}
},
{
"board": "L2",
"id": "080_moe_complete_layer_with_shared_expert_backward",
"name": "MoE complete layer with shared expert backward",
"group": "Backward pass",
"op": "MoE layer with shared expert backward",
"direction": "backward",
"model": "zai-org/GLM-4.5-Air",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/080_moe_complete_layer_with_shared_expert_backward",
"language": "CUDA C++",
"files": [
{
"path": "common.cuh",
"lines": 578,
"bytes": 34261
},
{
"path": "kernel.cu",
"lines": 694,
"bytes": 37575
},
{
"path": "kernel.h",
"lines": 166,
"bytes": 12776
},
{
"path": "kernel2.cu",
"lines": 256,
"bytes": 15335
},
{
"path": "kernel_3b.cu",
"lines": 312,
"bytes": 18743
},
{
"path": "kernel_evt.cu",
"lines": 287,
"bytes": 17356
},
{
"path": "kernel_g1x.cu",
"lines": 84,
"bytes": 6209
},
{
"path": "kernel_sk.cu",
"lines": 81,
"bytes": 5865
},
{
"path": "kernel_wsk.cu",
"lines": 8,
"bytes": 602
},
{
"path": "main.cpp",
"lines": 933,
"bytes": 52553
},
{
"path": "mega.cuh",
"lines": 369,
"bytes": 16972
}
],
"idea": "CUTLASS tcgen05 GEMMs on four streams in one CUDA graph: down-proj grad with SwiGLU backward, weight grads, a warp-per-token router kernel, one stacked input-grad GEMM.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.763665,
"speedup": 2.3977
}
}
},
{
"board": "L2",
"id": "081_moe_sparse_expert_dispatch",
"name": "MoE sparse expert dispatch",
"group": "MLP and MoE",
"op": "MoE block: sigmoid router + top-8 + experts + shared expert",
"direction": "forward",
"model": "zai-org/GLM-4.5-Air",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/081_moe_sparse_expert_dispatch",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 3728,
"bytes": 253978
},
{
"path": "kernel.h",
"lines": 84,
"bytes": 5597
},
{
"path": "main.cpp",
"lines": 344,
"bytes": 22191
}
],
"idea": "tcgen05 router GEMM, warp top-8 and token permute, then one persistent 2-CTA tcgen05 grouped GEMM over shared then routed gate/up and down tiles with atomic adds; CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.983124,
"speedup": 5.9441
}
}
},
{
"board": "L2",
"id": "082_moe_layer_complete_forward_with_residual",
"name": "MoE layer complete forward with residual",
"group": "MLP and MoE",
"op": "full MoE layer: sigmoid + bias router, group top-8, 160 experts, shared expert, residual",
"direction": "forward",
"model": "zai-org/GLM-4.7",
"workloads": 16,
"kernel": {
"dir": "kernels/L2/082_moe_layer_complete_forward_with_residual",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 3439,
"bytes": 227525
},
{
"path": "kernel.h",
"lines": 14,
"bytes": 415
},
{
"path": "main.cpp",
"lines": 53,
"bytes": 3877
}
],
"idea": "tcgen05 router (split-K, DSMEM reduce) with top-8 and expert lists; one persistent 2-CTA tcgen05 kernel runs all gate/up, then down tiles, adding bf16 results atomically.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.996533,
"speedup": 6.1268
}
}
},
{
"board": "Quant",
"id": "001_fp8_attention_output_projection",
"name": "FP8 attention output projection",
"group": "Projections and GEMM",
"op": "FP8 o_proj GEMM + bias (60x128 -> 7680)",
"direction": "forward",
"model": "Qwen/Qwen3-VL-30B-A3B-Instruct-FP8",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/001_fp8_attention_output_projection",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 706,
"bytes": 39855
},
{
"path": "kernel.h",
"lines": 14,
"bytes": 1029
},
{
"path": "kernel_fused.cu",
"lines": 596,
"bytes": 34494
},
{
"path": "kernel_mid.cu",
"lines": 6413,
"bytes": 384185
},
{
"path": "kernel_mid.h",
"lines": 29,
"bytes": 1742
},
{
"path": "main.cpp",
"lines": 68,
"bytes": 3937
}
],
"idea": "Small M: the GEMM TMA-loads bf16 weights and quantizes each block to FP8 in smem just before tcgen05 MMA; larger M: quant kernels, then a tcgen05 FP8 GEMM.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.770757,
"speedup": 2.172
}
}
},
{
"board": "Quant",
"id": "002_fp8_attention_qkv_projection",
"name": "FP8 attention QKV projection",
"group": "Projections and GEMM",
"op": "FP8 QKV projection (bias) + QK-RMSNorm",
"direction": "forward",
"model": "Qwen/Qwen3-VL-30B-A3B-Instruct-FP8",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/002_fp8_attention_qkv_projection",
"language": "CUDA C++",
"files": [
{
"path": "gemm1.cu",
"lines": 1917,
"bytes": 115305
},
{
"path": "kernel.cu",
"lines": 8439,
"bytes": 556250
},
{
"path": "kernel.h",
"lines": 153,
"bytes": 7406
},
{
"path": "l2diag.cu",
"lines": 93,
"bytes": 4880
},
{
"path": "main.cpp",
"lines": 314,
"bytes": 17868
}
],
"idea": "Quantize kernel (FP8 inputs and weights), then a block-scaled FP8 tcgen05 GEMM (2-SM pairs) with bias + QK-RMSNorm epilogue; small M uses split-K.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.81705,
"speedup": 2.9219
}
}
},
{
"board": "Quant",
"id": "003_fp8_mlp_gate_up_projection",
"name": "FP8 MLP gate up projection",
"group": "MLP and MoE",
"op": "FP8 gate+up GEMMs + SiLU gating (pre-quantized inputs)",
"direction": "forward",
"model": "Qwen/Qwen3-VL-30B-A3B-Instruct-FP8",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/003_fp8_mlp_gate_up_projection",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 1493,
"bytes": 90391
},
{
"path": "kernel.h",
"lines": 38,
"bytes": 3036
},
{
"path": "kernel2.cu",
"lines": 2752,
"bytes": 175527
},
{
"path": "main.cpp",
"lines": 7,
"bytes": 447
}
],
"idea": "Persistent FP8 tcgen05 GEMM, mostly 2-SM pairs: one MMA covers matching gate and up rows; block scales applied per K block from TMEM; SiLU*up epilogue.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.865792,
"speedup": 2.3903
}
}
},
{
"board": "Quant",
"id": "004_fp8_moe_expert_linear",
"name": "FP8 MoE expert linear",
"group": "MLP and MoE",
"op": "FP8 single-expert MLP: gate_up + SiLU + down, x routing weight",
"direction": "forward",
"model": "Qwen/Qwen3-VL-30B-A3B-Instruct-FP8",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/004_fp8_moe_expert_linear",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 641,
"bytes": 33934
},
{
"path": "kernel.h",
"lines": 27,
"bytes": 1935
},
{
"path": "kernel_impl.cuh",
"lines": 2861,
"bytes": 165269
},
{
"path": "kspec0.cu",
"lines": 35,
"bytes": 2656
},
{
"path": "kspec1.cu",
"lines": 36,
"bytes": 2834
},
{
"path": "kspec2.cu",
"lines": 34,
"bytes": 2861
},
{
"path": "kspec3.cu",
"lines": 35,
"bytes": 2722
},
{
"path": "main.cpp",
"lines": 192,
"bytes": 7810
}
],
"idea": "FP8 block-quant kernel, then one persistent tcgen05 kernel runs both GEMMs from a dynamic tile queue, scaling each K block in fp32 and fusing SiLU * up with requant.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.910758,
"speedup": 6.8497
}
}
},
{
"board": "Quant",
"id": "005_fp8_moe_router_projection",
"name": "FP8 MoE router projection",
"group": "MLP and MoE",
"op": "FP8 MoE router GEMM (experts padded to 128)",
"direction": "forward",
"model": "Qwen/Qwen3-VL-30B-A3B-Instruct-FP8",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/005_fp8_moe_router_projection",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 1809,
"bytes": 111636
},
{
"path": "kernel.h",
"lines": 5,
"bytes": 315
},
{
"path": "main.cpp",
"lines": 29,
"bytes": 1796
}
],
"idea": "tcgen05 FP8 MMAs into a fresh TMEM accumulator per K block, then scaled and summed in fp32 registers; split-K over a cluster, reduced through DSMEM.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.849213,
"speedup": 4.69
}
}
},
{
"board": "Quant",
"id": "006_fp8_vision_attention_output_projection",
"name": "FP8 vision attention output projection",
"group": "Image and video",
"op": "FP8 vision o_proj GEMM (scales given)",
"direction": "forward",
"model": "Qwen/Qwen3-VL-30B-A3B-Instruct-FP8",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/006_fp8_vision_attention_output_projection",
"language": "CUDA C++",
"files": [
{
"path": "cutlass_gemm.cu",
"lines": 112,
"bytes": 5566
},
{
"path": "kernel.cu",
"lines": 4366,
"bytes": 326632
},
{
"path": "kernel.h",
"lines": 16,
"bytes": 1108
},
{
"path": "main.cpp",
"lines": 209,
"bytes": 11740
}
],
"idea": "Quant kernel, then (PDL) a persistent warp-specialized tcgen05 FP8 GEMM scaling each K block in fp32; small sizes use one fused kernel or a cluster split-K GEMM.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.889543,
"speedup": 6.996
}
}
},
{
"board": "Quant",
"id": "007_fp8_vision_attention_qkv_projection",
"name": "FP8 vision attention QKV projection",
"group": "Image and video",
"op": "FP8 vision QKV projection + bias",
"direction": "forward",
"model": "Qwen/Qwen3-VL-30B-A3B-Instruct-FP8",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/007_fp8_vision_attention_qkv_projection",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 7481,
"bytes": 486940
},
{
"path": "kernel.h",
"lines": 7,
"bytes": 492
},
{
"path": "main.cpp",
"lines": 187,
"bytes": 8639
},
{
"path": "tune_table.h",
"lines": 136,
"bytes": 7526
}
],
"idea": "Quant kernel, then a persistent tcgen05 FP8 GEMM that scales each K block in fp32, adds bias and TMA-stores bf16 into Q, K, V; some small sizes fuse both.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.80261,
"speedup": 3.2254
}
}
},
{
"board": "Quant",
"id": "008_nvfp4_multimodal_embedding_projection",
"name": "NVFP4 multimodal embedding projection",
"group": "Image and video",
"op": "NVFP4 vision projection + merge into text embeddings",
"direction": "forward",
"model": "cybermotaz/Qwen3-VL-32B-Instruct-NVFP4",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/008_nvfp4_multimodal_embedding_projection",
"language": "CUDA C++",
"files": [
{
"path": "gemm_regstore.cu",
"lines": 1362,
"bytes": 81098
},
{
"path": "kernel.cu",
"lines": 4038,
"bytes": 211841
},
{
"path": "kernel.h",
"lines": 91,
"bytes": 5209
},
{
"path": "main.cpp",
"lines": 648,
"bytes": 37247
},
{
"path": "scatter_epilogue.hpp",
"lines": 1756,
"bytes": 86671
},
{
"path": "sm100_gemm_preb.hpp",
"lines": 1485,
"bytes": 76302
}
],
"idea": "Prep kernel quantizes to NVFP4 and maps vision rows; a CUTLASS block-scaled tcgen05 GEMM scatters its rows into place while text rows are gathered alongside.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.920833,
"speedup": 8.6491
}
}
},
{
"board": "Quant",
"id": "009_nvfp4_vision_temporal_patch_merge_with_projection",
"name": "NVFP4 vision temporal patch merge with projection",
"group": "Image and video",
"op": "NVFP4 temporal patch merge + projection",
"direction": "forward",
"model": "cybermotaz/Qwen3-VL-32B-Instruct-NVFP4",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/009_nvfp4_vision_temporal_patch_merge_with_projection",
"language": "CUDA C++",
"files": [
{
"path": "builder_npad.h",
"lines": 181,
"bytes": 11935
},
{
"path": "collective_npad.h",
"lines": 1084,
"bytes": 52531
},
{
"path": "epi_hoist.h",
"lines": 1558,
"bytes": 76970
},
{
"path": "fusion_evt.h",
"lines": 249,
"bytes": 13808
},
{
"path": "gemm.cuh",
"lines": 343,
"bytes": 19118
},
{
"path": "gemm_common.h",
"lines": 410,
"bytes": 27005
},
{
"path": "gemm_epi8.h",
"lines": 423,
"bytes": 28721
},
{
"path": "gemm_hints.h",
"lines": 309,
"bytes": 18459
},
{
"path": "gemm_patch.h",
"lines": 155,
"bytes": 8227
},
{
"path": "kernel.cu",
"lines": 2340,
"bytes": 160698
},
{
"path": "kernel.h",
"lines": 9,
"bytes": 430
},
{
"path": "kt_probe.h",
"lines": 23,
"bytes": 1439
},
{
"path": "main.cpp",
"lines": 41,
"bytes": 2271
},
{
"path": "probe2.h",
"lines": 24,
"bytes": 1533
},
{
"path": "quant.cuh",
"lines": 684,
"bytes": 39190
},
{
"path": "small.cu",
"lines": 244,
"bytes": 14711
},
{
"path": "small.h",
"lines": 47,
"bytes": 1579
},
{
"path": "small_preb.cu",
"lines": 268,
"bytes": 15140
}
],
"idea": "Merge as a free reshape; a persistent kernel quantizes to NVFP4 (global amax via a grid barrier), then a PDL-chained CUTLASS block-scaled FP4 GEMM adds bias",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.974141,
"speedup": 24.2244
}
}
},
{
"board": "Quant",
"id": "010_fp8_attention_output_projection",
"name": "FP8 attention output projection",
"group": "Projections and GEMM",
"op": "FP8 o_proj GEMM (16384 -> 7168)",
"direction": "forward",
"model": "deepseek-ai/DeepSeek-R1-0528",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/010_fp8_attention_output_projection",
"language": "CUDA C++",
"files": [
{
"path": "clk.cu",
"lines": 184,
"bytes": 9884
},
{
"path": "dtma.cu",
"lines": 58,
"bytes": 3375
},
{
"path": "fq.cu",
"lines": 493,
"bytes": 27063
},
{
"path": "kernel.cu",
"lines": 2932,
"bytes": 169971
},
{
"path": "kernel.h",
"lines": 47,
"bytes": 3126
},
{
"path": "main.cpp",
"lines": 194,
"bytes": 10762
},
{
"path": "mb.cu",
"lines": 188,
"bytes": 11605
},
{
"path": "proto.cu",
"lines": 3353,
"bytes": 205693
},
{
"path": "rt_gemm.cu",
"lines": 532,
"bytes": 28245
},
{
"path": "sm100_blockwise_fast.hpp",
"lines": 1345,
"bytes": 60548
}
],
"idea": "One fused kernel quantizes x and W to FP8 (blockwise scales); then a hand-written 1- or 2-SM tcgen05 blockwise FP8 GEMM picked by shape, launched with PDL.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.902272,
"speedup": 4.4961
}
}
},
{
"board": "Quant",
"id": "011_fp8_moe_gate_routing",
"name": "FP8 MoE gate routing",
"group": "MLP and MoE",
"op": "FP8 router GEMM + sigmoid + bias + group top-k (8 groups / top-4 / top-8)",
"direction": "forward",
"model": "deepseek-ai/DeepSeek-R1-0528",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/011_fp8_moe_gate_routing",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 3942,
"bytes": 285970
},
{
"path": "kernel.h",
"lines": 14,
"bytes": 934
},
{
"path": "main.cpp",
"lines": 710,
"bytes": 48075
}
],
"idea": "Three PDL kernels: weight to FP8; a split-K tcgen05 FP8 GEMM that quantizes x in-kernel and applies block scales per K block; then a warp-per-token top-k router.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.940924,
"speedup": 13.7151
}
}
},
{
"board": "Quant",
"id": "012_fp8_shared_expert_mlp",
"name": "FP8 shared expert MLP",
"group": "MLP and MoE",
"op": "FP8 shared-expert SwiGLU MLP",
"direction": "forward",
"model": "deepseek-ai/DeepSeek-R1-0528",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/012_fp8_shared_expert_mlp",
"language": "CUDA C++",
"files": [
{
"path": "gk.cu",
"lines": 4496,
"bytes": 250210
},
{
"path": "kernel.cu",
"lines": 1247,
"bytes": 63023
},
{
"path": "kernel.h",
"lines": 102,
"bytes": 6822
},
{
"path": "main.cpp",
"lines": 585,
"bytes": 32469
}
],
"idea": "Fused FP8 quant of x and weights; tcgen05 gate/up GEMM with SwiGLU and FP8 re-quant fused in, then the down GEMM; hand-written or CUTLASS per M, PDL.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.987732,
"speedup": 48.6599
}
}
},
{
"board": "Quant",
"id": "013_fp8_mla_kv_compression_projection",
"name": "FP8 MLA KV compression projection",
"group": "Projections and GEMM",
"op": "FP8 MLA KV path: kv_a GEMM -> RMSNorm -> kv_b GEMM",
"direction": "forward",
"model": "deepseek-ai/DeepSeek-V3.1-Terminus",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/013_fp8_mla_kv_compression_projection",
"language": "CUDA C++",
"files": [
{
"path": "graph.cu",
"lines": 239,
"bytes": 14556
},
{
"path": "kernel.cu",
"lines": 4119,
"bytes": 254640
},
{
"path": "kernel.h",
"lines": 19,
"bytes": 1221
},
{
"path": "main.cpp",
"lines": 227,
"bytes": 12826
}
],
"idea": "Four PDL-chained kernels in a CUDA graph: FP8 quant, split-K tcgen05 kv_a GEMM, RMSNorm + requant (W_b quant overlapped), tcgen05 kv_b GEMM; per-K-block fp32 scaling.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.939813,
"speedup": 9.9737
}
}
},
{
"board": "Quant",
"id": "014_fp8_yarn_rope_embedding",
"name": "FP8 YaRN RoPE embedding",
"group": "Attention",
"op": "YaRN RoPE cos/sin table (DeepSeek)",
"direction": "forward",
"model": "deepseek-ai/DeepSeek-V3.1-Terminus",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/014_fp8_yarn_rope_embedding",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 2425,
"bytes": 161386
},
{
"path": "kernel.h",
"lines": 9,
"bytes": 528
},
{
"path": "main.cpp",
"lines": 145,
"bytes": 7922
}
],
"idea": "The FP8 step reduces exactly to a per-column constant times the position: one divide plus fast sincos per thread; per-length kernels launched from a CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": false
}
}
},
{
"board": "Quant",
"id": "015_fp8_mla_attention_output_projection",
"name": "FP8 MLA attention output projection",
"group": "Projections and GEMM",
"op": "FP8 MLA o_proj GEMM (pre-quantized act + weight)",
"direction": "forward",
"model": "deepseek-ai/DeepSeek-V3",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/015_fp8_mla_attention_output_projection",
"language": "CUDA C++",
"files": [
{
"path": "fp24_push.h",
"lines": 75,
"bytes": 3877
},
{
"path": "kernel.cu",
"lines": 1110,
"bytes": 52765
},
{
"path": "kernel.h",
"lines": 25,
"bytes": 1618
},
{
"path": "kernel_l2sk.cu",
"lines": 643,
"bytes": 31234
},
{
"path": "kernel_l2sk.h",
"lines": 6,
"bytes": 354
},
{
"path": "kernel_l2x.cu",
"lines": 456,
"bytes": 22100
},
{
"path": "kernel_l2x.h",
"lines": 6,
"bytes": 351
},
{
"path": "kernel_large.cu",
"lines": 854,
"bytes": 43479
},
{
"path": "kernel_large.h",
"lines": 18,
"bytes": 915
},
{
"path": "kernel_large2.cu",
"lines": 1702,
"bytes": 92887
},
{
"path": "kernel_large2.h",
"lines": 25,
"bytes": 1562
},
{
"path": "kernel_largev.cu",
"lines": 524,
"bytes": 26021
},
{
"path": "kernel_largev.h",
"lines": 7,
"bytes": 412
},
{
"path": "kernel_m128c.cu",
"lines": 956,
"bytes": 54058
},
{
"path": "kernel_m128c.h",
"lines": 13,
"bytes": 930
},
{
"path": "kernel_m128x2.cu",
"lines": 530,
"bytes": 26276
},
{
"path": "kernel_m128x2.h",
"lines": 7,
"bytes": 459
},
{
"path": "kernel_m256.cu",
"lines": 863,
"bytes": 46185
},
{
"path": "kernel_m256.h",
"lines": 9,
"bytes": 525
},
{
"path": "kernel_m256c.cu",
"lines": 666,
"bytes": 34732
},
{
"path": "kernel_m256c.h",
"lines": 11,
"bytes": 750
},
{
"path": "kernel_m256p.cu",
"lines": 768,
"bytes": 42064
},
{
"path": "kernel_m256p.h",
"lines": 7,
"bytes": 493
},
{
"path": "kernel_m256v.cu",
"lines": 864,
"bytes": 44006
},
{
"path": "kernel_m256v.h",
"lines": 14,
"bytes": 810
},
{
"path": "kernel_m256x2.cu",
"lines": 526,
"bytes": 25907
},
{
"path": "kernel_m256x2.h",
"lines": 7,
"bytes": 473
},
{
"path": "kernel_sk.cu",
"lines": 786,
"bytes": 39912
},
{
"path": "kernel_sk.h",
"lines": 6,
"bytes": 396
},
{
"path": "kernel_sk2c.cu",
"lines": 1568,
"bytes": 93502
},
{
"path": "kernel_sk2c.h",
"lines": 20,
"bytes": 1424
},
{
"path": "main.cpp",
"lines": 694,
"bytes": 39827
},
{
"path": "raw_push.h",
"lines": 34,
"bytes": 1767
},
{
"path": "tmap_cache.h",
"lines": 46,
"bytes": 1693
}
],
"idea": "FP8 tcgen05 GEMMs that rescale each K-block partial by the fp32 block scales in registers; warp-specialized kernels picked by M (swap-AB when tiny, split-K tails)",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.870918,
"speedup": 2.5121
}
}
},
{
"board": "Quant",
"id": "016_fp8_multi_latent_attention_qkv_projection",
"name": "FP8 multi latent attention QKV projection",
"group": "Projections and GEMM",
"op": "FP8 MLA Q and KV projections with both latent RMSNorms",
"direction": "forward",
"model": "deepseek-ai/DeepSeek-V3",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/016_fp8_multi_latent_attention_qkv_projection",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 6579,
"bytes": 377078
},
{
"path": "kernel.h",
"lines": 153,
"bytes": 13036
},
{
"path": "main.cpp",
"lines": 1049,
"bytes": 70841
}
],
"idea": "Quantizes input and weights to block-scaled FP8; FP8 down-proj GEMM, latent RMSNorms with requant, persistent tcgen05 FP8 up-proj GEMMs; two streams in one CUDA graph",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.941222,
"speedup": 9.194
}
}
},
{
"board": "Quant",
"id": "017_fp8_shared_expert_mlp",
"name": "FP8 shared expert MLP",
"group": "MLP and MoE",
"op": "FP8 shared-expert SwiGLU MLP (weight scales given)",
"direction": "forward",
"model": "deepseek-ai/DeepSeek-V3",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/017_fp8_shared_expert_mlp",
"language": "CUDA C++",
"files": [
{
"path": "bw2wg.h",
"lines": 4160,
"bytes": 275669
},
{
"path": "kernel.cu",
"lines": 1766,
"bytes": 101236
},
{
"path": "kernel.h",
"lines": 21,
"bytes": 1559
},
{
"path": "main.cpp",
"lines": 55,
"bytes": 2794
},
{
"path": "smallm.cu",
"lines": 1308,
"bytes": 70433
}
],
"idea": "Quant kernels feed blockwise-scaled FP8 tcgen05 GEMMs (CUTLASS and custom); gate+up as one GEMM, SwiGLU + FP8 requant fused at larger M; small M streams weights; PDL.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.945265,
"speedup": 9.3988
}
}
},
{
"board": "Quant",
"id": "018_nvfp4_attention_output_projection_with_residual",
"name": "NVFP4 attention output projection with residual",
"group": "Projections and GEMM",
"op": "NVFP4 o_proj GEMM + residual",
"direction": "forward",
"model": "mratsim/Nova-70B-NVFP4",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/018_nvfp4_attention_output_projection_with_residual",
"language": "CUDA C++",
"files": [
{
"path": "collective_anyn.hpp",
"lines": 1102,
"bytes": 53020
},
{
"path": "kernel.cu",
"lines": 4461,
"bytes": 227878
},
{
"path": "kernel.h",
"lines": 28,
"bytes": 1386
},
{
"path": "main.cpp",
"lines": 329,
"bytes": 15889
}
],
"idea": "Front kernel quantizes to NVFP4 (global amax by grid barrier, or a DSMEM cluster gather when small); CUTLASS block-scaled FP4 GEMM adds the residual in its epilogue",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.938069,
"speedup": 12.6459
}
}
},
{
"board": "Quant",
"id": "019_nvfp4_grouped_query_attention",
"name": "NVFP4 grouped query attention",
"group": "Attention",
"op": "NVFP4 GQA attention block: QKV, RoPE, attention, o_proj",
"direction": "forward",
"model": "mratsim/Nova-70B-NVFP4",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/019_nvfp4_grouped_query_attention",
"language": "CUDA C++",
"files": [
{
"path": "array_pre.hpp",
"lines": 1598,
"bytes": 73332
},
{
"path": "cutlass/gemm/collective/builders/sm100_common.inl",
"lines": 1010,
"bytes": 46550
},
{
"path": "cutlass/gemm/collective/sm100_blockscaled_mma_array_warpspecialized.hpp",
"lines": 1372,
"bytes": 64902
},
{
"path": "cutlass/gemm/collective/sm100_blockscaled_mma_warpspecialized.hpp",
"lines": 1125,
"bytes": 52635
},
{
"path": "kernel.cu",
"lines": 9777,
"bytes": 599675
},
{
"path": "kernel.h",
"lines": 123,
"bytes": 8664
},
{
"path": "main.cpp",
"lines": 306,
"bytes": 17218
}
],
"idea": "CUTLASS block-scaled NVFP4 tcgen05 GEMMs (Q/K/V as one grouped GEMM), custom amax and FP4 quant kernels, persistent warp-specialized tcgen05 causal attention; PDL between launches.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.956118,
"speedup": 13.3457
}
}
},
{
"board": "Quant",
"id": "020_nvfp4_linear_layer",
"name": "NVFP4 linear layer",
"group": "Projections and GEMM",
"op": "NVFP4 linear (8192 x 8192)",
"direction": "forward",
"model": "mratsim/Nova-70B-NVFP4",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/020_nvfp4_linear_layer",
"language": "CUDA C++",
"files": [
{
"path": "cute/arch/copy_sm90_tma.hpp",
"lines": 1511,
"bytes": 58872
},
{
"path": "cutlass/arch/barrier.h",
"lines": 957,
"bytes": 32060
},
{
"path": "cutlass/gemm/collective/builders/sm100_common.inl",
"lines": 1011,
"bytes": 46588
},
{
"path": "cutlass/gemm/collective/sm100_blockscaled_mma_warpspecialized.hpp",
"lines": 1294,
"bytes": 63087
},
{
"path": "cutlass_api.h",
"lines": 35,
"bytes": 2424
},
{
"path": "cutlass_cfg.cuh",
"lines": 290,
"bytes": 15875
},
{
"path": "cutlass_gemm_b.cu",
"lines": 20,
"bytes": 984
},
{
"path": "cutlass_gemm_h.cu",
"lines": 28,
"bytes": 1474
},
{
"path": "kernel.cu",
"lines": 3136,
"bytes": 167106
},
{
"path": "kernel.h",
"lines": 57,
"bytes": 4100
},
{
"path": "main.cpp",
"lines": 675,
"bytes": 32987
},
{
"path": "nvfp4_nosmem_epi.cuh",
"lines": 278,
"bytes": 14301
},
{
"path": "nvfp4_tma_epi.cuh",
"lines": 244,
"bytes": 13052
}
],
"idea": "Quant kernel (grid barrier for the global amax) packs x to NVFP4 + scales, then a CUTLASS block-scaled tcgen05 GEMM; small M uses a custom weight-stationary GEMM.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.919794,
"speedup": 9.3304
}
}
},
{
"board": "Quant",
"id": "021_fp8_mamba2_in_projection",
"name": "FP8 Mamba2 in projection",
"group": "State space and conv",
"op": "FP8 Mamba2 in-projection GEMM",
"direction": "forward",
"model": "nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-FP8",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/021_fp8_mamba2_in_projection",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 9359,
"bytes": 504457
},
{
"path": "kernel.h",
"lines": 17,
"bytes": 1225
},
{
"path": "main.cpp",
"lines": 406,
"bytes": 18905
}
],
"idea": "Quantize kernel plus a persistent block-scaled FP8 tcgen05 GEMM, PDL-chained and graph-launched; for small M the GEMM quantizes the bf16 weight on chip.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.852468,
"speedup": 3.2187
}
}
},
{
"board": "Quant",
"id": "022_fp8_mamba2_out_projection",
"name": "FP8 Mamba2 out projection",
"group": "State space and conv",
"op": "FP8 Mamba2 out-projection GEMM (pre-quantized)",
"direction": "forward",
"model": "nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-FP8",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/022_fp8_mamba2_out_projection",
"language": "CuTe DSL",
"files": [
{
"path": "main.py",
"lines": 5615,
"bytes": 397963
}
],
"idea": "CuTe DSL blockwise FP8 GEMM built on the CUTLASS example: persistent warp-specialized tcgen05 (2-SM and 1-SM variants), per-K-block fp32 scaling; variant picked by M.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.847577,
"speedup": 3.7843
}
}
},
{
"board": "Quant",
"id": "023_fp8_mamba2_ssm_discretization",
"name": "FP8 Mamba2 SSM discretization",
"group": "State space and conv",
"op": "FP8 Mamba2 SSM discretisation",
"direction": "forward",
"model": "nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-FP8",
"workloads": 6,
"kernel": {
"dir": "kernels/Quant/023_fp8_mamba2_ssm_discretization",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 1863,
"bytes": 104766
},
{
"path": "kernel.h",
"lines": 12,
"bytes": 615
},
{
"path": "main.cpp",
"lines": 145,
"bytes": 8627
}
],
"idea": "One fused kernel: per-row and weight amax, e4m3 quantize, FP8 mma.sync dt projection, softplus + clamp, then dA and a wide vector-store dB stream",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.819819,
"speedup": 4.6914
}
}
},
{
"board": "Quant",
"id": "024_nvfp4_attention_output_projection",
"name": "NVFP4 attention output projection",
"group": "Projections and GEMM",
"op": "NVFP4 o_proj GEMM (FP32 input)",
"direction": "forward",
"model": "nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-NVFP4",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/024_nvfp4_attention_output_projection",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 8897,
"bytes": 546261
},
{
"path": "kernel.h",
"lines": 42,
"bytes": 1190
},
{
"path": "main.cpp",
"lines": 94,
"bytes": 5913
}
],
"idea": "Fused amax + NVFP4 quantize (grid barrier), then a tcgen05 mxf4nvf4 block-scaled GEMM (1- or 2-CTA); some routes do both in one launch; route by M.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.870568,
"speedup": 5.5888
}
}
},
{
"board": "Quant",
"id": "025_nvfp4_attention_qkv_projection",
"name": "NVFP4 attention QKV projection",
"group": "Projections and GEMM",
"op": "NVFP4 Q, K, V projections (FP32 input)",
"direction": "forward",
"model": "nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-NVFP4",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/025_nvfp4_attention_qkv_projection",
"language": "CUDA C++",
"files": [
{
"path": "barrier_study.cu",
"lines": 172,
"bytes": 9305
},
{
"path": "cl_common.h",
"lines": 1096,
"bytes": 66408
},
{
"path": "kernel.cu",
"lines": 6030,
"bytes": 354396
},
{
"path": "kernel.h",
"lines": 24,
"bytes": 1374
},
{
"path": "kernel_early.cu",
"lines": 67,
"bytes": 4921
},
{
"path": "kernel_kt.cu",
"lines": 53,
"bytes": 3412
},
{
"path": "kernel_pipe.cu",
"lines": 49,
"bytes": 3175
},
{
"path": "main.cpp",
"lines": 83,
"bytes": 5253
},
{
"path": "ovl.h",
"lines": 251,
"bytes": 16643
},
{
"path": "study.h",
"lines": 3,
"bytes": 258
},
{
"path": "tl.h",
"lines": 11,
"bytes": 495
}
],
"idea": "Cooperative kernel (grid barrier for global amax) quantizes to NVFP4; a CUTLASS block-scaled tcgen05 GEMM runs Q, K, V as one wide GEMM; CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.96716,
"speedup": 22.067
}
}
},
{
"board": "Quant",
"id": "026_nvfp4_mamba2_out_projection",
"name": "NVFP4 Mamba2 out projection",
"group": "State space and conv",
"op": "NVFP4 Mamba2 out-projection (FP4 act + weight)",
"direction": "forward",
"model": "nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-NVFP4",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/026_nvfp4_mamba2_out_projection",
"language": "CUDA C++",
"files": [
{
"path": "dual.cuh",
"lines": 657,
"bytes": 37668
},
{
"path": "dual240.cuh",
"lines": 357,
"bytes": 19257
},
{
"path": "fused.cuh",
"lines": 243,
"bytes": 16013
},
{
"path": "kernel.cu",
"lines": 640,
"bytes": 32401
},
{
"path": "kernel.h",
"lines": 6,
"bytes": 291
},
{
"path": "main.cpp",
"lines": 52,
"bytes": 2498
},
{
"path": "official_probe.cuh",
"lines": 481,
"bytes": 31598
},
{
"path": "pairdual192.cuh",
"lines": 447,
"bytes": 24132
},
{
"path": "pairdual240.cuh",
"lines": 787,
"bytes": 48358
},
{
"path": "pd2t.cuh",
"lines": 534,
"bytes": 31245
},
{
"path": "pmid.cuh",
"lines": 1135,
"bytes": 72172
},
{
"path": "ppair.cuh",
"lines": 1084,
"bytes": 64611
},
{
"path": "psmall.cuh",
"lines": 634,
"bytes": 39458
},
{
"path": "ptp.cuh",
"lines": 360,
"bytes": 20115
},
{
"path": "small.cuh",
"lines": 1262,
"bytes": 74793
},
{
"path": "swab.cuh",
"lines": 763,
"bytes": 44874
},
{
"path": "wide.cuh",
"lines": 521,
"bytes": 28614
}
],
"idea": "Hand-written tcgen05 NVFP4 GEMMs by token count (swap-AB, 1-SM or 2-SM pairs) that read raw block scales; else a scale reorder plus a CUTLASS block-scaled GEMM.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.792671,
"speedup": 3.6413
}
}
},
{
"board": "Quant",
"id": "027_nvfp4_moe_router_projection",
"name": "NVFP4 MoE router projection",
"group": "MLP and MoE",
"op": "NVFP4 MoE router GEMM + sigmoid + bias + top-6",
"direction": "forward",
"model": "nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-NVFP4",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/027_nvfp4_moe_router_projection",
"language": "CUDA C++",
"files": [
{
"path": "ebench.h",
"lines": 208,
"bytes": 9934
},
{
"path": "kernel.cu",
"lines": 6123,
"bytes": 330465
},
{
"path": "kernel.h",
"lines": 9,
"bytes": 610
},
{
"path": "main.cpp",
"lines": 164,
"bytes": 9801
},
{
"path": "qbench.h",
"lines": 243,
"bytes": 13535
}
],
"idea": "Amax kernel, then one PDL kernel: on-chip NVFP4 quantize, swap-AB tcgen05 GEMM (cluster split-K via DSMEM when small), and a warp-per-token sigmoid + top-6 epilogue.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.976918,
"speedup": 20.9119
}
}
},
{
"board": "Quant",
"id": "028_nvfp4_attention_qkv_projection_with_rope",
"name": "NVFP4 attention QKV projection with RoPE",
"group": "Projections and GEMM",
"op": "NVFP4 QKV projection + QK-RMSNorm + RoPE",
"direction": "forward",
"model": "nvidia/Qwen3-8B-NVFP4",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/028_nvfp4_attention_qkv_projection_with_rope",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 3231,
"bytes": 193956
},
{
"path": "kernel.h",
"lines": 19,
"bytes": 968
},
{
"path": "main.cpp",
"lines": 39,
"bytes": 1818
},
{
"path": "qkv_gemm_kernel.hpp",
"lines": 935,
"bytes": 41285
}
],
"idea": "A prep step finds the global amax and quantizes activations to NVFP4; a CUTLASS block-scaled FP4 GEMM applies QK-RMSNorm and RoPE in its epilogue",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.966829,
"speedup": 20.8094
}
}
},
{
"board": "Quant",
"id": "029_nvfp4_fused_mlp_silu_gating",
"name": "NVFP4 fused MLP SiLU gating",
"group": "MLP and MoE",
"op": "NVFP4 SwiGLU MLP (gate, up, down)",
"direction": "forward",
"model": "nvidia/Qwen3-8B-NVFP4",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/029_nvfp4_fused_mlp_silu_gating",
"language": "CUDA C++",
"files": [
{
"path": "cut_all_a.cu",
"lines": 50,
"bytes": 2431
},
{
"path": "cut_all_pre.cu",
"lines": 10,
"bytes": 370
},
{
"path": "cut_cfg.h",
"lines": 344,
"bytes": 22929
},
{
"path": "cut_gu_cfg.h",
"lines": 213,
"bytes": 11854
},
{
"path": "cut_gu_ip_cfg.h",
"lines": 476,
"bytes": 30696
},
{
"path": "gu_mainloop.hpp",
"lines": 1387,
"bytes": 69119
},
{
"path": "kernel.cu",
"lines": 5967,
"bytes": 335832
},
{
"path": "kernel.h",
"lines": 6,
"bytes": 378
},
{
"path": "main.cpp",
"lines": 48,
"bytes": 2633
},
{
"path": "tl.h",
"lines": 10,
"bytes": 763
}
],
"idea": "Block-scaled NVFP4 tcgen05 GEMMs: x is quantized, gate and up share one MMA with SiLU gating in the epilogue, hidden re-quantized for the down GEMM; CUDA graph.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.931935,
"speedup": 11.0347
}
}
},
{
"board": "Quant",
"id": "030_nvfp4_fused_decoder_layer_pre_norm_attention",
"name": "NVFP4 fused decoder layer pre norm attention",
"group": "Attention",
"op": "NVFP4 decoder pre-norm + full attention block",
"direction": "forward",
"model": "nvidia/Qwen3-14B-NVFP4",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/030_nvfp4_fused_decoder_layer_pre_norm_attention",
"language": "Triton",
"files": [
{
"path": "attn_cute.py",
"lines": 3643,
"bytes": 222320
},
{
"path": "attn_q1.py",
"lines": 1442,
"bytes": 89724
},
{
"path": "attn_q1c.py",
"lines": 1424,
"bytes": 86267
},
{
"path": "attn_q1cn.py",
"lines": 740,
"bytes": 44989
},
{
"path": "front_cute.py",
"lines": 715,
"bytes": 42109
},
{
"path": "gemm_cute.py",
"lines": 2059,
"bytes": 140242
},
{
"path": "gemm_o_cute.py",
"lines": 1442,
"bytes": 93840
},
{
"path": "main.py",
"lines": 2635,
"bytes": 115424
}
],
"idea": "PDL chain: RMSNorm + NVFP4 quantize, CuTe DSL tcgen05 QKV GEMM with QK-norm + RoPE epilogue, persistent tcgen05 attention (Triton if short), NVFP4 O GEMM.",
"origin": "edited after the search by Claude agents",
"result": {
"public": true,
"sol": 0.971073,
"speedup": 20.6684
}
}
},
{
"board": "Quant",
"id": "031_nvfp4_grouped_query_attention_with_kv_repeat",
"name": "NVFP4 grouped query attention with KV repeat",
"group": "Attention",
"op": "NVFP4-quantized attention core (FP4 QK^T and PV)",
"direction": "forward",
"model": "nvidia/Qwen3-14B-NVFP4",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/031_nvfp4_grouped_query_attention_with_kv_repeat",
"language": "CUDA C++",
"files": [
{
"path": "fused.cu",
"lines": 2883,
"bytes": 162911
},
{
"path": "kernel.cu",
"lines": 3471,
"bytes": 214192
},
{
"path": "kernel.h",
"lines": 17,
"bytes": 1330
},
{
"path": "main.cpp",
"lines": 205,
"bytes": 9179
}
],
"idea": "NVFP4-quantizes Q, K, V, then FP4 tcgen05 attention: row stats first, then the weights and a re-quantized P @ V (single pass for short rows); masked tiles skipped.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.996664,
"speedup": 101.6263
}
}
},
{
"board": "Quant",
"id": "032_nvfp4_moe_expert_linear_with_gating",
"name": "NVFP4 MoE expert linear with gating",
"group": "MLP and MoE",
"op": "NVFP4 SwiGLU MLP (one expert-sized MLP, 2048 -> 5120)",
"direction": "forward",
"model": "nvidia/Qwen3-Next-80B-A3B-Thinking-NVFP4",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/032_nvfp4_moe_expert_linear_with_gating",
"language": "CUDA C++",
"files": [
{
"path": "alt.cu",
"lines": 48,
"bytes": 2514
},
{
"path": "alt2.cu",
"lines": 48,
"bytes": 2463
},
{
"path": "alt3.cu",
"lines": 40,
"bytes": 2061
},
{
"path": "gemm_ops.h",
"lines": 23,
"bytes": 1539
},
{
"path": "gemm_part0.cu",
"lines": 10,
"bytes": 263
},
{
"path": "gemm_part1.cu",
"lines": 9,
"bytes": 245
},
{
"path": "gemm_part2.cu",
"lines": 11,
"bytes": 281
},
{
"path": "gemm_part3.cu",
"lines": 10,
"bytes": 272
},
{
"path": "gemm_part4.cu",
"lines": 8,
"bytes": 225
},
{
"path": "gemm_part5.cu",
"lines": 8,
"bytes": 225
},
{
"path": "gu_collective.h",
"lines": 1376,
"bytes": 71985
},
{
"path": "kernel.cu",
"lines": 1257,
"bytes": 78897
},
{
"path": "kernel.h",
"lines": 26,
"bytes": 973
},
{
"path": "kernel_impl.h",
"lines": 3489,
"bytes": 198782
},
{
"path": "main.cpp",
"lines": 55,
"bytes": 2667
},
{
"path": "probe.h",
"lines": 39,
"bytes": 2301
},
{
"path": "probe_cfg.h",
"lines": 2,
"bytes": 117
},
{
"path": "sm100_kernel_mma_first.h",
"lines": 1141,
"bytes": 53808
}
],
"idea": "CUDA graph of four PDL launches: input amax + NVFP4 quant, CUTLASS NVFP4 gate/up GEMM with fused SwiGLU + amax epilogue, NVFP4 requant, CUTLASS NVFP4 down GEMM.",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.972733,
"speedup": 23.1674
}
}
},
{
"board": "Quant",
"id": "033_nvfp4_moe_routing_with_topk_selection",
"name": "NVFP4 MoE routing with topk selection",
"group": "MLP and MoE",
"op": "NVFP4 router GEMM + softmax + top-10",
"direction": "forward",
"model": "nvidia/Qwen3-Next-80B-A3B-Thinking-NVFP4",
"workloads": 16,
"kernel": {
"dir": "kernels/Quant/033_nvfp4_moe_routing_with_topk_selection",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 8088,
"bytes": 509512
},
{
"path": "kernel.h",
"lines": 14,
"bytes": 981
},
{
"path": "main.cpp",
"lines": 407,
"bytes": 23637
}
],
"idea": "Amax and NVFP4 quantize kernels, a tcgen05 block-scaled FP4 router GEMM (split-K, or cluster-fused top-k), then top-10 on raw logits with renorm; one CUDA graph",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.984852,
"speedup": 37.9962
}
}
},
{
"board": "FlashInfer",
"id": "001_fused_add_rmsnorm_h2048",
"name": "Fused add RMSNorm h2048",
"group": "Normalization",
"op": "fused add + RMSNorm",
"direction": "forward",
"model": "flashinfer-trace tag: qwen3-30b-a3b",
"workloads": 7,
"kernel": {
"dir": "kernels/FlashInfer/001_fused_add_rmsnorm_h2048",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 843,
"bytes": 51004
},
{
"path": "kernel.h",
"lines": 11,
"bytes": 740
},
{
"path": "main.cpp",
"lines": 40,
"bytes": 2017
}
],
"idea": "By row count: few rows get several CTAs per row, each redoing the sum and storing a slice; many rows pack two rows per CTA; PDL.",
"origin": "search agent (Claude)",
"result": {
"public": false
}
}
},
{
"board": "FlashInfer",
"id": "002_fused_add_rmsnorm_h4096",
"name": "Fused add RMSNorm h4096",
"group": "Normalization",
"op": "fused add + RMSNorm",
"direction": "forward",
"model": "flashinfer-trace tag: llama-3.1-8b",
"workloads": 14,
"kernel": {
"dir": "kernels/FlashInfer/002_fused_add_rmsnorm_h4096",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 682,
"bytes": 42841
},
{
"path": "kernel.h",
"lines": 5,
"bytes": 304
},
{
"path": "main.cpp",
"lines": 102,
"bytes": 6144
}
],
"idea": "By row count: tiny batches split each row over a CTA pair swapping sums via DSMEM; larger ones use L2 cache hints; CUDA graph replay.",
"origin": "search agent (Claude)",
"result": {
"public": false
}
}
},
{
"board": "FlashInfer",
"id": "003_fused_add_rmsnorm_h7168",
"name": "Fused add RMSNorm h7168",
"group": "Normalization",
"op": "fused add + RMSNorm",
"direction": "forward",
"model": "flashinfer-trace tag: deepseek-v3, deepseek-r1",
"workloads": 8,
"kernel": {
"dir": "kernels/FlashInfer/003_fused_add_rmsnorm_h7168",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 1826,
"bytes": 93954
},
{
"path": "kernel.h",
"lines": 4,
"bytes": 185
},
{
"path": "main.cpp",
"lines": 62,
"bytes": 3704
}
],
"idea": "By batch size: small batches split each row over CTAs that each re-read it for the sum; large batches give CTAs whole rows; CUDA graph.",
"origin": "search agent (Claude)",
"result": {
"public": false
}
}
},
{
"board": "FlashInfer",
"id": "004_gemm_n128_k2048",
"name": "GEMM n128 k2048",
"group": "Projections and GEMM",
"op": "dense GEMM C = A @ B^T (fp16)",
"direction": "forward",
"model": "flashinfer-trace tag: qwen3-30b-a3b (Qwen 3 30B A3B moe.gate)",
"workloads": 25,
"kernel": {
"dir": "kernels/FlashInfer/004_gemm_n128_k2048",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 932,
"bytes": 62536
},
{
"path": "kernel.h",
"lines": 8,
"bytes": 526
},
{
"path": "krd.cuh",
"lines": 1270,
"bytes": 71537
},
{
"path": "ksp.cuh",
"lines": 244,
"bytes": 14779
},
{
"path": "launch_rec.h",
"lines": 55,
"bytes": 2813
},
{
"path": "main.cpp",
"lines": 75,
"bytes": 4388
},
{
"path": "mc2.cuh",
"lines": 779,
"bytes": 51597
},
{
"path": "mc2p.cuh",
"lines": 214,
"bytes": 11957
},
{
"path": "mck.cuh",
"lines": 564,
"bytes": 31653
},
{
"path": "mma_gemv.cuh",
"lines": 1057,
"bytes": 66891
},
{
"path": "mma_small.cuh",
"lines": 32,
"bytes": 2154
},
{
"path": "persist.cuh",
"lines": 181,
"bytes": 9319
},
{
"path": "rd1.cuh",
"lines": 374,
"bytes": 18219
},
{
"path": "split2.cuh",
"lines": 197,
"bytes": 10152
},
{
"path": "swap.cuh",
"lines": 167,
"bytes": 8265
},
{
"path": "v8.cuh",
"lines": 939,
"bytes": 51497
}
],
"idea": "By M: small and mid M mostly use mma.sync with operands loaded straight into registers and split-K; large M uses tcgen05 TMA GEMMs (2-SM pairs, swap-AB, persistent).",
"origin": "search agent (Claude)",
"result": {
"public": false
}
}
},
{
"board": "FlashInfer",
"id": "005_gemm_n256_k7168",
"name": "GEMM n256 k7168",
"group": "Projections and GEMM",
"op": "dense GEMM C = A @ B^T (fp16)",
"direction": "forward",
"model": "flashinfer-trace tag: deepseek-v3, deepseek-r1 (DeepSeek-V3 moe.gate)",
"workloads": 17,
"kernel": {
"dir": "kernels/FlashInfer/005_gemm_n256_k7168",
"language": "CUDA C++",
"files": [
{
"path": "cutlass_gemm.cu",
"lines": 267,
"bytes": 15257
},
{
"path": "kernel.cu",
"lines": 4381,
"bytes": 259939
},
{
"path": "kernel.h",
"lines": 39,
"bytes": 3251
},
{
"path": "m80.cu",
"lines": 107,
"bytes": 6751
},
{
"path": "m80_base.cuh",
"lines": 605,
"bytes": 33553
},
{
"path": "main.cpp",
"lines": 205,
"bytes": 12106
}
],
"idea": "Picks a kernel by M: small M splits K over a CTA cluster (FMA or mma.sync, DSMEM reduce); larger M uses swap-AB tcgen05 kernels or CUTLASS SM100.",
"origin": "search agent (Claude)",
"result": {
"public": false
}
}
},
{
"board": "FlashInfer",
"id": "006_gemm_n2048_k4096",
"name": "GEMM n2048 k4096",
"group": "Projections and GEMM",
"op": "dense GEMM C = A @ B^T (fp16)",
"direction": "forward",
"model": "flashinfer-trace tag: qwen3-30b-a3b (Qwen 3 30B A3B attn.o_proj)",
"workloads": 29,
"kernel": {
"dir": "kernels/FlashInfer/006_gemm_n2048_k4096",
"language": "CUDA C++",
"files": [
{
"path": "fused.cu",
"lines": 2703,
"bytes": 144740
},
{
"path": "kernel.cu",
"lines": 554,
"bytes": 36722
},
{
"path": "kernel.h",
"lines": 88,
"bytes": 8902
},
{
"path": "kernel_ext.cu",
"lines": 81,
"bytes": 6724
},
{
"path": "kernel_ext2.cu",
"lines": 36,
"bytes": 1437
},
{
"path": "kernel_ext3.cu",
"lines": 194,
"bytes": 12096
},
{
"path": "kernel_ext4.cu",
"lines": 39,
"bytes": 1995
},
{
"path": "main.cpp",
"lines": 541,
"bytes": 29812
},
{
"path": "skinny.cu",
"lines": 1502,
"bytes": 83410
},
{
"path": "sm100_mma_ws_padb.hpp",
"lines": 693,
"bytes": 30019
}
],
"idea": "Picks a kernel by M: swap-AB mma.sync for tiny M, swap-AB tcgen05 split-K with a DSMEM cluster reduce for mid M, CUTLASS SM100 2-SM for large M.",
"origin": "search agent (Claude)",
"result": {
"public": false
}
}
},
{
"board": "FlashInfer",
"id": "007_gemm_n4096_k4096",
"name": "GEMM n4096 k4096",
"group": "Projections and GEMM",
"op": "dense GEMM C = A @ B^T (fp16)",
"direction": "forward",
"model": "flashinfer-trace tag: llama-3.1-8b (Llama 3.1 8B attn.o_proj)",
"workloads": 43,
"kernel": {
"dir": "kernels/FlashInfer/007_gemm_n4096_k4096",
"language": "CUDA C++",
"files": [
{
"path": "drvl.h",
"lines": 41,
"bytes": 2379
},
{
"path": "impl.h",
"lines": 4527,
"bytes": 334753
},
{
"path": "kernel.cu",
"lines": 131,
"bytes": 11951
},
{
"path": "kernel.h",
"lines": 4,
"bytes": 204
},
{
"path": "kernel42.cu",
"lines": 329,
"bytes": 19893
},
{
"path": "kernel43.cu",
"lines": 36,
"bytes": 3415
},
{
"path": "kernel44.cu",
"lines": 7,
"bytes": 482
},
{
"path": "kernel45.cu",
"lines": 29,
"bytes": 2138
},
{
"path": "kernel46.cu",
"lines": 34,
"bytes": 2692
},
{
"path": "kernel47.cu",
"lines": 21,
"bytes": 1706
},
{
"path": "main.cpp",
"lines": 36,
"bytes": 2244
},
{
"path": "skl.h",
"lines": 994,
"bytes": 54181
}
],
"idea": "Picks by M: small M streams weights with mma.sync; larger M runs CUTLASS swap-AB 2-SM tcgen05 GEMMs with TMA weight multicast in clusters, persistent tiles for big M.",
"origin": "search agent (Claude)",
"result": {
"public": false
}
}
},
{
"board": "FlashInfer",
"id": "008_gemm_n4096_k14336",
"name": "GEMM n4096 k14336",
"group": "Projections and GEMM",
"op": "dense GEMM C = A @ B^T (fp16)",
"direction": "forward",
"model": "flashinfer-trace tag: llama-3.1-8b (Llama 3.1 8B mlp.down_proj)",
"workloads": 43,
"kernel": {
"dir": "kernels/FlashInfer/008_gemm_n4096_k14336",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 8557,
"bytes": 537689
},
{
"path": "kernel.h",
"lines": 23,
"bytes": 1500
},
{
"path": "main.cpp",
"lines": 15,
"bytes": 794
}
],
"idea": "Picks by M: tiny M streams weights into mma.sync; mid M uses swap-AB tcgen05 kernels, mostly cluster split-K with DSMEM reduce; large M uses 2-SM tcgen05 tiles.",
"origin": "edited after the search by Claude agents",
"result": {
"public": false
}
}
},
{
"board": "FlashInfer",
"id": "009_gemm_n5120_k2048",
"name": "GEMM n5120 k2048",
"group": "Projections and GEMM",
"op": "dense GEMM C = A @ B^T (fp16)",
"direction": "forward",
"model": "flashinfer-trace tag: qwen3-30b-a3b (Qwen 3 30B A3B attn.qkv_proj)",
"workloads": 25,
"kernel": {
"dir": "kernels/FlashInfer/009_gemm_n5120_k2048",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 1226,
"bytes": 65924
},
{
"path": "kernel.h",
"lines": 5,
"bytes": 239
},
{
"path": "main.cpp",
"lines": 17,
"bytes": 768
}
],
"idea": "By M: small M runs custom 1-D bulk-copy + mma.sync kernels (K split across warps); larger M runs CUTLASS tcgen05 GEMMs (swap-AB, 2-SM clusters); PDL.",
"origin": "search agent (Claude)",
"result": {
"public": false
}
}
},
{
"board": "FlashInfer",
"id": "010_gemm_n6144_k4096",
"name": "GEMM n6144 k4096",
"group": "Projections and GEMM",
"op": "dense GEMM C = A @ B^T (fp16)",
"direction": "forward",
"model": "flashinfer-trace tag: llama-3.1-8b (Llama 3.1 8B attn.qkv_proj)",
"workloads": 43,
"kernel": {
"dir": "kernels/FlashInfer/010_gemm_n6144_k4096",
"language": "CUDA C++",
"files": [
{
"path": "cutlass/arch/barrier.h",
"lines": 972,
"bytes": 32387
},
{
"path": "gemm_cutlass.cu",
"lines": 581,
"bytes": 34988
},
{
"path": "gemm_sw160.cu",
"lines": 17,
"bytes": 1062
},
{
"path": "gemm_sw192.cu",
"lines": 17,
"bytes": 1299
},
{
"path": "gemm_sw224.cu",
"lines": 8,
"bytes": 667
},
{
"path": "gemm_sw256.cu",
"lines": 8,
"bytes": 579
},
{
"path": "kernel_big.cu",
"lines": 1061,
"bytes": 60358
},
{
"path": "kernel_mixed.cu",
"lines": 735,
"bytes": 39073
},
{
"path": "main.cpp",
"lines": 108,
"bytes": 6558
},
{
"path": "persist.cu",
"lines": 1042,
"bytes": 62756
},
{
"path": "splitk_2sm.cuh",
"lines": 245,
"bytes": 12159
},
{
"path": "splitk_dsmem.cuh",
"lines": 365,
"bytes": 17617
},
{
"path": "stream16.cu",
"lines": 131,
"bytes": 6181
},
{
"path": "stream_mc.cu",
"lines": 720,
"bytes": 37506
},
{
"path": "stream_mc2h.cu",
"lines": 498,
"bytes": 25824
},
{
"path": "sw_common.h",
"lines": 322,
"bytes": 18221
},
{
"path": "wide2sm.cuh",
"lines": 647,
"bytes": 33994
},
{
"path": "wpf.h",
"lines": 161,
"bytes": 8677
}
],
"idea": "Small M: TMA weight-streaming kernels (mma.sync or swap-AB tcgen05, split-K); larger M: CUTLASS or custom 2-SM tcgen05 GEMMs with even work per CTA pair.",
"origin": "search agent (Claude)",
"result": {
"public": false
}
}
},
{
"board": "FlashInfer",
"id": "011_gemm_n28672_k4096",
"name": "GEMM n28672 k4096",
"group": "Projections and GEMM",
"op": "dense GEMM C = A @ B^T (fp16)",
"direction": "forward",
"model": "flashinfer-trace tag: llama-3.1-8b (Llama 3.1 8B mlp.gate_up_proj)",
"workloads": 43,
"kernel": {
"dir": "kernels/FlashInfer/011_gemm_n28672_k4096",
"language": "CUDA C++",
"files": [
{
"path": "cutlass_gemm.cu",
"lines": 700,
"bytes": 43753
},
{
"path": "kernel.cu",
"lines": 9692,
"bytes": 580818
},
{
"path": "kernel.h",
"lines": 19,
"bytes": 1445
},
{
"path": "main.cpp",
"lines": 102,
"bytes": 5389
}
],
"idea": "Picks a kernel by M: small M uses hand-written tcgen05 kernels (mostly swap-AB) that spread the weight rows evenly over all SMs; large M uses CUTLASS SM100.",
"origin": "edited after the search by Claude agents",
"result": {
"public": false
}
}
},
{
"board": "FlashInfer",
"id": "012_gqa_paged_decode_h32_kv4_d128_ps1",
"name": "GQA paged decode h32 kv4 d128 ps1",
"group": "Attention",
"op": "GQA paged decode attention (page size 1)",
"direction": "forward",
"model": "flashinfer-trace tag: qwen3-30b-a3b (Qwen3-30B-A3B)",
"workloads": 48,
"kernel": {
"dir": "kernels/FlashInfer/012_gqa_paged_decode_h32_kv4_d128_ps1",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 3925,
"bytes": 233261
},
{
"path": "kernel.h",
"lines": 4,
"bytes": 247
},
{
"path": "main.cpp",
"lines": 50,
"bytes": 2528
}
],
"idea": "Split-KV decode on mma.sync: KV pages loaded by TMA or cp.async, partial results merged across a CTA cluster via DSMEM; config picked by batch size and length.",
"origin": "search agent (Claude)",
"result": {
"public": false
}
}
},
{
"board": "FlashInfer",
"id": "013_gqa_paged_decode_h32_kv8_d128_ps1",
"name": "GQA paged decode h32 kv8 d128 ps1",
"group": "Attention",
"op": "GQA paged decode attention (page size 1)",
"direction": "forward",
"model": "flashinfer-trace tag: llama-3.1-8b (Llama-3.1-8B)",
"workloads": 48,
"kernel": {
"dir": "kernels/FlashInfer/013_gqa_paged_decode_h32_kv8_d128_ps1",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 5376,
"bytes": 303190
},
{
"path": "kernel.h",
"lines": 105,
"bytes": 6706
},
{
"path": "main.cpp",
"lines": 983,
"bytes": 50620
}
],
"idea": "Split-KV flash decoding with mma.sync and cp.async K/V row gathers; picks a kernel by batch and length; partial results merged through DSMEM clusters or a workspace.",
"origin": "search agent (Claude)",
"result": {
"public": false
}
}
},
{
"board": "FlashInfer",
"id": "014_gqa_paged_prefill_causal_h32_kv4_d128_ps1",
"name": "GQA paged prefill causal h32 kv4 d128 ps1",
"group": "Attention",
"op": "GQA paged prefill attention, causal (page size 1)",
"direction": "forward",
"model": "flashinfer-trace tag: qwen3-30b-a3b (Qwen3-30B-A3B during incremental prefill)",
"workloads": 30,
"kernel": {
"dir": "kernels/FlashInfer/014_gqa_paged_prefill_causal_h32_kv4_d128_ps1",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 8234,
"bytes": 420018
},
{
"path": "kernel.h",
"lines": 21,
"bytes": 1492
},
{
"path": "main.cpp",
"lines": 242,
"bytes": 13625
}
],
"idea": "By shape: long KV runs a persistent warp-specialized tcgen05 kernel (TMA page gathers, GQA heads as MMA rows); other shapes use smaller tcgen05, mma.sync or CUDA-core kernels.",
"origin": "search agent (Claude)",
"result": {
"public": false
}
}
},
{
"board": "FlashInfer",
"id": "015_gqa_paged_prefill_causal_h32_kv8_d128_ps1",
"name": "GQA paged prefill causal h32 kv8 d128 ps1",
"group": "Attention",
"op": "GQA paged prefill attention, causal (page size 1)",
"direction": "forward",
"model": "flashinfer-trace tag: llama-3.1-8b (Llama-3.1-8B during incremental prefill)",
"workloads": 38,
"kernel": {
"dir": "kernels/FlashInfer/015_gqa_paged_prefill_causal_h32_kv8_d128_ps1",
"language": "CUDA C++",
"files": [
{
"path": "decode_path.cu",
"lines": 1736,
"bytes": 109962
},
{
"path": "decode_sks.cu",
"lines": 1536,
"bytes": 94396
},
{
"path": "gqa_impl.cuh",
"lines": 3560,
"bytes": 211336
},
{
"path": "gqa_impl_spk.cuh",
"lines": 3756,
"bytes": 221393
},
{
"path": "kernel.cu",
"lines": 40,
"bytes": 2950
},
{
"path": "kernel.h",
"lines": 36,
"bytes": 4425
},
{
"path": "large_hybrid.cu",
"lines": 64,
"bytes": 4174
},
{
"path": "main.cpp",
"lines": 201,
"bytes": 10771
},
{
"path": "small_kpc4_spk.cu",
"lines": 77,
"bytes": 5331
},
{
"path": "small_kpc4_tq1.cu",
"lines": 29,
"bytes": 2146
},
{
"path": "small_kpc4_tq4.cu",
"lines": 55,
"bytes": 3454
},
{
"path": "tiny_path.cu",
"lines": 471,
"bytes": 30037
},
{
"path": "tmap_fill.h",
"lines": 42,
"bytes": 2266
}
],
"idea": "FA2-style mma.sync tiles with cp.async K/V gathers and online softmax; extra CTAs write rows that see no keys using TMA bulk stores; picks a kernel by shape.",
"origin": "search agent (Claude)",
"result": {
"public": false
}
}
},
{
"board": "FlashInfer",
"id": "016_gqa_ragged_prefill_causal_h32_kv4_d128",
"name": "GQA ragged prefill causal h32 kv4 d128",
"group": "Attention",
"op": "GQA ragged prefill attention, causal",
"direction": "forward",
"model": "flashinfer-trace tag: qwen3-30b-a3b (Qwen3-30B-A3B during total prefill)",
"workloads": 15,
"kernel": {
"dir": "kernels/FlashInfer/016_gqa_ragged_prefill_causal_h32_kv4_d128",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 8673,
"bytes": 458403
},
{
"path": "kernel.h",
"lines": 6,
"bytes": 390
},
{
"path": "main.cpp",
"lines": 89,
"bytes": 4491
}
],
"idea": "By token count: small inputs run mma.sync warp kernels; large ones run warp-specialized tcgen05 flash kernels (TMA rings, P kept in TMEM), persistent for the largest.",
"origin": "search agent (Claude)",
"result": {
"public": false
}
}
},
{
"board": "FlashInfer",
"id": "017_gqa_ragged_prefill_causal_h32_kv8_d128",
"name": "GQA ragged prefill causal h32 kv8 d128",
"group": "Attention",
"op": "GQA ragged prefill attention, causal",
"direction": "forward",
"model": "flashinfer-trace tag: llama-3.1-8b (Llama-3.1-8B during total prefill)",
"workloads": 21,
"kernel": {
"dir": "kernels/FlashInfer/017_gqa_ragged_prefill_causal_h32_kv8_d128",
"language": "CUDA C++",
"files": [
{
"path": "fa2.cu",
"lines": 4931,
"bytes": 278872
},
{
"path": "kernel.cu",
"lines": 3203,
"bytes": 205634
},
{
"path": "kernel.h",
"lines": 14,
"bytes": 1016
},
{
"path": "main.cpp",
"lines": 167,
"bytes": 9598
},
{
"path": "np.cu",
"lines": 935,
"bytes": 52018
},
{
"path": "pdl.h",
"lines": 189,
"bytes": 9679
}
],
"idea": "FlashAttention-style tcgen05 kernel: query heads of one KV head share each K/V load, S/P/O in TMEM, lazy rescale, heavy tiles first; small inputs use mma.sync.",
"origin": "search agent (Claude)",
"result": {
"public": false
}
}
},
{
"board": "FlashInfer",
"id": "018_mla_paged_decode_h16_ckv512_kpe64_ps1",
"name": "MLA paged decode h16 ckv512 kpe64 ps1",
"group": "Attention",
"op": "MLA paged decode attention (absorbed, ckv 512 + kpe 64, page size 1)",
"direction": "forward",
"model": "flashinfer-trace tag: deepseek-v3, deepseek-r1 (DeepSeek-V3 with tensor parallel size 8)",
"workloads": 47,
"kernel": {
"dir": "kernels/FlashInfer/018_mla_paged_decode_h16_ckv512_kpe64_ps1",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 10054,
"bytes": 616717
},
{
"path": "kernel.h",
"lines": 16,
"bytes": 1159
},
{
"path": "main.cpp",
"lines": 143,
"bytes": 8644
}
],
"idea": "mma.sync flash-decode with cp.async or TMA-gather loads; split-KV partials merged by a PDL combine kernel or over DSMEM in clusters; picked by batch and length",
"origin": "edited after the search by Claude agents",
"result": {
"public": false
}
}
},
{
"board": "FlashInfer",
"id": "019_mla_paged_prefill_causal_h16_ckv512_kpe64_ps1",
"name": "MLA paged prefill causal h16 ckv512 kpe64 ps1",
"group": "Attention",
"op": "MLA paged prefill attention, causal (absorbed)",
"direction": "forward",
"model": "flashinfer-trace tag: deepseek-v3, deepseek-r1 (DeepSeek-V3 during incremental prefill with tensor parallel size 8)",
"workloads": 38,
"kernel": {
"dir": "kernels/FlashInfer/019_mla_paged_prefill_causal_h16_ckv512_kpe64_ps1",
"language": "CUDA C++",
"files": [
{
"path": "decode.cu",
"lines": 6445,
"bytes": 352273
},
{
"path": "kernel.cu",
"lines": 7266,
"bytes": 423061
},
{
"path": "kernel.h",
"lines": 311,
"bytes": 19321
},
{
"path": "main.cpp",
"lines": 1643,
"bytes": 89156
},
{
"path": "small.cu",
"lines": 2085,
"bytes": 111377
}
],
"idea": "Picks a path by size: tcgen05 flash attention on tiles packing tokens x heads, KV gathered by cp.async or pre-packed for TMA; small inputs use mma.sync kernels.",
"origin": "search agent (Claude)",
"result": {
"public": false
}
}
},
{
"board": "FlashInfer",
"id": "020_moe_fp8_block_scale_ds_routing_topk8_ng8_kg4_e32_h7168_i2048",
"name": "MoE FP8 block scale ds routing topk8 ng8 kg4 e32 h7168 i2048",
"group": "MLP and MoE",
"op": "FP8 block-scale MoE: DeepSeek routing + 2 grouped GEMMs (32 local experts)",
"direction": "forward",
"model": "flashinfer-trace tag: deepseek-v3, deepseek-r1",
"workloads": 19,
"kernel": {
"dir": "kernels/FlashInfer/020_moe_fp8_block_scale_ds_routing_topk8_ng8_kg4_e32_h7168_i2048",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 10413,
"bytes": 612822
},
{
"path": "kernel.h",
"lines": 56,
"bytes": 3187
},
{
"path": "main.cpp",
"lines": 277,
"bytes": 14615
}
],
"idea": "Routing groups tokens by expert; two warp-specialized tcgen05 FP8 grouped GEMMs (TMA, swap-AB, block-scale promotion) with SwiGLU + FP8 requant in between; tile size set by token count.",
"origin": "edited after the search by Claude agents",
"result": {
"public": false
}
}
},
{
"board": "FlashInfer",
"id": "021_rmsnorm_h128",
"name": "RMSNorm h128",
"group": "Normalization",
"op": "RMSNorm",
"direction": "forward",
"model": "flashinfer-trace tag: qwen3-30b-a3b (Qwen3-30B-A3B. Epsilon is fixed at 1e-6)",
"workloads": 14,
"kernel": {
"dir": "kernels/FlashInfer/021_rmsnorm_h128",
"language": "Triton + CuTe DSL",
"files": [
{
"path": "cute_mid.py",
"lines": 1469,
"bytes": 98559
},
{
"path": "cute_small.py",
"lines": 2496,
"bytes": 169442
},
{
"path": "gluon_huge.py",
"lines": 1021,
"bytes": 65771
},
{
"path": "gluon_v4f.py",
"lines": 1341,
"bytes": 92903
},
{
"path": "kernel.py",
"lines": 506,
"bytes": 30931
}
],
"idea": "By row count: CuTe DSL kernels in CTA clusters (small, some mid sizes) or Gluon (Triton) kernels otherwise; 256-bit loads, PDL, L2 cache hints.",
"origin": "search agent (Claude)",
"result": {
"public": false
}
}
},
{
"board": "FlashInfer",
"id": "022_rmsnorm_h512",
"name": "RMSNorm h512",
"group": "Normalization",
"op": "RMSNorm",
"direction": "forward",
"model": "flashinfer-trace tag: deepseek-v3, deepseek-r1 (DeepSeek-V3/R1. Epsilon is fixed at 1e-6)",
"workloads": 8,
"kernel": {
"dir": "kernels/FlashInfer/022_rmsnorm_h512",
"language": "CuTe DSL",
"files": [
{
"path": "main.py",
"lines": 1897,
"bytes": 117583
}
],
"idea": "CuTe DSL by row count: small batches use PDL, an L2 bulk-prefetch warp and tensor-core (mma.sync) row sums; large batches use one warp per row.",
"origin": "search agent (Claude)",
"result": {
"public": false
}
}
},
{
"board": "FlashInfer",
"id": "023_rmsnorm_h1536",
"name": "RMSNorm h1536",
"group": "Normalization",
"op": "RMSNorm",
"direction": "forward",
"model": "flashinfer-trace tag: deepseek-v3, deepseek-r1 (DeepSeek-V3/R1. Epsilon is fixed at 1e-6)",
"workloads": 8,
"kernel": {
"dir": "kernels/FlashInfer/023_rmsnorm_h1536",
"language": "CuTe DSL",
"files": [
{
"path": "main.py",
"lines": 2158,
"bytes": 120949
}
],
"idea": "CuTe DSL, picked by row count: a thread group per row (two CTAs per row for tiny batches), a persistent warp-per-row kernel for large ones; PDL.",
"origin": "search agent (Claude)",
"result": {
"public": false
}
}
},
{
"board": "FlashInfer",
"id": "024_rmsnorm_h2048",
"name": "RMSNorm h2048",
"group": "Normalization",
"op": "RMSNorm",
"direction": "forward",
"model": "flashinfer-trace tag: qwen3-30b-a3b (Qwen3-30B-A3B. Epsilon is fixed at 1e-6)",
"workloads": 7,
"kernel": {
"dir": "kernels/FlashInfer/024_rmsnorm_h2048",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 1368,
"bytes": 95752
},
{
"path": "kernel.h",
"lines": 4,
"bytes": 206
},
{
"path": "main.cpp",
"lines": 79,
"bytes": 5014
}
],
"idea": "Few rows: two CTAs per row, extra CTAs that prefetch rows into L2, mma.sync warp sums; many rows: one CTA per row pair; PDL.",
"origin": "search agent (Claude)",
"result": {
"public": false
}
}
},
{
"board": "FlashInfer",
"id": "025_rmsnorm_h4096",
"name": "RMSNorm h4096",
"group": "Normalization",
"op": "RMSNorm",
"direction": "forward",
"model": "flashinfer-trace tag: llama-3.1-8b (Llama-3.1-8B. Epsilon is fixed at 1e-5)",
"workloads": 14,
"kernel": {
"dir": "kernels/FlashInfer/025_rmsnorm_h4096",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 615,
"bytes": 35468
},
{
"path": "kernel.h",
"lines": 16,
"bytes": 976
},
{
"path": "main.cpp",
"lines": 60,
"bytes": 3325
}
],
"idea": "Few rows: several CTAs per row (each sums the whole row, stores a slice); many rows: a CTA per row with L2 prefetch; tf32 mma.sync warp sums.",
"origin": "edited after the search by Claude agents",
"result": {
"public": false
}
}
},
{
"board": "FlashInfer",
"id": "026_rmsnorm_h7168",
"name": "RMSNorm h7168",
"group": "Normalization",
"op": "RMSNorm",
"direction": "forward",
"model": "flashinfer-trace tag: deepseek-v3, deepseek-r1 (DeepSeek-V3/R1. Epsilon is fixed at 1e-6)",
"workloads": 8,
"kernel": {
"dir": "kernels/FlashInfer/026_rmsnorm_h7168",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 1131,
"bytes": 68861
},
{
"path": "kernel.h",
"lines": 6,
"bytes": 342
},
{
"path": "main.cpp",
"lines": 53,
"bytes": 2811
}
],
"idea": "By row count: few rows split each row over several CTAs; mid counts use 2-CTA clusters that share sums via DSMEM; many rows get one CTA each.",
"origin": "search agent (Claude)",
"result": {
"public": false
}
}
}
],
"method": {
"files": [
{
"path": "docs/METHOD.md",
"lines": 161,
"bytes": 11041
},
{
"path": "compoundingkernel/__init__.py",
"lines": 78,
"bytes": 3339
},
{
"path": "compoundingkernel/archive.py",
"lines": 281,
"bytes": 13777
},
{
"path": "compoundingkernel/child.py",
"lines": 269,
"bytes": 13986
},
{
"path": "compoundingkernel/controller.py",
"lines": 285,
"bytes": 14597
},
{
"path": "compoundingkernel/harness.py",
"lines": 299,
"bytes": 13049
},
{
"path": "compoundingkernel/score.py",
"lines": 83,
"bytes": 3679
},
{
"path": "compoundingkernel/checks/__init__.py",
"lines": 8,
"bytes": 609
},
{
"path": "compoundingkernel/checks/native_code.py",
"lines": 196,
"bytes": 8941
},
{
"path": "compoundingkernel/checks/precision.py",
"lines": 93,
"bytes": 4935
},
{
"path": "compoundingkernel/checks/robustness.py",
"lines": 294,
"bytes": 14483
},
{
"path": "compoundingkernel/checks/sanitizer.py",
"lines": 64,
"bytes": 3401
}
]
}
}
{
"problems": [
{
"board": "L1",
"id": "001_attention_softmax_dropout_value_matmul_backward",
"name": "Attention softmax dropout value matmul backward",
"group": "Backward pass",
"op": "attention softmax + dropout + PV backward (GQA 80/8/128)",
"direction": "backward",
"model": "ByteDance/Seed-Seed-OSS-36B-Instruct",
"workloads": 16,
"kernel": {
"dir": "kernels/L1/001_attention_softmax_dropout_value_matmul_backward",
"language": "CuTe DSL",
"files": [
{
"path": "kernel.py",
"lines": 19098,
"bytes": 1042720
}
],
"idea": "Per-shape CuTe DSL tcgen05 plans (TMA, TMEM): one fused kernel for dS and GQA-summed dV, or a dV + row-sum kernel then a dS kernel (PDL).",
"origin": "search agent (Claude)",
"result": {
"public": true,
"sol": 0.91296,
"speedup": 5.6271
}
}
},
{
"board": "L1",
"id": "002_vae_conv3x3_groupnorm_silu_residual_fused",
"name": "VAE conv3x3 GroupNorm SiLU residual fused",
"group": "Image and video",
"op": "VAE conv3x3 + GroupNorm + SiLU residual block",
"direction": "forward",
"model": "Efficient-Large-Model/Sana-Sprint-1.6B-1024px",
"workloads": 20,
"kernel": {
"dir": "kernels/L1/002_vae_conv3x3_groupnorm_silu_residual_fused",
"language": "CUDA C++",
"files": [
{
"path": "kernel.cu",
"lines": 2,
"bytes": 128
},
{
"path": "kernel.h",
"lines": 35,
"bytes": 1753
},
{
"path": "kernel_body.cuh",
"lines": 5505,
"bytes": 334778
},
{
"path": "kernel_pw.cu",
"lines": 21,
"bytes": 931
},
{
"path": "kernel_rot.cu",
"lines": 21,
"bytes": 876
},
{
"path": "kernel_rot293.cu",
"lines": 21,
"bytes": 959
},
{
"path": "kernel_sub.cu",
"lines": 23,
"bytes": 1143
},
{
"path": "kernel_xp.cu",
"lines": 24,
"bytes": 1165
},
{
"path": "kernel_xp1024.cu",
"lines": 25,
"bytes": 1376
},
{
"path": "kernel_xp768.cu",
"lines": 25,
"bytes": 1371
},
{
"path": "kernel_xpr.cu",
"lines": 21,
"bytes": 917
},
{
"path": "kernel_xpr9.cu",