problem_id stringlengths 11 92 | source_kb_id int64 2 100 | category stringclasses 7
values | dtype stringclasses 3
values | variant stringclasses 14
values | reference_code stringlengths 1.23k 3.47k |
|---|---|---|---|---|---|
kb1_002_standard_matrix_multiplication | 2 | matmul | fp32 | base | """Task kb1_002_standard_matrix_multiplication (KernelBench Level 1 #2, split=train, category=matmul, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_002_standard_matrix_multiplication"
SOURCE_KB_ID = 2
CATEGORY = "matmul"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(... |
kb1_004_matrix_vector_multiplication | 4 | matmul | fp32 | base | """Task kb1_004_matrix_vector_multiplication (KernelBench Level 1 #4, split=train, category=matmul, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_004_matrix_vector_multiplication"
SOURCE_KB_ID = 4
CATEGORY = "matmul"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.M... |
kb1_005_matrix_scalar_multiplication | 5 | matmul | fp32 | base | """Task kb1_005_matrix_scalar_multiplication (KernelBench Level 1 #5, split=train, category=matmul, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_005_matrix_scalar_multiplication"
SOURCE_KB_ID = 5
CATEGORY = "matmul"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.M... |
kb1_006_matmul_with_large_k_dimension | 6 | matmul | fp32 | base | """Task kb1_006_matmul_with_large_k_dimension (KernelBench Level 1 #6, split=train, category=matmul, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_006_matmul_with_large_k_dimension"
SOURCE_KB_ID = 6
CATEGORY = "matmul"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn... |
kb1_007_matmul_with_small_k_dimension | 7 | matmul | fp32 | base | """Task kb1_007_matmul_with_small_k_dimension (KernelBench Level 1 #7, split=train, category=matmul, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_007_matmul_with_small_k_dimension"
SOURCE_KB_ID = 7
CATEGORY = "matmul"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn... |
kb1_008_matmul_with_irregular_shapes | 8 | matmul | fp32 | base | """Task kb1_008_matmul_with_irregular_shapes (KernelBench Level 1 #8, split=train, category=matmul, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_008_matmul_with_irregular_shapes"
SOURCE_KB_ID = 8
CATEGORY = "matmul"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.M... |
kb1_009_tall_skinny_matrix_multiplication | 9 | matmul | fp32 | base | """Task kb1_009_tall_skinny_matrix_multiplication (KernelBench Level 1 #9, split=train, category=matmul, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_009_tall_skinny_matrix_multiplication"
SOURCE_KB_ID = 9
CATEGORY = "matmul"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class ... |
kb1_010_3d_tensor_matrix_multiplication | 10 | matmul | fp32 | base | """Task kb1_010_3d_tensor_matrix_multiplication (KernelBench Level 1 #10, split=train, category=matmul, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_010_3d_tensor_matrix_multiplication"
SOURCE_KB_ID = 10
CATEGORY = "matmul"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Mo... |
kb1_011_4d_tensor_matrix_multiplication | 11 | matmul | fp32 | base | """Task kb1_011_4d_tensor_matrix_multiplication (KernelBench Level 1 #11, split=train, category=matmul, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_011_4d_tensor_matrix_multiplication"
SOURCE_KB_ID = 11
CATEGORY = "matmul"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Mo... |
kb1_012_matmul_with_diagonal_matrices | 12 | matmul | fp32 | base | """Task kb1_012_matmul_with_diagonal_matrices (KernelBench Level 1 #12, split=train, category=matmul, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_012_matmul_with_diagonal_matrices"
SOURCE_KB_ID = 12
CATEGORY = "matmul"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(... |
kb1_013_matmul_for_symmetric_matrices | 13 | matmul | fp32 | base | """Task kb1_013_matmul_for_symmetric_matrices (KernelBench Level 1 #13, split=train, category=matmul, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_013_matmul_for_symmetric_matrices"
SOURCE_KB_ID = 13
CATEGORY = "matmul"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(... |
kb1_014_matmul_for_upper_triangular_matrices | 14 | matmul | fp32 | base | """Task kb1_014_matmul_for_upper_triangular_matrices (KernelBench Level 1 #14, split=train, category=matmul, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_014_matmul_for_upper_triangular_matrices"
SOURCE_KB_ID = 14
CATEGORY = "matmul"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn... |
kb1_015_matmul_for_lower_triangular_matrices | 15 | matmul | fp32 | base | """Task kb1_015_matmul_for_lower_triangular_matrices (KernelBench Level 1 #15, split=train, category=matmul, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_015_matmul_for_lower_triangular_matrices"
SOURCE_KB_ID = 15
CATEGORY = "matmul"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn... |
kb1_016_matmul_with_transposed_a | 16 | matmul | fp32 | base | """Task kb1_016_matmul_with_transposed_a (KernelBench Level 1 #16, split=train, category=matmul, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_016_matmul_with_transposed_a"
SOURCE_KB_ID = 16
CATEGORY = "matmul"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module)... |
kb1_018_matmul_with_transposed_both | 18 | matmul | fp32 | base | """Task kb1_018_matmul_with_transposed_both (KernelBench Level 1 #18, split=train, category=matmul, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_018_matmul_with_transposed_both"
SOURCE_KB_ID = 18
CATEGORY = "matmul"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.M... |
kb1_020_leakyrelu | 20 | activation | fp32 | base | """Task kb1_020_leakyrelu (KernelBench Level 1 #20, split=train, category=activation, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_020_leakyrelu"
SOURCE_KB_ID = 20
CATEGORY = "activation"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module):
"""
Simple m... |
kb1_021_sigmoid | 21 | activation | fp32 | base | """Task kb1_021_sigmoid (KernelBench Level 1 #21, split=train, category=activation, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_021_sigmoid"
SOURCE_KB_ID = 21
CATEGORY = "activation"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module):
"""
Simple model... |
kb1_022_tanh | 22 | activation | fp32 | base | """Task kb1_022_tanh (KernelBench Level 1 #22, split=train, category=activation, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_022_tanh"
SOURCE_KB_ID = 22
CATEGORY = "activation"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module):
"""
Simple model that ... |
kb1_024_logsoftmax | 24 | activation | fp32 | base | """Task kb1_024_logsoftmax (KernelBench Level 1 #24, split=train, category=activation, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_024_logsoftmax"
SOURCE_KB_ID = 24
CATEGORY = "activation"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module):
"""
Simple... |
kb1_027_selu | 27 | activation | fp32 | base | """Task kb1_027_selu (KernelBench Level 1 #27, split=train, category=activation, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_027_selu"
SOURCE_KB_ID = 27
CATEGORY = "activation"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module):
"""
Simple model that ... |
kb1_028_hardsigmoid | 28 | activation | fp32 | base | """Task kb1_028_hardsigmoid (KernelBench Level 1 #28, split=train, category=activation, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_028_hardsigmoid"
SOURCE_KB_ID = 28
CATEGORY = "activation"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module):
"""
Simp... |
kb1_029_softplus | 29 | activation | fp32 | base | """Task kb1_029_softplus (KernelBench Level 1 #29, split=train, category=activation, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_029_softplus"
SOURCE_KB_ID = 29
CATEGORY = "activation"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module):
"""
Simple mod... |
kb1_030_softsign | 30 | activation | fp32 | base | """Task kb1_030_softsign (KernelBench Level 1 #30, split=train, category=activation, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_030_softsign"
SOURCE_KB_ID = 30
CATEGORY = "activation"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module):
"""
Simple mod... |
kb1_031_elu | 31 | activation | fp32 | base | """Task kb1_031_elu (KernelBench Level 1 #31, split=train, category=activation, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_031_elu"
SOURCE_KB_ID = 31
CATEGORY = "activation"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
import torch.nn.functional as F
class Model(nn.Module):
... |
kb1_032_hardtanh | 32 | activation | fp32 | base | """Task kb1_032_hardtanh (KernelBench Level 1 #32, split=train, category=activation, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_032_hardtanh"
SOURCE_KB_ID = 32
CATEGORY = "activation"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
import torch.nn.functional as F
class Model(nn... |
kb1_033_batchnorm | 33 | normalization | fp32 | base | """Task kb1_033_batchnorm (KernelBench Level 1 #33, split=train, category=normalization, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_033_batchnorm"
SOURCE_KB_ID = 33
CATEGORY = "normalization"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module):
"""
Si... |
kb1_034_instancenorm | 34 | normalization | fp32 | base | """Task kb1_034_instancenorm (KernelBench Level 1 #34, split=train, category=normalization, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_034_instancenorm"
SOURCE_KB_ID = 34
CATEGORY = "normalization"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module):
"""
... |
kb1_035_groupnorm | 35 | normalization | fp32 | base | """Task kb1_035_groupnorm (KernelBench Level 1 #35, split=train, category=normalization, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_035_groupnorm"
SOURCE_KB_ID = 35
CATEGORY = "normalization"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module):
"""
Si... |
kb1_037_frobeniusnorm | 37 | normalization | fp32 | base | """Task kb1_037_frobeniusnorm (KernelBench Level 1 #37, split=train, category=normalization, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_037_frobeniusnorm"
SOURCE_KB_ID = 37
CATEGORY = "normalization"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module):
""... |
kb1_038_l1norm | 38 | normalization | fp32 | base | """Task kb1_038_l1norm (KernelBench Level 1 #38, split=train, category=normalization, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_038_l1norm"
SOURCE_KB_ID = 38
CATEGORY = "normalization"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module):
"""
Simple m... |
kb1_039_l2norm | 39 | normalization | fp32 | base | """Task kb1_039_l2norm (KernelBench Level 1 #39, split=train, category=normalization, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_039_l2norm"
SOURCE_KB_ID = 39
CATEGORY = "normalization"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module):
"""
Simple m... |
kb1_041_max_pooling_1d | 41 | pooling | fp32 | base | """Task kb1_041_max_pooling_1d (KernelBench Level 1 #41, split=train, category=pooling, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_041_max_pooling_1d"
SOURCE_KB_ID = 41
CATEGORY = "pooling"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module):
"""
Simp... |
kb1_043_max_pooling_3d | 43 | pooling | fp32 | base | """Task kb1_043_max_pooling_3d (KernelBench Level 1 #43, split=train, category=pooling, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_043_max_pooling_3d"
SOURCE_KB_ID = 43
CATEGORY = "pooling"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module):
"""
Simp... |
kb1_044_average_pooling_1d | 44 | pooling | fp32 | base | """Task kb1_044_average_pooling_1d (KernelBench Level 1 #44, split=train, category=pooling, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_044_average_pooling_1d"
SOURCE_KB_ID = 44
CATEGORY = "pooling"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module):
"""
... |
kb1_045_average_pooling_2d | 45 | pooling | fp32 | base | """Task kb1_045_average_pooling_2d (KernelBench Level 1 #45, split=train, category=pooling, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_045_average_pooling_2d"
SOURCE_KB_ID = 45
CATEGORY = "pooling"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module):
"""
... |
kb1_046_average_pooling_3d | 46 | pooling | fp32 | base | """Task kb1_046_average_pooling_3d (KernelBench Level 1 #46, split=train, category=pooling, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_046_average_pooling_3d"
SOURCE_KB_ID = 46
CATEGORY = "pooling"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module):
"""
... |
kb1_048_mean_reduction_over_a_dimension | 48 | reduction_scan | fp32 | base | """Task kb1_048_mean_reduction_over_a_dimension (KernelBench Level 1 #48, split=train, category=reduction_scan, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_048_mean_reduction_over_a_dimension"
SOURCE_KB_ID = 48
CATEGORY = "reduction_scan"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn... |
kb1_049_max_reduction_over_a_dimension | 49 | reduction_scan | fp32 | base | """Task kb1_049_max_reduction_over_a_dimension (KernelBench Level 1 #49, split=train, category=reduction_scan, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_049_max_reduction_over_a_dimension"
SOURCE_KB_ID = 49
CATEGORY = "reduction_scan"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn a... |
kb1_050_conv_standard_2d_square_input_square_kernel | 50 | convolution | fp32 | base | """Task kb1_050_conv_standard_2d_square_input_square_kernel (KernelBench Level 1 #50, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_050_conv_standard_2d_square_input_square_kernel"
SOURCE_KB_ID = 50
CATEGORY = "convolution"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import tor... |
kb1_052_argmin_over_a_dimension | 52 | reduction_scan | fp32 | base | """Task kb1_052_argmin_over_a_dimension (KernelBench Level 1 #52, split=train, category=reduction_scan, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_052_argmin_over_a_dimension"
SOURCE_KB_ID = 52
CATEGORY = "reduction_scan"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Mo... |
kb1_053_min_reduction_over_a_dimension | 53 | reduction_scan | fp32 | base | """Task kb1_053_min_reduction_over_a_dimension (KernelBench Level 1 #53, split=train, category=reduction_scan, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_053_min_reduction_over_a_dimension"
SOURCE_KB_ID = 53
CATEGORY = "reduction_scan"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn a... |
kb1_054_conv_standard_3d_square_input_square_kernel | 54 | convolution | fp32 | base | """Task kb1_054_conv_standard_3d_square_input_square_kernel (KernelBench Level 1 #54, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_054_conv_standard_3d_square_input_square_kernel"
SOURCE_KB_ID = 54
CATEGORY = "convolution"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import tor... |
kb1_055_conv_standard_2d_asymmetric_input_square_kernel | 55 | convolution | fp32 | base | """Task kb1_055_conv_standard_2d_asymmetric_input_square_kernel (KernelBench Level 1 #55, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_055_conv_standard_2d_asymmetric_input_square_kernel"
SOURCE_KB_ID = 55
CATEGORY = "convolution"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
im... |
kb1_056_conv_standard_2d_asymmetric_input_asymmetric_kernel | 56 | convolution | fp32 | base | """Task kb1_056_conv_standard_2d_asymmetric_input_asymmetric_kernel (KernelBench Level 1 #56, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_056_conv_standard_2d_asymmetric_input_asymmetric_kernel"
SOURCE_KB_ID = 56
CATEGORY = "convolution"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "b... |
kb1_057_conv_transposed_2d_square_input_square_kernel | 57 | convolution | fp32 | base | """Task kb1_057_conv_transposed_2d_square_input_square_kernel (KernelBench Level 1 #57, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_057_conv_transposed_2d_square_input_square_kernel"
SOURCE_KB_ID = 57
CATEGORY = "convolution"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import... |
kb1_058_conv_transposed_3d_asymmetric_input_asymmetric_kernel | 58 | convolution | fp32 | base | """Task kb1_058_conv_transposed_3d_asymmetric_input_asymmetric_kernel (KernelBench Level 1 #58, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_058_conv_transposed_3d_asymmetric_input_asymmetric_kernel"
SOURCE_KB_ID = 58
CATEGORY = "convolution"
SPLIT = "train"
DTYPE = "fp32"
VARIANT ... |
kb1_059_conv_standard_3d_asymmetric_input_square_kernel | 59 | convolution | fp32 | base | """Task kb1_059_conv_standard_3d_asymmetric_input_square_kernel (KernelBench Level 1 #59, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_059_conv_standard_3d_asymmetric_input_square_kernel"
SOURCE_KB_ID = 59
CATEGORY = "convolution"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
im... |
kb1_060_conv_standard_3d_square_input_asymmetric_kernel | 60 | convolution | fp32 | base | """Task kb1_060_conv_standard_3d_square_input_asymmetric_kernel (KernelBench Level 1 #60, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_060_conv_standard_3d_square_input_asymmetric_kernel"
SOURCE_KB_ID = 60
CATEGORY = "convolution"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
im... |
kb1_061_conv_transposed_3d_square_input_square_kernel | 61 | convolution | fp32 | base | """Task kb1_061_conv_transposed_3d_square_input_square_kernel (KernelBench Level 1 #61, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_061_conv_transposed_3d_square_input_square_kernel"
SOURCE_KB_ID = 61
CATEGORY = "convolution"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import... |
kb1_062_conv_standard_2d_square_input_asymmetric_kernel | 62 | convolution | fp32 | base | """Task kb1_062_conv_standard_2d_square_input_asymmetric_kernel (KernelBench Level 1 #62, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_062_conv_standard_2d_square_input_asymmetric_kernel"
SOURCE_KB_ID = 62
CATEGORY = "convolution"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
im... |
kb1_064_conv_transposed_1d | 64 | convolution | fp32 | base | """Task kb1_064_conv_transposed_1d (KernelBench Level 1 #64, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_064_conv_transposed_1d"
SOURCE_KB_ID = 64
CATEGORY = "convolution"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module):
... |
kb1_065_conv_transposed_2d_square_input_asymmetric_kernel | 65 | convolution | fp32 | base | """Task kb1_065_conv_transposed_2d_square_input_asymmetric_kernel (KernelBench Level 1 #65, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_065_conv_transposed_2d_square_input_asymmetric_kernel"
SOURCE_KB_ID = 65
CATEGORY = "convolution"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"... |
kb1_066_conv_standard_3d_asymmetric_input_asymmetric_kernel | 66 | convolution | fp32 | base | """Task kb1_066_conv_standard_3d_asymmetric_input_asymmetric_kernel (KernelBench Level 1 #66, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_066_conv_standard_3d_asymmetric_input_asymmetric_kernel"
SOURCE_KB_ID = 66
CATEGORY = "convolution"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "b... |
kb1_068_conv_transposed_3d_square_input_asymmetric_kernel | 68 | convolution | fp32 | base | """Task kb1_068_conv_transposed_3d_square_input_asymmetric_kernel (KernelBench Level 1 #68, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_068_conv_transposed_3d_square_input_asymmetric_kernel"
SOURCE_KB_ID = 68
CATEGORY = "convolution"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"... |
kb1_069_conv_transposed_2d_asymmetric_input_asymmetric_kernel | 69 | convolution | fp32 | base | """Task kb1_069_conv_transposed_2d_asymmetric_input_asymmetric_kernel (KernelBench Level 1 #69, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_069_conv_transposed_2d_asymmetric_input_asymmetric_kernel"
SOURCE_KB_ID = 69
CATEGORY = "convolution"
SPLIT = "train"
DTYPE = "fp32"
VARIANT ... |
kb1_070_conv_transposed_3d_asymmetric_input_square_kernel | 70 | convolution | fp32 | base | """Task kb1_070_conv_transposed_3d_asymmetric_input_square_kernel (KernelBench Level 1 #70, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_070_conv_transposed_3d_asymmetric_input_square_kernel"
SOURCE_KB_ID = 70
CATEGORY = "convolution"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"... |
kb1_071_conv_transposed_2d_asymmetric_input_square_kernel | 71 | convolution | fp32 | base | """Task kb1_071_conv_transposed_2d_asymmetric_input_square_kernel (KernelBench Level 1 #71, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_071_conv_transposed_2d_asymmetric_input_square_kernel"
SOURCE_KB_ID = 71
CATEGORY = "convolution"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"... |
kb1_072_conv_transposed_3d_asymmetric_input_asymmetric_kernel_strided_padded_grouped | 72 | convolution | fp32 | base | """Task kb1_072_conv_transposed_3d_asymmetric_input_asymmetric_kernel_strided_padded_grouped (KernelBench Level 1 #72, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_072_conv_transposed_3d_asymmetric_input_asymmetric_kernel_strided_padded_grouped"
SOURCE_KB_ID = 72
CATEGORY = "convol... |
kb1_073_conv_transposed_3d_asymmetric_input_square_kernel_strided_padded_grouped | 73 | convolution | fp32 | base | """Task kb1_073_conv_transposed_3d_asymmetric_input_square_kernel_strided_padded_grouped (KernelBench Level 1 #73, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_073_conv_transposed_3d_asymmetric_input_square_kernel_strided_padded_grouped"
SOURCE_KB_ID = 73
CATEGORY = "convolution"
S... |
kb1_074_conv_transposed_1d_dilated | 74 | convolution | fp32 | base | """Task kb1_074_conv_transposed_1d_dilated (KernelBench Level 1 #74, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_074_conv_transposed_1d_dilated"
SOURCE_KB_ID = 74
CATEGORY = "convolution"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Mo... |
kb1_075_conv_transposed_2d_asymmetric_input_asymmetric_kernel_strided_grouped_padded_dilated | 75 | convolution | fp32 | base | """Task kb1_075_conv_transposed_2d_asymmetric_input_asymmetric_kernel_strided_grouped_padded_dilated (KernelBench Level 1 #75, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_075_conv_transposed_2d_asymmetric_input_asymmetric_kernel_strided_grouped_padded_dilated"
SOURCE_KB_ID = 75
CA... |
kb1_076_conv_standard_1d_dilated_strided | 76 | convolution | fp32 | base | """Task kb1_076_conv_standard_1d_dilated_strided (KernelBench Level 1 #76, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_076_conv_standard_1d_dilated_strided"
SOURCE_KB_ID = 76
CATEGORY = "convolution"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as ... |
kb1_077_conv_transposed_3d_square_input_square_kernel_padded_dilated_strided | 77 | convolution | fp32 | base | """Task kb1_077_conv_transposed_3d_square_input_square_kernel_padded_dilated_strided (KernelBench Level 1 #77, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_077_conv_transposed_3d_square_input_square_kernel_padded_dilated_strided"
SOURCE_KB_ID = 77
CATEGORY = "convolution"
SPLIT = "... |
kb1_078_conv_transposed_2d_asymmetric_input_asymmetric_kernel_padded | 78 | convolution | fp32 | base | """Task kb1_078_conv_transposed_2d_asymmetric_input_asymmetric_kernel_padded (KernelBench Level 1 #78, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_078_conv_transposed_2d_asymmetric_input_asymmetric_kernel_padded"
SOURCE_KB_ID = 78
CATEGORY = "convolution"
SPLIT = "train"
DTYPE = "... |
kb1_079_conv_transposed_1d_asymmetric_input_square_kernel_padded_strided_dilated | 79 | convolution | fp32 | base | """Task kb1_079_conv_transposed_1d_asymmetric_input_square_kernel_padded_strided_dilated (KernelBench Level 1 #79, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_079_conv_transposed_1d_asymmetric_input_square_kernel_padded_strided_dilated"
SOURCE_KB_ID = 79
CATEGORY = "convolution"
S... |
kb1_080_conv_standard_2d_square_input_asymmetric_kernel_dilated_padded | 80 | convolution | fp32 | base | """Task kb1_080_conv_standard_2d_square_input_asymmetric_kernel_dilated_padded (KernelBench Level 1 #80, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_080_conv_standard_2d_square_input_asymmetric_kernel_dilated_padded"
SOURCE_KB_ID = 80
CATEGORY = "convolution"
SPLIT = "train"
DTYPE... |
kb1_081_conv_transposed_2d_asymmetric_input_square_kernel_dilated_padded_strided | 81 | convolution | fp32 | base | """Task kb1_081_conv_transposed_2d_asymmetric_input_square_kernel_dilated_padded_strided (KernelBench Level 1 #81, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_081_conv_transposed_2d_asymmetric_input_square_kernel_dilated_padded_strided"
SOURCE_KB_ID = 81
CATEGORY = "convolution"
S... |
kb1_083_conv_depthwise_2d_square_input_asymmetric_kernel | 83 | convolution | fp32 | base | """Task kb1_083_conv_depthwise_2d_square_input_asymmetric_kernel (KernelBench Level 1 #83, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_083_conv_depthwise_2d_square_input_asymmetric_kernel"
SOURCE_KB_ID = 83
CATEGORY = "convolution"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
... |
kb1_084_conv_depthwise_2d_asymmetric_input_square_kernel | 84 | convolution | fp32 | base | """Task kb1_084_conv_depthwise_2d_asymmetric_input_square_kernel (KernelBench Level 1 #84, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_084_conv_depthwise_2d_asymmetric_input_square_kernel"
SOURCE_KB_ID = 84
CATEGORY = "convolution"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
... |
kb1_085_conv_depthwise_2d_asymmetric_input_asymmetric_kernel | 85 | convolution | fp32 | base | """Task kb1_085_conv_depthwise_2d_asymmetric_input_asymmetric_kernel (KernelBench Level 1 #85, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_085_conv_depthwise_2d_asymmetric_input_asymmetric_kernel"
SOURCE_KB_ID = 85
CATEGORY = "convolution"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = ... |
kb1_086_conv_depthwise_separable_2d | 86 | convolution | fp32 | base | """Task kb1_086_conv_depthwise_separable_2d (KernelBench Level 1 #86, split=train, category=convolution, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_086_conv_depthwise_separable_2d"
SOURCE_KB_ID = 86
CATEGORY = "convolution"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class ... |
kb1_088_mingptnewgelu | 88 | activation | fp32 | base | """Task kb1_088_mingptnewgelu (KernelBench Level 1 #88, split=train, category=activation, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_088_mingptnewgelu"
SOURCE_KB_ID = 88
CATEGORY = "activation"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
import torch.nn.functional as F
impor... |
kb1_090_cumprod | 90 | reduction_scan | fp32 | base | """Task kb1_090_cumprod (KernelBench Level 1 #90, split=train, category=reduction_scan, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_090_cumprod"
SOURCE_KB_ID = 90
CATEGORY = "reduction_scan"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module):
"""
A mo... |
kb1_091_cumsum_reverse | 91 | reduction_scan | fp32 | base | """Task kb1_091_cumsum_reverse (KernelBench Level 1 #91, split=train, category=reduction_scan, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_091_cumsum_reverse"
SOURCE_KB_ID = 91
CATEGORY = "reduction_scan"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module):
... |
kb1_092_cumsum_exclusive | 92 | reduction_scan | fp32 | base | """Task kb1_092_cumsum_exclusive (KernelBench Level 1 #92, split=train, category=reduction_scan, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_092_cumsum_exclusive"
SOURCE_KB_ID = 92
CATEGORY = "reduction_scan"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module)... |
kb1_093_masked_cumsum | 93 | reduction_scan | fp32 | base | """Task kb1_093_masked_cumsum (KernelBench Level 1 #93, split=train, category=reduction_scan, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_093_masked_cumsum"
SOURCE_KB_ID = 93
CATEGORY = "reduction_scan"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module):
... |
kb1_096_huberloss | 96 | loss_attention | fp32 | base | """Task kb1_096_huberloss (KernelBench Level 1 #96, split=train, category=loss_attention, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_096_huberloss"
SOURCE_KB_ID = 96
CATEGORY = "loss_attention"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module):
"""
... |
kb1_098_kldivloss | 98 | loss_attention | fp32 | base | """Task kb1_098_kldivloss (KernelBench Level 1 #98, split=train, category=loss_attention, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_098_kldivloss"
SOURCE_KB_ID = 98
CATEGORY = "loss_attention"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module):
"""
... |
kb1_099_tripletmarginloss | 99 | loss_attention | fp32 | base | """Task kb1_099_tripletmarginloss (KernelBench Level 1 #99, split=train, category=loss_attention, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_099_tripletmarginloss"
SOURCE_KB_ID = 99
CATEGORY = "loss_attention"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Modul... |
kb1_100_hingeloss | 100 | loss_attention | fp32 | base | """Task kb1_100_hingeloss (KernelBench Level 1 #100, split=train, category=loss_attention, dtype=fp32, variant=base)."""
PROBLEM_ID = "kb1_100_hingeloss"
SOURCE_KB_ID = 100
CATEGORY = "loss_attention"
SPLIT = "train"
DTYPE = "fp32"
VARIANT = "base"
import torch
import torch.nn as nn
class Model(nn.Module):
"""
... |
kb1_002_standard_matrix_multiplication__bf16 | 2 | matmul | bf16 | bf16 | """Task kb1_002_standard_matrix_multiplication__bf16 (KernelBench Level 1 #2, split=train, category=matmul, dtype=bf16, variant=bf16)."""
PROBLEM_ID = "kb1_002_standard_matrix_multiplication__bf16"
SOURCE_KB_ID = 2
CATEGORY = "matmul"
SPLIT = "train"
DTYPE = "bf16"
VARIANT = "bf16"
import torch
import torch.nn as nn
... |
kb1_006_matmul_with_large_k_dimension__bf16 | 6 | matmul | bf16 | bf16 | """Task kb1_006_matmul_with_large_k_dimension__bf16 (KernelBench Level 1 #6, split=train, category=matmul, dtype=bf16, variant=bf16)."""
PROBLEM_ID = "kb1_006_matmul_with_large_k_dimension__bf16"
SOURCE_KB_ID = 6
CATEGORY = "matmul"
SPLIT = "train"
DTYPE = "bf16"
VARIANT = "bf16"
import torch
import torch.nn as nn
cl... |
kb1_016_matmul_with_transposed_a__bf16 | 16 | matmul | bf16 | bf16 | """Task kb1_016_matmul_with_transposed_a__bf16 (KernelBench Level 1 #16, split=train, category=matmul, dtype=bf16, variant=bf16)."""
PROBLEM_ID = "kb1_016_matmul_with_transposed_a__bf16"
SOURCE_KB_ID = 16
CATEGORY = "matmul"
SPLIT = "train"
DTYPE = "bf16"
VARIANT = "bf16"
import torch
import torch.nn as nn
class Mode... |
kb1_018_matmul_with_transposed_both__bf16 | 18 | matmul | bf16 | bf16 | """Task kb1_018_matmul_with_transposed_both__bf16 (KernelBench Level 1 #18, split=train, category=matmul, dtype=bf16, variant=bf16)."""
PROBLEM_ID = "kb1_018_matmul_with_transposed_both__bf16"
SOURCE_KB_ID = 18
CATEGORY = "matmul"
SPLIT = "train"
DTYPE = "bf16"
VARIANT = "bf16"
import torch
import torch.nn as nn
clas... |
kb1_020_leakyrelu__bf16 | 20 | activation | bf16 | bf16 | """Task kb1_020_leakyrelu__bf16 (KernelBench Level 1 #20, split=train, category=activation, dtype=bf16, variant=bf16)."""
PROBLEM_ID = "kb1_020_leakyrelu__bf16"
SOURCE_KB_ID = 20
CATEGORY = "activation"
SPLIT = "train"
DTYPE = "bf16"
VARIANT = "bf16"
import torch
import torch.nn as nn
class Model(nn.Module):
"""
... |
kb1_021_sigmoid__bf16 | 21 | activation | bf16 | bf16 | """Task kb1_021_sigmoid__bf16 (KernelBench Level 1 #21, split=train, category=activation, dtype=bf16, variant=bf16)."""
PROBLEM_ID = "kb1_021_sigmoid__bf16"
SOURCE_KB_ID = 21
CATEGORY = "activation"
SPLIT = "train"
DTYPE = "bf16"
VARIANT = "bf16"
import torch
import torch.nn as nn
class Model(nn.Module):
"""
... |
kernel-train-problems
Training problems and Verifier-v2-verified Triton teacher traces for alithekazakh/kernel-pipeline.
Contents
problems/*.py&train_problems.jsonl: 140 training problems derived from the KernelBench Level-1 split (80base PyTorch ops acrossmatmul,activation,normalization,reduction_scan,pooling,convolution, andloss_attention+60dtype/shape variants such as__fp16,__bf16,__shape_wide,__shape_tall,__shape_nonpow2).teacher_traces_v2_clean.jsonl: 140 clean Triton teacher traces covering all 140 training problems (80/80base ops).manifest_train.json: Train-only problem manifest (140train /0eval).
How Traces Were Generated and Verified
Teacher traces were generated by Gemini 4 Neon and kept only if they passed verifier v2 end to end: 140/140 PASS, 0 dead-kernel fallbacks.
Every teacher kernel in teacher_traces_v2_clean.jsonl was authored cleanly as a @triton.jit kernel wrapped in ModelNew(nn.Module) (matching the reference PyTorch Model signature and parameters) and verified end to end on GPU using verifier.py v2 from alithekazakh/kernel-pipeline:
- Static + runtime genuine-launch check: wraps
triton.runtime.jit.JITFunction.runat runtime to verify that candidate-defined Triton kernels actually launch duringModelNew.forward()(0/140dead-kernel PyTorch fallbacks). - Candidate-before-reference trial execution: eliminates stale output-buffer reuse exploits.
- Full-device all-stream CUDA synchronization: prevents asynchronous side-stream timing cheats.
- 140 / 140 traces PASS under Verifier v2 (
status == "PASS"andtriton_launched == True).
Held-Out Eval Set Policy (Important)
The 20-problem held-out evaluation split (strictly disjoint from these 140 training problems by upstream KernelBench source_kb_id) is deliberately withheld from this public dataset and from the public GitHub repository so that benchmark measurements stay honest and uncontaminated.
Source & License
- Upstream source: ScalingIntelligence/KernelBench (Level-1 problems, MIT license).
- Dataset & traces license: Apache-2.0.
- Downloads last month
- -