Upload 140 train problems and 140 Verifier-v2-verified clean teacher traces
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
Files changed (50)
- README.mdAdded+51
- manifest_train.jsonAdded+1977
- problems/kb1_002_standard_matrix_multiplication.pyAdded+55
- problems/kb1_002_standard_matrix_multiplication__bf16.pyAdded+55
- problems/kb1_002_standard_matrix_multiplication__fp16.pyAdded+55
- problems/kb1_002_standard_matrix_multiplication__shape_nonpow2.pyAdded+58
- problems/kb1_004_matrix_vector_multiplication.pyAdded+53
- problems/kb1_004_matrix_vector_multiplication__shape_wide.pyAdded+55
- problems/kb1_005_matrix_scalar_multiplication.pyAdded+53
- problems/kb1_005_matrix_scalar_multiplication__fp16.pyAdded+53
- problems/kb1_005_matrix_scalar_multiplication__shape_nonpow2.pyAdded+55
- problems/kb1_006_matmul_with_large_k_dimension.pyAdded+55
- problems/kb1_006_matmul_with_large_k_dimension__bf16.pyAdded+55
- problems/kb1_006_matmul_with_large_k_dimension__shape_tall.pyAdded+58
- problems/kb1_007_matmul_with_small_k_dimension.pyAdded+55
- problems/kb1_007_matmul_with_small_k_dimension__shape_rect.pyAdded+58
- problems/kb1_008_matmul_with_irregular_shapes.pyAdded+55
- problems/kb1_008_matmul_with_irregular_shapes__fp16.pyAdded+55
- problems/kb1_009_tall_skinny_matrix_multiplication.pyAdded+53
- problems/kb1_009_tall_skinny_matrix_multiplication__shape_skinny.pyAdded+55
- problems/kb1_010_3d_tensor_matrix_multiplication.pyAdded+57
- problems/kb1_010_3d_tensor_matrix_multiplication__fp16.pyAdded+57
- problems/kb1_010_3d_tensor_matrix_multiplication__shape_large_batch.pyAdded+61
- problems/kb1_011_4d_tensor_matrix_multiplication.pyAdded+68
- problems/kb1_012_matmul_with_diagonal_matrices.pyAdded+56
- problems/kb1_012_matmul_with_diagonal_matrices__shape_rect.pyAdded+58
- problems/kb1_013_matmul_for_symmetric_matrices.pyAdded+65
- problems/kb1_013_matmul_for_symmetric_matrices__shape_small.pyAdded+66
- problems/kb1_014_matmul_for_upper_triangular_matrices.pyAdded+63
- problems/kb1_015_matmul_for_lower_triangular_matrices.pyAdded+53
- problems/kb1_016_matmul_with_transposed_a.pyAdded+55
- problems/kb1_016_matmul_with_transposed_a__bf16.pyAdded+55
- problems/kb1_016_matmul_with_transposed_a__shape_nonpow2.pyAdded+58
- problems/kb1_018_matmul_with_transposed_both.pyAdded+55
- problems/kb1_018_matmul_with_transposed_both__bf16.pyAdded+55
- problems/kb1_020_leakyrelu.pyAdded+58
- problems/kb1_020_leakyrelu__bf16.pyAdded+58
- problems/kb1_020_leakyrelu__shape_wide.pyAdded+60
- problems/kb1_021_sigmoid.pyAdded+51
- problems/kb1_021_sigmoid__bf16.pyAdded+51
- problems/kb1_021_sigmoid__shape_nonpow2.pyAdded+53
- problems/kb1_022_tanh.pyAdded+51
- problems/kb1_022_tanh__fp16.pyAdded+51
- problems/kb1_022_tanh__shape_tall.pyAdded+53
- problems/kb1_024_logsoftmax.pyAdded+52
- problems/kb1_024_logsoftmax__bf16.pyAdded+52
- problems/kb1_024_logsoftmax__shape_vocab.pyAdded+54
- problems/kb1_027_selu.pyAdded+51
- problems/kb1_027_selu__bf16.pyAdded+51
- problems/kb1_027_selu__shape_nonpow2.pyAdded+53
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051---license: apache-2.0task_categories: - text-generationlanguage: - entags: - triton - cuda - gpu-kernels - kernelbench - rlvr - post-trainingconfigs: - config_name: problems data_files: - split: train path: train_problems.jsonl - config_name: teacher_traces data_files: - split: train path: teacher_traces_v2_clean.jsonl---
# kernel-train-problems
Training problems and Verifier-v2-verified Triton teacher traces for [`alithekazakh/kernel-pipeline`](https://github.com/alithekazakh/kernel-pipeline).
## Contents
- `problems/*.py` & `train_problems.jsonl`: **140** training problems derived from the **KernelBench Level-1** split (`80` base PyTorch ops across `matmul`, `activation`, `normalization`, `reduction_scan`, `pooling`, `convolution`, and `loss_attention` + `60` dtype/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/80` base ops).- `manifest_train.json`: Train-only problem manifest (`140` train / `0` eval).
## How Traces Were Generated and Verified
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`](https://github.com/alithekazakh/kernel-pipeline):
- **Static + runtime genuine-launch check**: wraps `triton.runtime.jit.JITFunction.run` at runtime to verify that candidate-defined Triton kernels actually launch during `ModelNew.forward()` (`0/140` dead-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"` and `triton_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](https://github.com/ScalingIntelligence/KernelBench) (Level-1 problems, MIT license).- **Dataset & traces license**: Apache-2.0.123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977{ "train": [ { "problem_id": "kb1_002_standard_matrix_multiplication", "source_kb_id": 2, "source_file": "2_Standard_matrix_multiplication_.py", "category": "matmul", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_002_standard_matrix_multiplication.py", "verified": true, "ref_ms": 1.093632, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_004_matrix_vector_multiplication", "source_kb_id": 4, "source_file": "4_Matrix_vector_multiplication_.py", "category": "matmul", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_004_matrix_vector_multiplication.py", "verified": true, "ref_ms": 0.377856, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_005_matrix_scalar_multiplication", "source_kb_id": 5, "source_file": "5_Matrix_scalar_multiplication.py", "category": "matmul", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_005_matrix_scalar_multiplication.py", "verified": true, "ref_ms": 0.751616, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_006_matmul_with_large_k_dimension", "source_kb_id": 6, "source_file": "6_Matmul_with_large_K_dimension_.py", "category": "matmul", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_006_matmul_with_large_k_dimension.py", "verified": true, "ref_ms": 1.041408, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_007_matmul_with_small_k_dimension", "source_kb_id": 7, "source_file": "7_Matmul_with_small_K_dimension_.py", "category": "matmul", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_007_matmul_with_small_k_dimension.py", "verified": true, "ref_ms": 0.578048, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_008_matmul_with_irregular_shapes", "source_kb_id": 8, "source_file": "8_Matmul_with_irregular_shapes_.py", "category": "matmul", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_008_matmul_with_irregular_shapes.py", "verified": true, "ref_ms": 2.94144, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_009_tall_skinny_matrix_multiplication", "source_kb_id": 9, "source_file": "9_Tall_skinny_matrix_multiplication_.py", "category": "matmul", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_009_tall_skinny_matrix_multiplication.py", "verified": true, "ref_ms": 2.2016, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_010_3d_tensor_matrix_multiplication", "source_kb_id": 10, "source_file": "10_3D_tensor_matrix_multiplication.py", "category": "matmul", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_010_3d_tensor_matrix_multiplication.py", "verified": true, "ref_ms": 1.820672, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_011_4d_tensor_matrix_multiplication", "source_kb_id": 11, "source_file": "11_4D_tensor_matrix_multiplication.py", "category": "matmul", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_011_4d_tensor_matrix_multiplication.py", "verified": true, "ref_ms": 1.94816, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_012_matmul_with_diagonal_matrices", "source_kb_id": 12, "source_file": "12_Matmul_with_diagonal_matrices_.py", "category": "matmul", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_012_matmul_with_diagonal_matrices.py", "verified": true, "ref_ms": 0.191488, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_013_matmul_for_symmetric_matrices", "source_kb_id": 13, "source_file": "13_Matmul_for_symmetric_matrices.py", "category": "matmul", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_013_matmul_for_symmetric_matrices.py", "verified": true, "ref_ms": 0.478208, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_014_matmul_for_upper_triangular_matrices", "source_kb_id": 14, "source_file": "14_Matmul_for_upper_triangular_matrices.py", "category": "matmul", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_014_matmul_for_upper_triangular_matrices.py", "verified": true, "ref_ms": 0.564224, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_015_matmul_for_lower_triangular_matrices", "source_kb_id": 15, "source_file": "15_Matmul_for_lower_triangular_matrices.py", "category": "matmul", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_015_matmul_for_lower_triangular_matrices.py", "verified": true, "ref_ms": 0.51712, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_016_matmul_with_transposed_a", "source_kb_id": 16, "source_file": "16_Matmul_with_transposed_A.py", "category": "matmul", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_016_matmul_with_transposed_a.py", "verified": true, "ref_ms": 0.989696, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_018_matmul_with_transposed_both", "source_kb_id": 18, "source_file": "18_Matmul_with_transposed_both.py", "category": "matmul", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_018_matmul_with_transposed_both.py", "verified": true, "ref_ms": 1.020928, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_020_leakyrelu", "source_kb_id": 20, "source_file": "20_LeakyReLU.py", "category": "activation", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_020_leakyrelu.py", "verified": true, "ref_ms": 0.379904, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_021_sigmoid", "source_kb_id": 21, "source_file": "21_Sigmoid.py", "category": "activation", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_021_sigmoid.py", "verified": true, "ref_ms": 0.379904, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_022_tanh", "source_kb_id": 22, "source_file": "22_Tanh.py", "category": "activation", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_022_tanh.py", "verified": true, "ref_ms": 0.380928, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_024_logsoftmax", "source_kb_id": 24, "source_file": "24_LogSoftmax.py", "category": "activation", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_024_logsoftmax.py", "verified": true, "ref_ms": 0.384512, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_027_selu", "source_kb_id": 27, "source_file": "27_SELU_.py", "category": "activation", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_027_selu.py", "verified": true, "ref_ms": 0.37888, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_028_hardsigmoid", "source_kb_id": 28, "source_file": "28_HardSigmoid.py", "category": "activation", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_028_hardsigmoid.py", "verified": true, "ref_ms": 0.37888, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_029_softplus", "source_kb_id": 29, "source_file": "29_Softplus.py", "category": "activation", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_029_softplus.py", "verified": true, "ref_ms": 0.380928, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_030_softsign", "source_kb_id": 30, "source_file": "30_Softsign.py", "category": "activation", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_030_softsign.py", "verified": true, "ref_ms": 1.358336, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_031_elu", "source_kb_id": 31, "source_file": "31_ELU.py", "category": "activation", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_031_elu.py", "verified": true, "ref_ms": 0.379904, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_032_hardtanh", "source_kb_id": 32, "source_file": "32_HardTanh.py", "category": "activation", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_032_hardtanh.py", "verified": true, "ref_ms": 0.37888, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_033_batchnorm", "source_kb_id": 33, "source_file": "33_BatchNorm.py", "category": "normalization", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_033_batchnorm.py", "verified": true, "ref_ms": 0.857088, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_034_instancenorm", "source_kb_id": 34, "source_file": "34_InstanceNorm.py", "category": "normalization", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_034_instancenorm.py", "verified": true, "ref_ms": 1.153536, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_035_groupnorm", "source_kb_id": 35, "source_file": "35_GroupNorm_.py", "category": "normalization", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_035_groupnorm.py", "verified": true, "ref_ms": 1.200128, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_037_frobeniusnorm", "source_kb_id": 37, "source_file": "37_FrobeniusNorm_.py", "category": "normalization", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_037_frobeniusnorm.py", "verified": true, "ref_ms": 1.112064, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_038_l1norm", "source_kb_id": 38, "source_file": "38_L1Norm_.py", "category": "normalization", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_038_l1norm.py", "verified": true, "ref_ms": 0.940544, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_039_l2norm", "source_kb_id": 39, "source_file": "39_L2Norm_.py", "category": "normalization", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_039_l2norm.py", "verified": true, "ref_ms": 0.562176, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_041_max_pooling_1d", "source_kb_id": 41, "source_file": "41_Max_Pooling_1D.py", "category": "pooling", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_041_max_pooling_1d.py", "verified": true, "ref_ms": 0.907264, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_043_max_pooling_3d", "source_kb_id": 43, "source_file": "43_Max_Pooling_3D.py", "category": "pooling", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_043_max_pooling_3d.py", "verified": true, "ref_ms": 0.118784, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_044_average_pooling_1d", "source_kb_id": 44, "source_file": "44_Average_Pooling_1D.py", "category": "pooling", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_044_average_pooling_1d.py", "verified": true, "ref_ms": 1.069056, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_045_average_pooling_2d", "source_kb_id": 45, "source_file": "45_Average_Pooling_2D.py", "category": "pooling", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_045_average_pooling_2d.py", "verified": true, "ref_ms": 1.50528, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_046_average_pooling_3d", "source_kb_id": 46, "source_file": "46_Average_Pooling_3D.py", "category": "pooling", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_046_average_pooling_3d.py", "verified": true, "ref_ms": 0.186368, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_048_mean_reduction_over_a_dimension", "source_kb_id": 48, "source_file": "48_Mean_reduction_over_a_dimension.py", "category": "reduction_scan", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_048_mean_reduction_over_a_dimension.py", "verified": true, "ref_ms": 0.257536, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_049_max_reduction_over_a_dimension", "source_kb_id": 49, "source_file": "49_Max_reduction_over_a_dimension.py", "category": "reduction_scan", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_049_max_reduction_over_a_dimension.py", "verified": true, "ref_ms": 0.19968, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_050_conv_standard_2d_square_input_square_kernel", "source_kb_id": 50, "source_file": "50_conv_standard_2D__square_input__square_kernel.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_050_conv_standard_2d_square_input_square_kernel.py", "verified": true, "ref_ms": 2.393088, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_052_argmin_over_a_dimension", "source_kb_id": 52, "source_file": "52_Argmin_over_a_dimension.py", "category": "reduction_scan", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_052_argmin_over_a_dimension.py", "verified": true, "ref_ms": 0.198656, "inferred_dtype": "int64", "self_check_error": null }, { "problem_id": "kb1_053_min_reduction_over_a_dimension", "source_kb_id": 53, "source_file": "53_Min_reduction_over_a_dimension.py", "category": "reduction_scan", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_053_min_reduction_over_a_dimension.py", "verified": true, "ref_ms": 0.19968, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_054_conv_standard_3d_square_input_square_kernel", "source_kb_id": 54, "source_file": "54_conv_standard_3D__square_input__square_kernel.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_054_conv_standard_3d_square_input_square_kernel.py", "verified": true, "ref_ms": 1.803776, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_055_conv_standard_2d_asymmetric_input_square_kernel", "source_kb_id": 55, "source_file": "55_conv_standard_2D__asymmetric_input__square_kernel.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_055_conv_standard_2d_asymmetric_input_square_kernel.py", "verified": true, "ref_ms": 1.113088, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_056_conv_standard_2d_asymmetric_input_asymmetric_kernel", "source_kb_id": 56, "source_file": "56_conv_standard_2D__asymmetric_input__asymmetric_kernel.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_056_conv_standard_2d_asymmetric_input_asymmetric_kernel.py", "verified": true, "ref_ms": 0.787968, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_057_conv_transposed_2d_square_input_square_kernel", "source_kb_id": 57, "source_file": "57_conv_transposed_2D__square_input__square_kernel.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_057_conv_transposed_2d_square_input_square_kernel.py", "verified": true, "ref_ms": 1.178112, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_058_conv_transposed_3d_asymmetric_input_asymmetric_kernel", "source_kb_id": 58, "source_file": "58_conv_transposed_3D__asymmetric_input__asymmetric_kernel.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_058_conv_transposed_3d_asymmetric_input_asymmetric_kernel.py", "verified": true, "ref_ms": 1.644032, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_059_conv_standard_3d_asymmetric_input_square_kernel", "source_kb_id": 59, "source_file": "59_conv_standard_3D__asymmetric_input__square_kernel.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_059_conv_standard_3d_asymmetric_input_square_kernel.py", "verified": true, "ref_ms": 1.915392, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_060_conv_standard_3d_square_input_asymmetric_kernel", "source_kb_id": 60, "source_file": "60_conv_standard_3D__square_input__asymmetric_kernel.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_060_conv_standard_3d_square_input_asymmetric_kernel.py", "verified": true, "ref_ms": 5.71392, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_061_conv_transposed_3d_square_input_square_kernel", "source_kb_id": 61, "source_file": "61_conv_transposed_3D__square_input__square_kernel.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_061_conv_transposed_3d_square_input_square_kernel.py", "verified": true, "ref_ms": 0.308224, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_062_conv_standard_2d_square_input_asymmetric_kernel", "source_kb_id": 62, "source_file": "62_conv_standard_2D__square_input__asymmetric_kernel.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_062_conv_standard_2d_square_input_asymmetric_kernel.py", "verified": true, "ref_ms": 1.921024, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_064_conv_transposed_1d", "source_kb_id": 64, "source_file": "64_conv_transposed_1D.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_064_conv_transposed_1d.py", "verified": true, "ref_ms": 0.86016, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_065_conv_transposed_2d_square_input_asymmetric_kernel", "source_kb_id": 65, "source_file": "65_conv_transposed_2D__square_input__asymmetric_kernel.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_065_conv_transposed_2d_square_input_asymmetric_kernel.py", "verified": true, "ref_ms": 1.128448, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_066_conv_standard_3d_asymmetric_input_asymmetric_kernel", "source_kb_id": 66, "source_file": "66_conv_standard_3D__asymmetric_input__asymmetric_kernel.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_066_conv_standard_3d_asymmetric_input_asymmetric_kernel.py", "verified": true, "ref_ms": 5.300736, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_068_conv_transposed_3d_square_input_asymmetric_kernel", "source_kb_id": 68, "source_file": "68_conv_transposed_3D__square_input__asymmetric_kernel.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_068_conv_transposed_3d_square_input_asymmetric_kernel.py", "verified": true, "ref_ms": 1.260544, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_069_conv_transposed_2d_asymmetric_input_asymmetric_kernel", "source_kb_id": 69, "source_file": "69_conv_transposed_2D__asymmetric_input__asymmetric_kernel.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_069_conv_transposed_2d_asymmetric_input_asymmetric_kernel.py", "verified": true, "ref_ms": 1.005568, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_070_conv_transposed_3d_asymmetric_input_square_kernel", "source_kb_id": 70, "source_file": "70_conv_transposed_3D__asymmetric_input__square_kernel.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_070_conv_transposed_3d_asymmetric_input_square_kernel.py", "verified": true, "ref_ms": 0.68352, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_071_conv_transposed_2d_asymmetric_input_square_kernel", "source_kb_id": 71, "source_file": "71_conv_transposed_2D__asymmetric_input__square_kernel.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_071_conv_transposed_2d_asymmetric_input_square_kernel.py", "verified": true, "ref_ms": 0.598016, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_072_conv_transposed_3d_asymmetric_input_asymmetric_kernel_strided_padded_grouped", "source_kb_id": 72, "source_file": "72_conv_transposed_3D_asymmetric_input_asymmetric_kernel___strided_padded_grouped_.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_072_conv_transposed_3d_asymmetric_input_asymmetric_kernel_strided_padded_grouped.py", "verified": true, "ref_ms": 0.585216, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_073_conv_transposed_3d_asymmetric_input_square_kernel_strided_padded_grouped", "source_kb_id": 73, "source_file": "73_conv_transposed_3D_asymmetric_input_square_kernel__strided_padded__grouped.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_073_conv_transposed_3d_asymmetric_input_square_kernel_strided_padded_grouped.py", "verified": true, "ref_ms": 0.840704, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_074_conv_transposed_1d_dilated", "source_kb_id": 74, "source_file": "74_conv_transposed_1D_dilated.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_074_conv_transposed_1d_dilated.py", "verified": true, "ref_ms": 1.501184, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_075_conv_transposed_2d_asymmetric_input_asymmetric_kernel_strided_grouped_padded_dilated", "source_kb_id": 75, "source_file": "75_conv_transposed_2D_asymmetric_input_asymmetric_kernel_strided__grouped____padded____dilated__.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_075_conv_transposed_2d_asymmetric_input_asymmetric_kernel_strided_grouped_padded_dilated.py", "verified": true, "ref_ms": 1.701376, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_076_conv_standard_1d_dilated_strided", "source_kb_id": 76, "source_file": "76_conv_standard_1D_dilated_strided__.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_076_conv_standard_1d_dilated_strided.py", "verified": true, "ref_ms": 2.090496, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_077_conv_transposed_3d_square_input_square_kernel_padded_dilated_strided", "source_kb_id": 77, "source_file": "77_conv_transposed_3D_square_input_square_kernel___padded____dilated____strided__.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_077_conv_transposed_3d_square_input_square_kernel_padded_dilated_strided.py", "verified": true, "ref_ms": 0.278016, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_078_conv_transposed_2d_asymmetric_input_asymmetric_kernel_padded", "source_kb_id": 78, "source_file": "78_conv_transposed_2D_asymmetric_input_asymmetric_kernel___padded__.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_078_conv_transposed_2d_asymmetric_input_asymmetric_kernel_padded.py", "verified": true, "ref_ms": 2.179584, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_079_conv_transposed_1d_asymmetric_input_square_kernel_padded_strided_dilated", "source_kb_id": 79, "source_file": "79_conv_transposed_1D_asymmetric_input_square_kernel___padded____strided____dilated__.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_079_conv_transposed_1d_asymmetric_input_square_kernel_padded_strided_dilated.py", "verified": true, "ref_ms": 3.8016, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_080_conv_standard_2d_square_input_asymmetric_kernel_dilated_padded", "source_kb_id": 80, "source_file": "80_conv_standard_2D_square_input_asymmetric_kernel___dilated____padded__.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_080_conv_standard_2d_square_input_asymmetric_kernel_dilated_padded.py", "verified": true, "ref_ms": 1.821184, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_081_conv_transposed_2d_asymmetric_input_square_kernel_dilated_padded_strided", "source_kb_id": 81, "source_file": "81_conv_transposed_2D_asymmetric_input_square_kernel___dilated____padded____strided__.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_081_conv_transposed_2d_asymmetric_input_square_kernel_dilated_padded_strided.py", "verified": true, "ref_ms": 1.419776, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_083_conv_depthwise_2d_square_input_asymmetric_kernel", "source_kb_id": 83, "source_file": "83_conv_depthwise_2D_square_input_asymmetric_kernel.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_083_conv_depthwise_2d_square_input_asymmetric_kernel.py", "verified": true, "ref_ms": 1.822208, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_084_conv_depthwise_2d_asymmetric_input_square_kernel", "source_kb_id": 84, "source_file": "84_conv_depthwise_2D_asymmetric_input_square_kernel.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_084_conv_depthwise_2d_asymmetric_input_square_kernel.py", "verified": true, "ref_ms": 1.499136, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_085_conv_depthwise_2d_asymmetric_input_asymmetric_kernel", "source_kb_id": 85, "source_file": "85_conv_depthwise_2D_asymmetric_input_asymmetric_kernel.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_085_conv_depthwise_2d_asymmetric_input_asymmetric_kernel.py", "verified": true, "ref_ms": 1.450496, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_086_conv_depthwise_separable_2d", "source_kb_id": 86, "source_file": "86_conv_depthwise_separable_2D.py", "category": "convolution", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_086_conv_depthwise_separable_2d.py", "verified": true, "ref_ms": 1.391104, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_088_mingptnewgelu", "source_kb_id": 88, "source_file": "88_MinGPTNewGelu.py", "category": "activation", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_088_mingptnewgelu.py", "verified": true, "ref_ms": 3.449344, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_090_cumprod", "source_kb_id": 90, "source_file": "90_cumprod.py", "category": "reduction_scan", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_090_cumprod.py", "verified": true, "ref_ms": 0.137728, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_091_cumsum_reverse", "source_kb_id": 91, "source_file": "91_cumsum_reverse.py", "category": "reduction_scan", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_091_cumsum_reverse.py", "verified": true, "ref_ms": 0.649728, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_092_cumsum_exclusive", "source_kb_id": 92, "source_file": "92_cumsum_exclusive.py", "category": "reduction_scan", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_092_cumsum_exclusive.py", "verified": true, "ref_ms": 0.667136, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_093_masked_cumsum", "source_kb_id": 93, "source_file": "93_masked_cumsum.py", "category": "reduction_scan", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_093_masked_cumsum.py", "verified": true, "ref_ms": 0.480256, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_096_huberloss", "source_kb_id": 96, "source_file": "96_HuberLoss.py", "category": "loss_attention", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_096_huberloss.py", "verified": true, "ref_ms": 0.836096, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_098_kldivloss", "source_kb_id": 98, "source_file": "98_KLDivLoss.py", "category": "loss_attention", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_098_kldivloss.py", "verified": true, "ref_ms": 2.111488, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_099_tripletmarginloss", "source_kb_id": 99, "source_file": "99_TripletMarginLoss.py", "category": "loss_attention", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_099_tripletmarginloss.py", "verified": true, "ref_ms": 1.158656, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_100_hingeloss", "source_kb_id": 100, "source_file": "100_HingeLoss.py", "category": "loss_attention", "split": "train", "dtype": "fp32", "variant": "base", "path": "tasks/train/kb1_100_hingeloss.py", "verified": true, "ref_ms": 0.67584, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_002_standard_matrix_multiplication__bf16", "source_kb_id": 2, "source_file": "2_Standard_matrix_multiplication_.py", "category": "matmul", "split": "train", "dtype": "bf16", "variant": "bf16", "path": "tasks/train/kb1_002_standard_matrix_multiplication__bf16.py", "verified": true, "ref_ms": 0.36864, "inferred_dtype": "bfloat16", "self_check_error": null }, { "problem_id": "kb1_006_matmul_with_large_k_dimension__bf16", "source_kb_id": 6, "source_file": "6_Matmul_with_large_K_dimension_.py", "category": "matmul", "split": "train", "dtype": "bf16", "variant": "bf16", "path": "tasks/train/kb1_006_matmul_with_large_k_dimension__bf16.py", "verified": true, "ref_ms": 0.37376, "inferred_dtype": "bfloat16", "self_check_error": null }, { "problem_id": "kb1_016_matmul_with_transposed_a__bf16", "source_kb_id": 16, "source_file": "16_Matmul_with_transposed_A.py", "category": "matmul", "split": "train", "dtype": "bf16", "variant": "bf16", "path": "tasks/train/kb1_016_matmul_with_transposed_a__bf16.py", "verified": true, "ref_ms": 0.374784, "inferred_dtype": "bfloat16", "self_check_error": null }, { "problem_id": "kb1_018_matmul_with_transposed_both__bf16", "source_kb_id": 18, "source_file": "18_Matmul_with_transposed_both.py", "category": "matmul", "split": "train", "dtype": "bf16", "variant": "bf16", "path": "tasks/train/kb1_018_matmul_with_transposed_both__bf16.py", "verified": true, "ref_ms": 0.375808, "inferred_dtype": "bfloat16", "self_check_error": null }, { "problem_id": "kb1_020_leakyrelu__bf16", "source_kb_id": 20, "source_file": "20_LeakyReLU.py", "category": "activation", "split": "train", "dtype": "bf16", "variant": "bf16", "path": "tasks/train/kb1_020_leakyrelu__bf16.py", "verified": true, "ref_ms": 0.193536, "inferred_dtype": "bfloat16", "self_check_error": null }, { "problem_id": "kb1_021_sigmoid__bf16", "source_kb_id": 21, "source_file": "21_Sigmoid.py", "category": "activation", "split": "train", "dtype": "bf16", "variant": "bf16", "path": "tasks/train/kb1_021_sigmoid__bf16.py", "verified": true, "ref_ms": 0.193536, "inferred_dtype": "bfloat16", "self_check_error": null }, { "problem_id": "kb1_024_logsoftmax__bf16", "source_kb_id": 24, "source_file": "24_LogSoftmax.py", "category": "activation", "split": "train", "dtype": "bf16", "variant": "bf16", "path": "tasks/train/kb1_024_logsoftmax__bf16.py", "verified": true, "ref_ms": 0.317952, "inferred_dtype": "bfloat16", "self_check_error": null }, { "problem_id": "kb1_027_selu__bf16", "source_kb_id": 27, "source_file": "27_SELU_.py", "category": "activation", "split": "train", "dtype": "bf16", "variant": "bf16", "path": "tasks/train/kb1_027_selu__bf16.py", "verified": true, "ref_ms": 0.193536, "inferred_dtype": "bfloat16", "self_check_error": null }, { "problem_id": "kb1_033_batchnorm__bf16", "source_kb_id": 33, "source_file": "33_BatchNorm.py", "category": "normalization", "split": "train", "dtype": "bf16", "variant": "bf16", "path": "tasks/train/kb1_033_batchnorm__bf16.py", "verified": true, "ref_ms": 0.416256, "inferred_dtype": "bfloat16", "self_check_error": null }, { "problem_id": "kb1_035_groupnorm__bf16", "source_kb_id": 35, "source_file": "35_GroupNorm_.py", "category": "normalization", "split": "train", "dtype": "bf16", "variant": "bf16", "path": "tasks/train/kb1_035_groupnorm__bf16.py", "verified": true, "ref_ms": 0.758784, "inferred_dtype": "bfloat16", "self_check_error": null }, { "problem_id": "kb1_039_l2norm__bf16", "source_kb_id": 39, "source_file": "39_L2Norm_.py", "category": "normalization", "split": "train", "dtype": "bf16", "variant": "bf16", "path": "tasks/train/kb1_039_l2norm__bf16.py", "verified": true, "ref_ms": 0.314368, "inferred_dtype": "bfloat16", "self_check_error": null }, { "problem_id": "kb1_048_mean_reduction_over_a_dimension__bf16", "source_kb_id": 48, "source_file": "48_Mean_reduction_over_a_dimension.py", "category": "reduction_scan", "split": "train", "dtype": "bf16", "variant": "bf16", "path": "tasks/train/kb1_048_mean_reduction_over_a_dimension__bf16.py", "verified": true, "ref_ms": 0.181248, "inferred_dtype": "bfloat16", "self_check_error": null }, { "problem_id": "kb1_055_conv_standard_2d_asymmetric_input_square_kernel__bf16", "source_kb_id": 55, "source_file": "55_conv_standard_2D__asymmetric_input__square_kernel.py", "category": "convolution", "split": "train", "dtype": "bf16", "variant": "bf16", "path": "tasks/train/kb1_055_conv_standard_2d_asymmetric_input_square_kernel__bf16.py", "verified": true, "ref_ms": 0.759808, "inferred_dtype": "bfloat16", "self_check_error": null }, { "problem_id": "kb1_088_mingptnewgelu__bf16", "source_kb_id": 88, "source_file": "88_MinGPTNewGelu.py", "category": "activation", "split": "train", "dtype": "bf16", "variant": "bf16", "path": "tasks/train/kb1_088_mingptnewgelu__bf16.py", "verified": true, "ref_ms": 1.714176, "inferred_dtype": "bfloat16", "self_check_error": null }, { "problem_id": "kb1_096_huberloss__bf16", "source_kb_id": 96, "source_file": "96_HuberLoss.py", "category": "loss_attention", "split": "train", "dtype": "bf16", "variant": "bf16", "path": "tasks/train/kb1_096_huberloss__bf16.py", "verified": true, "ref_ms": 0.410112, "inferred_dtype": "bfloat16", "self_check_error": null }, { "problem_id": "kb1_002_standard_matrix_multiplication__fp16", "source_kb_id": 2, "source_file": "2_Standard_matrix_multiplication_.py", "category": "matmul", "split": "train", "dtype": "fp16", "variant": "fp16", "path": "tasks/train/kb1_002_standard_matrix_multiplication__fp16.py", "verified": true, "ref_ms": 0.371712, "inferred_dtype": "float16", "self_check_error": null }, { "problem_id": "kb1_005_matrix_scalar_multiplication__fp16", "source_kb_id": 5, "source_file": "5_Matrix_scalar_multiplication.py", "category": "matmul", "split": "train", "dtype": "fp16", "variant": "fp16", "path": "tasks/train/kb1_005_matrix_scalar_multiplication__fp16.py", "verified": true, "ref_ms": 0.445952, "inferred_dtype": "float16", "self_check_error": null }, { "problem_id": "kb1_008_matmul_with_irregular_shapes__fp16", "source_kb_id": 8, "source_file": "8_Matmul_with_irregular_shapes_.py", "category": "matmul", "split": "train", "dtype": "fp16", "variant": "fp16", "path": "tasks/train/kb1_008_matmul_with_irregular_shapes__fp16.py", "verified": true, "ref_ms": 1.062912, "inferred_dtype": "float16", "self_check_error": null }, { "problem_id": "kb1_010_3d_tensor_matrix_multiplication__fp16", "source_kb_id": 10, "source_file": "10_3D_tensor_matrix_multiplication.py", "category": "matmul", "split": "train", "dtype": "fp16", "variant": "fp16", "path": "tasks/train/kb1_010_3d_tensor_matrix_multiplication__fp16.py", "verified": true, "ref_ms": 0.59904, "inferred_dtype": "float16", "self_check_error": null }, { "problem_id": "kb1_022_tanh__fp16", "source_kb_id": 22, "source_file": "22_Tanh.py", "category": "activation", "split": "train", "dtype": "fp16", "variant": "fp16", "path": "tasks/train/kb1_022_tanh__fp16.py", "verified": true, "ref_ms": 0.193536, "inferred_dtype": "float16", "self_check_error": null }, { "problem_id": "kb1_028_hardsigmoid__fp16", "source_kb_id": 28, "source_file": "28_HardSigmoid.py", "category": "activation", "split": "train", "dtype": "fp16", "variant": "fp16", "path": "tasks/train/kb1_028_hardsigmoid__fp16.py", "verified": true, "ref_ms": 0.193536, "inferred_dtype": "float16", "self_check_error": null }, { "problem_id": "kb1_029_softplus__fp16", "source_kb_id": 29, "source_file": "29_Softplus.py", "category": "activation", "split": "train", "dtype": "fp16", "variant": "fp16", "path": "tasks/train/kb1_029_softplus__fp16.py", "verified": true, "ref_ms": 0.193536, "inferred_dtype": "float16", "self_check_error": null }, { "problem_id": "kb1_031_elu__fp16", "source_kb_id": 31, "source_file": "31_ELU.py", "category": "activation", "split": "train", "dtype": "fp16", "variant": "fp16", "path": "tasks/train/kb1_031_elu__fp16.py", "verified": true, "ref_ms": 0.195584, "inferred_dtype": "float16", "self_check_error": null }, { "problem_id": "kb1_034_instancenorm__fp16", "source_kb_id": 34, "source_file": "34_InstanceNorm.py", "category": "normalization", "split": "train", "dtype": "fp16", "variant": "fp16", "path": "tasks/train/kb1_034_instancenorm__fp16.py", "verified": true, "ref_ms": 0.803328, "inferred_dtype": "float16", "self_check_error": null }, { "problem_id": "kb1_038_l1norm__fp16", "source_kb_id": 38, "source_file": "38_L1Norm_.py", "category": "normalization", "split": "train", "dtype": "fp16", "variant": "fp16", "path": "tasks/train/kb1_038_l1norm__fp16.py", "verified": true, "ref_ms": 0.504832, "inferred_dtype": "float16", "self_check_error": null }, { "problem_id": "kb1_049_max_reduction_over_a_dimension__fp16", "source_kb_id": 49, "source_file": "49_Max_reduction_over_a_dimension.py", "category": "reduction_scan", "split": "train", "dtype": "fp16", "variant": "fp16", "path": "tasks/train/kb1_049_max_reduction_over_a_dimension__fp16.py", "verified": true, "ref_ms": 0.173056, "inferred_dtype": "float16", "self_check_error": null }, { "problem_id": "kb1_064_conv_transposed_1d__fp16", "source_kb_id": 64, "source_file": "64_conv_transposed_1D.py", "category": "convolution", "split": "train", "dtype": "fp16", "variant": "fp16", "path": "tasks/train/kb1_064_conv_transposed_1d__fp16.py", "verified": true, "ref_ms": 0.896, "inferred_dtype": "float16", "self_check_error": null }, { "problem_id": "kb1_086_conv_depthwise_separable_2d__fp16", "source_kb_id": 86, "source_file": "86_conv_depthwise_separable_2D.py", "category": "convolution", "split": "train", "dtype": "fp16", "variant": "fp16", "path": "tasks/train/kb1_086_conv_depthwise_separable_2d__fp16.py", "verified": true, "ref_ms": 0.520192, "inferred_dtype": "float16", "self_check_error": null }, { "problem_id": "kb1_098_kldivloss__fp16", "source_kb_id": 98, "source_file": "98_KLDivLoss.py", "category": "loss_attention", "split": "train", "dtype": "fp16", "variant": "fp16", "path": "tasks/train/kb1_098_kldivloss__fp16.py", "verified": true, "ref_ms": 1.140736, "inferred_dtype": "float16", "self_check_error": null }, { "problem_id": "kb1_100_hingeloss__fp16", "source_kb_id": 100, "source_file": "100_HingeLoss.py", "category": "loss_attention", "split": "train", "dtype": "fp16", "variant": "fp16", "path": "tasks/train/kb1_100_hingeloss__fp16.py", "verified": true, "ref_ms": 0.36352, "inferred_dtype": "float16", "self_check_error": null }, { "problem_id": "kb1_002_standard_matrix_multiplication__shape_nonpow2", "source_kb_id": 2, "source_file": "2_Standard_matrix_multiplication_.py", "category": "matmul", "split": "train", "dtype": "fp32", "variant": "shape_nonpow2", "path": "tasks/train/kb1_002_standard_matrix_multiplication__shape_nonpow2.py", "verified": true, "ref_ms": 0.64512, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_004_matrix_vector_multiplication__shape_wide", "source_kb_id": 4, "source_file": "4_Matrix_vector_multiplication_.py", "category": "matmul", "split": "train", "dtype": "fp32", "variant": "shape_wide", "path": "tasks/train/kb1_004_matrix_vector_multiplication__shape_wide.py", "verified": true, "ref_ms": 0.380416, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_005_matrix_scalar_multiplication__shape_nonpow2", "source_kb_id": 5, "source_file": "5_Matrix_scalar_multiplication.py", "category": "matmul", "split": "train", "dtype": "fp32", "variant": "shape_nonpow2", "path": "tasks/train/kb1_005_matrix_scalar_multiplication__shape_nonpow2.py", "verified": true, "ref_ms": 0.339968, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_006_matmul_with_large_k_dimension__shape_tall", "source_kb_id": 6, "source_file": "6_Matmul_with_large_K_dimension_.py", "category": "matmul", "split": "train", "dtype": "fp32", "variant": "shape_tall", "path": "tasks/train/kb1_006_matmul_with_large_k_dimension__shape_tall.py", "verified": true, "ref_ms": 0.690176, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_007_matmul_with_small_k_dimension__shape_rect", "source_kb_id": 7, "source_file": "7_Matmul_with_small_K_dimension_.py", "category": "matmul", "split": "train", "dtype": "fp32", "variant": "shape_rect", "path": "tasks/train/kb1_007_matmul_with_small_k_dimension__shape_rect.py", "verified": true, "ref_ms": 0.216064, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_009_tall_skinny_matrix_multiplication__shape_skinny", "source_kb_id": 9, "source_file": "9_Tall_skinny_matrix_multiplication_.py", "category": "matmul", "split": "train", "dtype": "fp32", "variant": "shape_skinny", "path": "tasks/train/kb1_009_tall_skinny_matrix_multiplication__shape_skinny.py", "verified": true, "ref_ms": 0.47616, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_010_3d_tensor_matrix_multiplication__shape_large_batch", "source_kb_id": 10, "source_file": "10_3D_tensor_matrix_multiplication.py", "category": "matmul", "split": "train", "dtype": "fp32", "variant": "shape_large_batch", "path": "tasks/train/kb1_010_3d_tensor_matrix_multiplication__shape_large_batch.py", "verified": true, "ref_ms": 1.43616, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_012_matmul_with_diagonal_matrices__shape_rect", "source_kb_id": 12, "source_file": "12_Matmul_with_diagonal_matrices_.py", "category": "matmul", "split": "train", "dtype": "fp32", "variant": "shape_rect", "path": "tasks/train/kb1_012_matmul_with_diagonal_matrices__shape_rect.py", "verified": true, "ref_ms": 0.21504, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_013_matmul_for_symmetric_matrices__shape_small", "source_kb_id": 13, "source_file": "13_Matmul_for_symmetric_matrices.py", "category": "matmul", "split": "train", "dtype": "fp32", "variant": "shape_small", "path": "tasks/train/kb1_013_matmul_for_symmetric_matrices__shape_small.py", "verified": true, "ref_ms": 0.233472, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_016_matmul_with_transposed_a__shape_nonpow2", "source_kb_id": 16, "source_file": "16_Matmul_with_transposed_A.py", "category": "matmul", "split": "train", "dtype": "fp32", "variant": "shape_nonpow2", "path": "tasks/train/kb1_016_matmul_with_transposed_a__shape_nonpow2.py", "verified": true, "ref_ms": 0.55808, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_020_leakyrelu__shape_wide", "source_kb_id": 20, "source_file": "20_LeakyReLU.py", "category": "activation", "split": "train", "dtype": "fp32", "variant": "shape_wide", "path": "tasks/train/kb1_020_leakyrelu__shape_wide.py", "verified": true, "ref_ms": 0.33024, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_021_sigmoid__shape_nonpow2", "source_kb_id": 21, "source_file": "21_Sigmoid.py", "category": "activation", "split": "train", "dtype": "fp32", "variant": "shape_nonpow2", "path": "tasks/train/kb1_021_sigmoid__shape_nonpow2.py", "verified": true, "ref_ms": 0.222208, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_022_tanh__shape_tall", "source_kb_id": 22, "source_file": "22_Tanh.py", "category": "activation", "split": "train", "dtype": "fp32", "variant": "shape_tall", "path": "tasks/train/kb1_022_tanh__shape_tall.py", "verified": true, "ref_ms": 0.379904, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_024_logsoftmax__shape_vocab", "source_kb_id": 24, "source_file": "24_LogSoftmax.py", "category": "activation", "split": "train", "dtype": "fp32", "variant": "shape_vocab", "path": "tasks/train/kb1_024_logsoftmax__shape_vocab.py", "verified": true, "ref_ms": 0.45312, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_027_selu__shape_nonpow2", "source_kb_id": 27, "source_file": "27_SELU_.py", "category": "activation", "split": "train", "dtype": "fp32", "variant": "shape_nonpow2", "path": "tasks/train/kb1_027_selu__shape_nonpow2.py", "verified": true, "ref_ms": 0.287744, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_029_softplus__shape_wide", "source_kb_id": 29, "source_file": "29_Softplus.py", "category": "activation", "split": "train", "dtype": "fp32", "variant": "shape_wide", "path": "tasks/train/kb1_029_softplus__shape_wide.py", "verified": true, "ref_ms": 0.380416, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_030_softsign__shape_nonpow2", "source_kb_id": 30, "source_file": "30_Softsign.py", "category": "activation", "split": "train", "dtype": "fp32", "variant": "shape_nonpow2", "path": "tasks/train/kb1_030_softsign__shape_nonpow2.py", "verified": true, "ref_ms": 0.942592, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_031_elu__shape_tall", "source_kb_id": 31, "source_file": "31_ELU.py", "category": "activation", "split": "train", "dtype": "fp32", "variant": "shape_tall", "path": "tasks/train/kb1_031_elu__shape_tall.py", "verified": true, "ref_ms": 0.380928, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_032_hardtanh__shape_nonpow2", "source_kb_id": 32, "source_file": "32_HardTanh.py", "category": "activation", "split": "train", "dtype": "fp32", "variant": "shape_nonpow2", "path": "tasks/train/kb1_032_hardtanh__shape_nonpow2.py", "verified": true, "ref_ms": 0.34816, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_033_batchnorm__shape_spatial", "source_kb_id": 33, "source_file": "33_BatchNorm.py", "category": "normalization", "split": "train", "dtype": "fp32", "variant": "shape_spatial", "path": "tasks/train/kb1_033_batchnorm__shape_spatial.py", "verified": true, "ref_ms": 0.196608, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_035_groupnorm__shape_groups16", "source_kb_id": 35, "source_file": "35_GroupNorm_.py", "category": "normalization", "split": "train", "dtype": "fp32", "variant": "shape_groups16", "path": "tasks/train/kb1_035_groupnorm__shape_groups16.py", "verified": true, "ref_ms": 0.325632, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_038_l1norm__shape_nonpow2", "source_kb_id": 38, "source_file": "38_L1Norm_.py", "category": "normalization", "split": "train", "dtype": "fp32", "variant": "shape_nonpow2", "path": "tasks/train/kb1_038_l1norm__shape_nonpow2.py", "verified": true, "ref_ms": 0.878592, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_039_l2norm__shape_wide", "source_kb_id": 39, "source_file": "39_L2Norm_.py", "category": "normalization", "split": "train", "dtype": "fp32", "variant": "shape_wide", "path": "tasks/train/kb1_039_l2norm__shape_wide.py", "verified": true, "ref_ms": 0.561152, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_048_mean_reduction_over_a_dimension__shape_large_reduce", "source_kb_id": 48, "source_file": "48_Mean_reduction_over_a_dimension.py", "category": "reduction_scan", "split": "train", "dtype": "fp32", "variant": "shape_large_reduce", "path": "tasks/train/kb1_048_mean_reduction_over_a_dimension__shape_large_reduce.py", "verified": true, "ref_ms": 0.377344, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_049_max_reduction_over_a_dimension__shape_large_reduce", "source_kb_id": 49, "source_file": "49_Max_reduction_over_a_dimension.py", "category": "reduction_scan", "split": "train", "dtype": "fp32", "variant": "shape_large_reduce", "path": "tasks/train/kb1_049_max_reduction_over_a_dimension__shape_large_reduce.py", "verified": true, "ref_ms": 0.385024, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_053_min_reduction_over_a_dimension__shape_nonpow2", "source_kb_id": 53, "source_file": "53_Min_reduction_over_a_dimension.py", "category": "reduction_scan", "split": "train", "dtype": "fp32", "variant": "shape_nonpow2", "path": "tasks/train/kb1_053_min_reduction_over_a_dimension__shape_nonpow2.py", "verified": true, "ref_ms": 0.329728, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_088_mingptnewgelu__shape_nonpow2", "source_kb_id": 88, "source_file": "88_MinGPTNewGelu.py", "category": "activation", "split": "train", "dtype": "fp32", "variant": "shape_nonpow2", "path": "tasks/train/kb1_088_mingptnewgelu__shape_nonpow2.py", "verified": true, "ref_ms": 3.167232, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_091_cumsum_reverse__shape_wide", "source_kb_id": 91, "source_file": "91_cumsum_reverse.py", "category": "reduction_scan", "split": "train", "dtype": "fp32", "variant": "shape_wide", "path": "tasks/train/kb1_091_cumsum_reverse__shape_wide.py", "verified": true, "ref_ms": 0.652288, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_096_huberloss__shape_nonpow2", "source_kb_id": 96, "source_file": "96_HuberLoss.py", "category": "loss_attention", "split": "train", "dtype": "fp32", "variant": "shape_nonpow2", "path": "tasks/train/kb1_096_huberloss__shape_nonpow2.py", "verified": true, "ref_ms": 0.416768, "inferred_dtype": "float32", "self_check_error": null }, { "problem_id": "kb1_099_tripletmarginloss__shape_wide", "source_kb_id": 99, "source_file": "99_TripletMarginLoss.py", "category": "loss_attention", "split": "train", "dtype": "fp32", "variant": "shape_wide", "path": "tasks/train/kb1_099_tripletmarginloss__shape_wide.py", "verified": true, "ref_ms": 1.169408, "inferred_dtype": "float32", "self_check_error": null } ], "eval": [], "summary": { "train_count": 140, "train_base_count": 80, "train_variant_count": 60, "eval_count": 0, "total_count": 140, "note": "Held-out 20-problem eval split is deliberately withheld from the public repository." }, "verification": { "train_passed": 140, "train_failed": 0 }}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455"""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 = 2CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp32"VARIANT = "base"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a single matrix multiplication (C = A * B) """ def __init__(self): super(Model, self).__init__() def forward(self, A: torch.Tensor, B: torch.Tensor) -> torch.Tensor: """ Performs matrix multiplication.
Args: A: Input tensor of shape (M, K). B: Input tensor of shape (K, N).
Returns: Output tensor of shape (M, N). """ return torch.matmul(A, B)
M = 1024 * 2K = 4096 * 2N = 2048 * 2
# --- Task shape configuration (4GB-safe laptop envelope) ---M = 1024K = 2048N = 1024
def get_inputs(): A = torch.rand(M, K) B = torch.rand(K, N) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455"""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 = 2CATEGORY = "matmul"SPLIT = "train"DTYPE = "bf16"VARIANT = "bf16"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a single matrix multiplication (C = A * B) """ def __init__(self): super(Model, self).__init__() def forward(self, A: torch.Tensor, B: torch.Tensor) -> torch.Tensor: """ Performs matrix multiplication.
Args: A: Input tensor of shape (M, K). B: Input tensor of shape (K, N).
Returns: Output tensor of shape (M, N). """ return torch.matmul(A, B)
M = 1024 * 2K = 4096 * 2N = 2048 * 2
# --- Task shape configuration (4GB-safe laptop envelope) ---M = 1024K = 2048N = 1024
def get_inputs(): A = torch.rand(M, K) B = torch.rand(K, N) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455"""Task kb1_002_standard_matrix_multiplication__fp16 (KernelBench Level 1 #2, split=train, category=matmul, dtype=fp16, variant=fp16)."""PROBLEM_ID = "kb1_002_standard_matrix_multiplication__fp16"SOURCE_KB_ID = 2CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp16"VARIANT = "fp16"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a single matrix multiplication (C = A * B) """ def __init__(self): super(Model, self).__init__() def forward(self, A: torch.Tensor, B: torch.Tensor) -> torch.Tensor: """ Performs matrix multiplication.
Args: A: Input tensor of shape (M, K). B: Input tensor of shape (K, N).
Returns: Output tensor of shape (M, N). """ return torch.matmul(A, B)
M = 1024 * 2K = 4096 * 2N = 2048 * 2
# --- Task shape configuration (4GB-safe laptop envelope) ---M = 1024K = 2048N = 1024
def get_inputs(): A = torch.rand(M, K) B = torch.rand(K, N) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758"""Task kb1_002_standard_matrix_multiplication__shape_nonpow2 (KernelBench Level 1 #2, split=train, category=matmul, dtype=fp32, variant=shape_nonpow2)."""PROBLEM_ID = "kb1_002_standard_matrix_multiplication__shape_nonpow2"SOURCE_KB_ID = 2CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp32"VARIANT = "shape_nonpow2"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a single matrix multiplication (C = A * B) """ def __init__(self): super(Model, self).__init__() def forward(self, A: torch.Tensor, B: torch.Tensor) -> torch.Tensor: """ Performs matrix multiplication.
Args: A: Input tensor of shape (M, K). B: Input tensor of shape (K, N).
Returns: Output tensor of shape (M, N). """ return torch.matmul(A, B)
M = 1024 * 2K = 4096 * 2N = 2048 * 2
# --- Task shape configuration (4GB-safe laptop envelope) ---M = 1024K = 2048N = 1024M = 768K = 1536N = 1280
def get_inputs(): A = torch.rand(M, K) B = torch.rand(K, N) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253"""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 = 4CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp32"VARIANT = "base"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs matrix-vector multiplication (C = A * B). """ def __init__(self): super(Model, self).__init__() def forward(self, A: torch.Tensor, B: torch.Tensor) -> torch.Tensor: """ Performs matrix-vector multiplication.
Args: A: Input matrix of shape (M, K). B: Input vector of shape (K, 1).
Returns: Output vector of shape (M, 1). """ return torch.matmul(A, B)
M = 256 * 8 # 2048K = 131072 * 8 # 1048576
# --- Task shape configuration (4GB-safe laptop envelope) ---M = 1024K = 16384
def get_inputs(): A = torch.rand(M, K) B = torch.rand(K, 1) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455"""Task kb1_004_matrix_vector_multiplication__shape_wide (KernelBench Level 1 #4, split=train, category=matmul, dtype=fp32, variant=shape_wide)."""PROBLEM_ID = "kb1_004_matrix_vector_multiplication__shape_wide"SOURCE_KB_ID = 4CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp32"VARIANT = "shape_wide"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs matrix-vector multiplication (C = A * B). """ def __init__(self): super(Model, self).__init__() def forward(self, A: torch.Tensor, B: torch.Tensor) -> torch.Tensor: """ Performs matrix-vector multiplication.
Args: A: Input matrix of shape (M, K). B: Input vector of shape (K, 1).
Returns: Output vector of shape (M, 1). """ return torch.matmul(A, B)
M = 256 * 8 # 2048K = 131072 * 8 # 1048576
# --- Task shape configuration (4GB-safe laptop envelope) ---M = 1024K = 16384M = 512K = 32768
def get_inputs(): A = torch.rand(M, K) B = torch.rand(K, 1) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253"""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 = 5CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp32"VARIANT = "base"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a matrix-scalar multiplication (C = A * s) """ def __init__(self): super(Model, self).__init__() def forward(self, A: torch.Tensor, s: float) -> torch.Tensor: """ Performs matrix-scalar multiplication.
Args: A: Input matrix of shape (M, N) s: Scalar value
Returns: C: Resulting matrix of shape (M, N) """ return A * s
M = 16384 * 4N = 4096 * 4
# --- Task shape configuration (4GB-safe laptop envelope) ---M = 4096N = 4096
def get_inputs(): A = torch.rand(M, N) s = 3.14 return [A, s]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253"""Task kb1_005_matrix_scalar_multiplication__fp16 (KernelBench Level 1 #5, split=train, category=matmul, dtype=fp16, variant=fp16)."""PROBLEM_ID = "kb1_005_matrix_scalar_multiplication__fp16"SOURCE_KB_ID = 5CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp16"VARIANT = "fp16"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a matrix-scalar multiplication (C = A * s) """ def __init__(self): super(Model, self).__init__() def forward(self, A: torch.Tensor, s: float) -> torch.Tensor: """ Performs matrix-scalar multiplication.
Args: A: Input matrix of shape (M, N) s: Scalar value
Returns: C: Resulting matrix of shape (M, N) """ return A * s
M = 16384 * 4N = 4096 * 4
# --- Task shape configuration (4GB-safe laptop envelope) ---M = 4096N = 4096
def get_inputs(): A = torch.rand(M, N) s = 3.14 return [A, s]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455"""Task kb1_005_matrix_scalar_multiplication__shape_nonpow2 (KernelBench Level 1 #5, split=train, category=matmul, dtype=fp32, variant=shape_nonpow2)."""PROBLEM_ID = "kb1_005_matrix_scalar_multiplication__shape_nonpow2"SOURCE_KB_ID = 5CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp32"VARIANT = "shape_nonpow2"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a matrix-scalar multiplication (C = A * s) """ def __init__(self): super(Model, self).__init__() def forward(self, A: torch.Tensor, s: float) -> torch.Tensor: """ Performs matrix-scalar multiplication.
Args: A: Input matrix of shape (M, N) s: Scalar value
Returns: C: Resulting matrix of shape (M, N) """ return A * s
M = 16384 * 4N = 4096 * 4
# --- Task shape configuration (4GB-safe laptop envelope) ---M = 4096N = 4096M = 3000N = 2500
def get_inputs(): A = torch.rand(M, N) s = 3.14 return [A, s]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455"""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 = 6CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp32"VARIANT = "base"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a single matrix multiplication (C = A * B) with a large K dimension """ def __init__(self): super(Model, self).__init__() def forward(self, A: torch.Tensor, B: torch.Tensor) -> torch.Tensor: """ Performs matrix multiplication of A and B.
Args: A: Input tensor of shape (M, K) B: Input tensor of shape (K, N)
Returns: Output tensor of shape (M, N) """ return torch.matmul(A, B)
M = 256N = 256K = 131072 * 4
# --- Task shape configuration (4GB-safe laptop envelope) ---M = 256N = 256K = 32768
def get_inputs(): A = torch.rand(M, K) B = torch.rand(K, N) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455"""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 = 6CATEGORY = "matmul"SPLIT = "train"DTYPE = "bf16"VARIANT = "bf16"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a single matrix multiplication (C = A * B) with a large K dimension """ def __init__(self): super(Model, self).__init__() def forward(self, A: torch.Tensor, B: torch.Tensor) -> torch.Tensor: """ Performs matrix multiplication of A and B.
Args: A: Input tensor of shape (M, K) B: Input tensor of shape (K, N)
Returns: Output tensor of shape (M, N) """ return torch.matmul(A, B)
M = 256N = 256K = 131072 * 4
# --- Task shape configuration (4GB-safe laptop envelope) ---M = 256N = 256K = 32768
def get_inputs(): A = torch.rand(M, K) B = torch.rand(K, N) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758"""Task kb1_006_matmul_with_large_k_dimension__shape_tall (KernelBench Level 1 #6, split=train, category=matmul, dtype=fp32, variant=shape_tall)."""PROBLEM_ID = "kb1_006_matmul_with_large_k_dimension__shape_tall"SOURCE_KB_ID = 6CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp32"VARIANT = "shape_tall"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a single matrix multiplication (C = A * B) with a large K dimension """ def __init__(self): super(Model, self).__init__() def forward(self, A: torch.Tensor, B: torch.Tensor) -> torch.Tensor: """ Performs matrix multiplication of A and B.
Args: A: Input tensor of shape (M, K) B: Input tensor of shape (K, N)
Returns: Output tensor of shape (M, N) """ return torch.matmul(A, B)
M = 256N = 256K = 131072 * 4
# --- Task shape configuration (4GB-safe laptop envelope) ---M = 256N = 256K = 32768M = 512N = 128K = 16384
def get_inputs(): A = torch.rand(M, K) B = torch.rand(K, N) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455"""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 = 7CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp32"VARIANT = "base"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a single matrix multiplication (C = A * B) with a small K dimension """ def __init__(self): super(Model, self).__init__() def forward(self, A: torch.Tensor, B: torch.Tensor) -> torch.Tensor: """ Performs matrix multiplication.
Args: A: Input tensor of shape (M, K). B: Input tensor of shape (K, N).
Returns: Output tensor of shape (M, N). """ return torch.matmul(A, B)
M = 16384 * 2N = 16384 * 2K = 32 * 2
# --- Task shape configuration (4GB-safe laptop envelope) ---M = 4096N = 4096K = 64
def get_inputs(): A = torch.rand(M, K) B = torch.rand(K, N) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758"""Task kb1_007_matmul_with_small_k_dimension__shape_rect (KernelBench Level 1 #7, split=train, category=matmul, dtype=fp32, variant=shape_rect)."""PROBLEM_ID = "kb1_007_matmul_with_small_k_dimension__shape_rect"SOURCE_KB_ID = 7CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp32"VARIANT = "shape_rect"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a single matrix multiplication (C = A * B) with a small K dimension """ def __init__(self): super(Model, self).__init__() def forward(self, A: torch.Tensor, B: torch.Tensor) -> torch.Tensor: """ Performs matrix multiplication.
Args: A: Input tensor of shape (M, K). B: Input tensor of shape (K, N).
Returns: Output tensor of shape (M, N). """ return torch.matmul(A, B)
M = 16384 * 2N = 16384 * 2K = 32 * 2
# --- Task shape configuration (4GB-safe laptop envelope) ---M = 4096N = 4096K = 64M = 2048N = 3072K = 48
def get_inputs(): A = torch.rand(M, K) B = torch.rand(K, N) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455"""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 = 8CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp32"VARIANT = "base"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a single matrix multiplication (C = A * B) with irregular shapes """ def __init__(self): super(Model, self).__init__() def forward(self, A: torch.Tensor, B: torch.Tensor) -> torch.Tensor: """ Performs matrix multiplication of A and B.
Args: A: Input tensor with shape (M, K). B: Input tensor with shape (K, N).
Returns: C: Output tensor with shape (M, N). """ return torch.matmul(A, B)
M = 8205K = 2949N = 5921
# --- Task shape configuration (4GB-safe laptop envelope) ---M = 2051K = 1473N = 1973
def get_inputs(): A = torch.rand(M, K) B = torch.rand(K, N) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455"""Task kb1_008_matmul_with_irregular_shapes__fp16 (KernelBench Level 1 #8, split=train, category=matmul, dtype=fp16, variant=fp16)."""PROBLEM_ID = "kb1_008_matmul_with_irregular_shapes__fp16"SOURCE_KB_ID = 8CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp16"VARIANT = "fp16"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a single matrix multiplication (C = A * B) with irregular shapes """ def __init__(self): super(Model, self).__init__() def forward(self, A: torch.Tensor, B: torch.Tensor) -> torch.Tensor: """ Performs matrix multiplication of A and B.
Args: A: Input tensor with shape (M, K). B: Input tensor with shape (K, N).
Returns: C: Output tensor with shape (M, N). """ return torch.matmul(A, B)
M = 8205K = 2949N = 5921
# --- Task shape configuration (4GB-safe laptop envelope) ---M = 2051K = 1473N = 1973
def get_inputs(): A = torch.rand(M, K) B = torch.rand(K, N) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253"""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 = 9CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp32"VARIANT = "base"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a single matrix multiplication (C = A * B) where one of the matrices is tall and skinny (M >> N or N >> M) """ def __init__(self): super(Model, self).__init__() def forward(self, A, B): """ Performs the matrix multiplication.
Args: A (torch.Tensor): Input matrix of shape (M, K) or (K, M) where M >> N or N >> M. B (torch.Tensor): Input matrix of shape (K, N) or (N, K) where M >> N or N >> M.
Returns: torch.Tensor: Output matrix of shape (M, N) or (N, M) """ return torch.matmul(A, B)
M = 16384 * 2N = 16 * 2
# --- Task shape configuration (4GB-safe laptop envelope) ---M = 8192N = 64
def get_inputs(): A = torch.rand(M, N) B = torch.rand(N, M) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455"""Task kb1_009_tall_skinny_matrix_multiplication__shape_skinny (KernelBench Level 1 #9, split=train, category=matmul, dtype=fp32, variant=shape_skinny)."""PROBLEM_ID = "kb1_009_tall_skinny_matrix_multiplication__shape_skinny"SOURCE_KB_ID = 9CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp32"VARIANT = "shape_skinny"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a single matrix multiplication (C = A * B) where one of the matrices is tall and skinny (M >> N or N >> M) """ def __init__(self): super(Model, self).__init__() def forward(self, A, B): """ Performs the matrix multiplication.
Args: A (torch.Tensor): Input matrix of shape (M, K) or (K, M) where M >> N or N >> M. B (torch.Tensor): Input matrix of shape (K, N) or (N, K) where M >> N or N >> M.
Returns: torch.Tensor: Output matrix of shape (M, N) or (N, M) """ return torch.matmul(A, B)
M = 16384 * 2N = 16 * 2
# --- Task shape configuration (4GB-safe laptop envelope) ---M = 8192N = 64M = 4096N = 32
def get_inputs(): A = torch.rand(M, N) B = torch.rand(N, M) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657"""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 = 10CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp32"VARIANT = "base"
import torchimport torch.nn as nn
class Model(nn.Module): """ Performs 3D tensor-matrix multiplication. """ def __init__(self): super(Model, self).__init__() def forward(self, A, B): """ Performs 3D tensor-matrix multiplication.
Args: A (torch.Tensor): Input 3D tensor of shape (N, M, K). B (torch.Tensor): Input matrix of shape (K, L).
Returns: torch.Tensor: Output tensor of shape (N, M, L), resulting from the multiplication of A and B along the last dimension of A. """ return torch.matmul(A, B)
N = 16M = 1024K = 2048L = 768
# --- Task shape configuration (4GB-safe laptop envelope) ---N = 16M = 512K = 1024L = 512
def get_inputs(): A = torch.rand(N, M, K) B = torch.rand(K, L) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657"""Task kb1_010_3d_tensor_matrix_multiplication__fp16 (KernelBench Level 1 #10, split=train, category=matmul, dtype=fp16, variant=fp16)."""PROBLEM_ID = "kb1_010_3d_tensor_matrix_multiplication__fp16"SOURCE_KB_ID = 10CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp16"VARIANT = "fp16"
import torchimport torch.nn as nn
class Model(nn.Module): """ Performs 3D tensor-matrix multiplication. """ def __init__(self): super(Model, self).__init__() def forward(self, A, B): """ Performs 3D tensor-matrix multiplication.
Args: A (torch.Tensor): Input 3D tensor of shape (N, M, K). B (torch.Tensor): Input matrix of shape (K, L).
Returns: torch.Tensor: Output tensor of shape (N, M, L), resulting from the multiplication of A and B along the last dimension of A. """ return torch.matmul(A, B)
N = 16M = 1024K = 2048L = 768
# --- Task shape configuration (4GB-safe laptop envelope) ---N = 16M = 512K = 1024L = 512
def get_inputs(): A = torch.rand(N, M, K) B = torch.rand(K, L) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061"""Task kb1_010_3d_tensor_matrix_multiplication__shape_large_batch (KernelBench Level 1 #10, split=train, category=matmul, dtype=fp32, variant=shape_large_batch)."""PROBLEM_ID = "kb1_010_3d_tensor_matrix_multiplication__shape_large_batch"SOURCE_KB_ID = 10CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp32"VARIANT = "shape_large_batch"
import torchimport torch.nn as nn
class Model(nn.Module): """ Performs 3D tensor-matrix multiplication. """ def __init__(self): super(Model, self).__init__() def forward(self, A, B): """ Performs 3D tensor-matrix multiplication.
Args: A (torch.Tensor): Input 3D tensor of shape (N, M, K). B (torch.Tensor): Input matrix of shape (K, L).
Returns: torch.Tensor: Output tensor of shape (N, M, L), resulting from the multiplication of A and B along the last dimension of A. """ return torch.matmul(A, B)
N = 16M = 1024K = 2048L = 768
# --- Task shape configuration (4GB-safe laptop envelope) ---N = 16M = 512K = 1024L = 512N = 32M = 256K = 512L = 768
def get_inputs(): A = torch.rand(N, M, K) B = torch.rand(K, L) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768"""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 = 11CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp32"VARIANT = "base"
import torchimport torch.nn as nn
class Model(nn.Module): """ Performs 4D tensor-matrix multiplication: C[b, i, j, k] = sum_l A[b, i, j, l] * B[l, k]
Args: A (torch.Tensor): Input 4D tensor of shape (b, i, j, l) B (torch.Tensor): Input matrix of shape (l, k)
Returns: torch.Tensor: Output 4D tensor of shape (b, i, j, k) """ def __init__(self): super(Model, self).__init__()
def forward(self, A, B): """ Performs the 4D tensor-matrix multiplication.
Args: A (torch.Tensor): Input 4D tensor of shape (b, i, j, l) B (torch.Tensor): Input matrix of shape (l, k)
Returns: torch.Tensor: Output 4D tensor of shape (b, i, j, k) """ return torch.einsum("bijl,lk->bijk", A, B)
# Test codeb = 8i = 256j = 512l = 256k = 768
# --- Task shape configuration (4GB-safe laptop envelope) ---b = 4i = 128j = 256l = 128k = 256
def get_inputs(): A = torch.rand(b, i, j, l) B = torch.rand(l, k) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556"""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 = 12CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp32"VARIANT = "base"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a matrix multiplication of a diagonal matrix with another matrix. C = diag(A) * B """ def __init__(self): super(Model, self).__init__() def forward(self, A, B): """ Performs the matrix multiplication.
Args: A (torch.Tensor): A 1D tensor representing the diagonal of the diagonal matrix. Shape: (N,). B (torch.Tensor): A 2D tensor representing the second matrix. Shape: (N, M).
Returns: torch.Tensor: The result of the matrix multiplication. Shape: (N, M). """ # Logically equivalent to torch.diag(A) @ B # more efficient as no need to materialize a full N×N matrix return A.unsqueeze(1) * B
M = 4096N = 4096
# --- Task shape configuration (4GB-safe laptop envelope) ---M = 2048N = 2048
def get_inputs(): A = torch.rand(N) B = torch.rand(N, M) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758"""Task kb1_012_matmul_with_diagonal_matrices__shape_rect (KernelBench Level 1 #12, split=train, category=matmul, dtype=fp32, variant=shape_rect)."""PROBLEM_ID = "kb1_012_matmul_with_diagonal_matrices__shape_rect"SOURCE_KB_ID = 12CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp32"VARIANT = "shape_rect"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a matrix multiplication of a diagonal matrix with another matrix. C = diag(A) * B """ def __init__(self): super(Model, self).__init__() def forward(self, A, B): """ Performs the matrix multiplication.
Args: A (torch.Tensor): A 1D tensor representing the diagonal of the diagonal matrix. Shape: (N,). B (torch.Tensor): A 2D tensor representing the second matrix. Shape: (N, M).
Returns: torch.Tensor: The result of the matrix multiplication. Shape: (N, M). """ # Logically equivalent to torch.diag(A) @ B # more efficient as no need to materialize a full N×N matrix return A.unsqueeze(1) * B
M = 4096N = 4096
# --- Task shape configuration (4GB-safe laptop envelope) ---M = 2048N = 2048M = 1536N = 3072
def get_inputs(): A = torch.rand(N) B = torch.rand(N, M) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465"""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 = 13CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp32"VARIANT = "base"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a single matrix multiplication (C = A * B) with A and B being symmetric matrices. """ def __init__(self): super(Model, self).__init__() def forward(self, A, B): """ Performs matrix multiplication of two symmetric matrices.
Args: A (torch.Tensor): Input matrix A, shape (N, N), symmetric. B (torch.Tensor): Input matrix B, shape (N, N), symmetric.
Returns: torch.Tensor: Output matrix C, shape (N, N). """ return torch.matmul(A, B)
N = 4096
# --- Task shape configuration (4GB-safe laptop envelope) ---N = 1024
def get_inputs(): """ Generates a pair of random symmetric matrices for testing.
Returns: list: List containing two symmetric tensors A and B. """ A = torch.rand(N, N) A = (A + A.T) / 2 # Ensure symmetry B = torch.rand(N, N) B = (B + B.T) / 2 # Ensure symmetry return [A, B]
def get_init_inputs(): """ No specific initialization inputs needed for this model.
Returns: list: Empty list. """ return []if __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566"""Task kb1_013_matmul_for_symmetric_matrices__shape_small (KernelBench Level 1 #13, split=train, category=matmul, dtype=fp32, variant=shape_small)."""PROBLEM_ID = "kb1_013_matmul_for_symmetric_matrices__shape_small"SOURCE_KB_ID = 13CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp32"VARIANT = "shape_small"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a single matrix multiplication (C = A * B) with A and B being symmetric matrices. """ def __init__(self): super(Model, self).__init__() def forward(self, A, B): """ Performs matrix multiplication of two symmetric matrices.
Args: A (torch.Tensor): Input matrix A, shape (N, N), symmetric. B (torch.Tensor): Input matrix B, shape (N, N), symmetric.
Returns: torch.Tensor: Output matrix C, shape (N, N). """ return torch.matmul(A, B)
N = 4096
# --- Task shape configuration (4GB-safe laptop envelope) ---N = 1024N = 768
def get_inputs(): """ Generates a pair of random symmetric matrices for testing.
Returns: list: List containing two symmetric tensors A and B. """ A = torch.rand(N, N) A = (A + A.T) / 2 # Ensure symmetry B = torch.rand(N, N) B = (B + B.T) / 2 # Ensure symmetry return [A, B]
def get_init_inputs(): """ No specific initialization inputs needed for this model.
Returns: list: Empty list. """ return []if __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263"""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 = 14CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp32"VARIANT = "base"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs matrix multiplication (C = A * B) for upper triangular matrices. """ def __init__(self): super(Model, self).__init__() def forward(self, A, B): """ Performs matrix multiplication for upper triangular matrices.
Args: A (torch.Tensor): Upper triangular matrix of shape (N, N). B (torch.Tensor): Upper triangular matrix of shape (N, N).
Returns: torch.Tensor: The product of A and B, also an upper triangular matrix of shape (N, N). """ return torch.triu(torch.matmul(A, B))
N = 4096
# --- Task shape configuration (4GB-safe laptop envelope) ---N = 1024
def get_inputs(): """ Generates upper triangular matrices for testing.
Returns: list: A list containing two upper triangular matrices of shape (N, N). """ A = torch.triu(torch.rand(N, N)) B = torch.triu(torch.rand(N, N)) return [A, B]
def get_init_inputs(): """ No specific initialization inputs are needed for this model.
Returns: list: An empty list. """ return []if __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253"""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 = 15CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp32"VARIANT = "base"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a matrix multiplication (C = A * B) where A and B are lower triangular matrices. """ def __init__(self): super(Model, self).__init__() def forward(self, A, B): """ Performs matrix multiplication of lower triangular matrices A and B.
Args: A (torch.Tensor): Lower triangular matrix of shape (N, N). B (torch.Tensor): Lower triangular matrix of shape (N, N).
Returns: torch.Tensor: The result of matrix multiplication C of shape (N, N). """ return torch.tril(torch.matmul(A, B))
M = 4096
# --- Task shape configuration (4GB-safe laptop envelope) ---M = 1024
def get_inputs(): A = torch.rand(M, M) B = torch.rand(M, M) A = torch.tril(A) B = torch.tril(B) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455"""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 = 16CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp32"VARIANT = "base"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a single matrix multiplication (C = A * B) """ def __init__(self): super(Model, self).__init__() def forward(self, A: torch.Tensor, B: torch.Tensor) -> torch.Tensor: """ Performs matrix multiplication.
Args: A: Input tensor of shape (M, K). B: Input tensor of shape (K, N).
Returns: Output tensor of shape (M, N). """ return torch.matmul(A.T, B)
M = 1024 * 2K = 4096 * 2N = 2048 * 2
# --- Task shape configuration (4GB-safe laptop envelope) ---M = 1024K = 2048N = 1024
def get_inputs(): A = torch.rand(K, M) B = torch.rand(K, N) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455"""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 = 16CATEGORY = "matmul"SPLIT = "train"DTYPE = "bf16"VARIANT = "bf16"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a single matrix multiplication (C = A * B) """ def __init__(self): super(Model, self).__init__() def forward(self, A: torch.Tensor, B: torch.Tensor) -> torch.Tensor: """ Performs matrix multiplication.
Args: A: Input tensor of shape (M, K). B: Input tensor of shape (K, N).
Returns: Output tensor of shape (M, N). """ return torch.matmul(A.T, B)
M = 1024 * 2K = 4096 * 2N = 2048 * 2
# --- Task shape configuration (4GB-safe laptop envelope) ---M = 1024K = 2048N = 1024
def get_inputs(): A = torch.rand(K, M) B = torch.rand(K, N) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758"""Task kb1_016_matmul_with_transposed_a__shape_nonpow2 (KernelBench Level 1 #16, split=train, category=matmul, dtype=fp32, variant=shape_nonpow2)."""PROBLEM_ID = "kb1_016_matmul_with_transposed_a__shape_nonpow2"SOURCE_KB_ID = 16CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp32"VARIANT = "shape_nonpow2"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a single matrix multiplication (C = A * B) """ def __init__(self): super(Model, self).__init__() def forward(self, A: torch.Tensor, B: torch.Tensor) -> torch.Tensor: """ Performs matrix multiplication.
Args: A: Input tensor of shape (M, K). B: Input tensor of shape (K, N).
Returns: Output tensor of shape (M, N). """ return torch.matmul(A.T, B)
M = 1024 * 2K = 4096 * 2N = 2048 * 2
# --- Task shape configuration (4GB-safe laptop envelope) ---M = 1024K = 2048N = 1024M = 1536K = 1024N = 768
def get_inputs(): A = torch.rand(K, M) B = torch.rand(K, N) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455"""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 = 18CATEGORY = "matmul"SPLIT = "train"DTYPE = "fp32"VARIANT = "base"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a single matrix multiplication (C = A * B) """ def __init__(self): super(Model, self).__init__() def forward(self, A: torch.Tensor, B: torch.Tensor) -> torch.Tensor: """ Performs matrix multiplication.
Args: A: Input tensor of shape (M, K). B: Input tensor of shape (K, N).
Returns: Output tensor of shape (M, N). """ return torch.matmul(A.T, B.T)
M = 1024 * 2K = 4096 * 2N = 2048 * 2
# --- Task shape configuration (4GB-safe laptop envelope) ---M = 1024K = 2048N = 1024
def get_inputs(): A = torch.rand(K, M) B = torch.rand(N, K) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455"""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 = 18CATEGORY = "matmul"SPLIT = "train"DTYPE = "bf16"VARIANT = "bf16"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a single matrix multiplication (C = A * B) """ def __init__(self): super(Model, self).__init__() def forward(self, A: torch.Tensor, B: torch.Tensor) -> torch.Tensor: """ Performs matrix multiplication.
Args: A: Input tensor of shape (M, K). B: Input tensor of shape (K, N).
Returns: Output tensor of shape (M, N). """ return torch.matmul(A.T, B.T)
M = 1024 * 2K = 4096 * 2N = 2048 * 2
# --- Task shape configuration (4GB-safe laptop envelope) ---M = 1024K = 2048N = 1024
def get_inputs(): A = torch.rand(K, M) B = torch.rand(N, K) return [A, B]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758"""Task kb1_020_leakyrelu (KernelBench Level 1 #20, split=train, category=activation, dtype=fp32, variant=base)."""PROBLEM_ID = "kb1_020_leakyrelu"SOURCE_KB_ID = 20CATEGORY = "activation"SPLIT = "train"DTYPE = "fp32"VARIANT = "base"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a LeakyReLU activation. """ def __init__(self, negative_slope: float = 0.01): """ Initializes the LeakyReLU module.
Args: negative_slope (float, optional): The negative slope of the activation function. Defaults to 0.01. """ super(Model, self).__init__() self.negative_slope = negative_slope def forward(self, x: torch.Tensor) -> torch.Tensor: """ Applies LeakyReLU activation to the input tensor.
Args: x (torch.Tensor): Input tensor of any shape.
Returns: torch.Tensor: Output tensor with LeakyReLU applied, same shape as input. """ return torch.nn.functional.leaky_relu(x, negative_slope=self.negative_slope)
batch_size = 4096dim = 393216
# --- Task shape configuration (4GB-safe laptop envelope) ---batch_size = 2048dim = 4096
def get_inputs(): x = torch.randn(batch_size, dim) return [x]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758"""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 = 20CATEGORY = "activation"SPLIT = "train"DTYPE = "bf16"VARIANT = "bf16"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a LeakyReLU activation. """ def __init__(self, negative_slope: float = 0.01): """ Initializes the LeakyReLU module.
Args: negative_slope (float, optional): The negative slope of the activation function. Defaults to 0.01. """ super(Model, self).__init__() self.negative_slope = negative_slope def forward(self, x: torch.Tensor) -> torch.Tensor: """ Applies LeakyReLU activation to the input tensor.
Args: x (torch.Tensor): Input tensor of any shape.
Returns: torch.Tensor: Output tensor with LeakyReLU applied, same shape as input. """ return torch.nn.functional.leaky_relu(x, negative_slope=self.negative_slope)
batch_size = 4096dim = 393216
# --- Task shape configuration (4GB-safe laptop envelope) ---batch_size = 2048dim = 4096
def get_inputs(): x = torch.randn(batch_size, dim) return [x]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960"""Task kb1_020_leakyrelu__shape_wide (KernelBench Level 1 #20, split=train, category=activation, dtype=fp32, variant=shape_wide)."""PROBLEM_ID = "kb1_020_leakyrelu__shape_wide"SOURCE_KB_ID = 20CATEGORY = "activation"SPLIT = "train"DTYPE = "fp32"VARIANT = "shape_wide"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a LeakyReLU activation. """ def __init__(self, negative_slope: float = 0.01): """ Initializes the LeakyReLU module.
Args: negative_slope (float, optional): The negative slope of the activation function. Defaults to 0.01. """ super(Model, self).__init__() self.negative_slope = negative_slope def forward(self, x: torch.Tensor) -> torch.Tensor: """ Applies LeakyReLU activation to the input tensor.
Args: x (torch.Tensor): Input tensor of any shape.
Returns: torch.Tensor: Output tensor with LeakyReLU applied, same shape as input. """ return torch.nn.functional.leaky_relu(x, negative_slope=self.negative_slope)
batch_size = 4096dim = 393216
# --- Task shape configuration (4GB-safe laptop envelope) ---batch_size = 2048dim = 4096batch_size = 512dim = 12288
def get_inputs(): x = torch.randn(batch_size, dim) return [x]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051"""Task kb1_021_sigmoid (KernelBench Level 1 #21, split=train, category=activation, dtype=fp32, variant=base)."""PROBLEM_ID = "kb1_021_sigmoid"SOURCE_KB_ID = 21CATEGORY = "activation"SPLIT = "train"DTYPE = "fp32"VARIANT = "base"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a Sigmoid activation. """ def __init__(self): super(Model, self).__init__() def forward(self, x: torch.Tensor) -> torch.Tensor: """ Applies Sigmoid activation to the input tensor.
Args: x (torch.Tensor): Input tensor of any shape.
Returns: torch.Tensor: Output tensor with Sigmoid applied, same shape as input. """ return torch.sigmoid(x)
batch_size = 4096dim = 393216
# --- Task shape configuration (4GB-safe laptop envelope) ---batch_size = 2048dim = 4096
def get_inputs(): x = torch.randn(batch_size, dim) return [x]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051"""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 = 21CATEGORY = "activation"SPLIT = "train"DTYPE = "bf16"VARIANT = "bf16"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a Sigmoid activation. """ def __init__(self): super(Model, self).__init__() def forward(self, x: torch.Tensor) -> torch.Tensor: """ Applies Sigmoid activation to the input tensor.
Args: x (torch.Tensor): Input tensor of any shape.
Returns: torch.Tensor: Output tensor with Sigmoid applied, same shape as input. """ return torch.sigmoid(x)
batch_size = 4096dim = 393216
# --- Task shape configuration (4GB-safe laptop envelope) ---batch_size = 2048dim = 4096
def get_inputs(): x = torch.randn(batch_size, dim) return [x]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253"""Task kb1_021_sigmoid__shape_nonpow2 (KernelBench Level 1 #21, split=train, category=activation, dtype=fp32, variant=shape_nonpow2)."""PROBLEM_ID = "kb1_021_sigmoid__shape_nonpow2"SOURCE_KB_ID = 21CATEGORY = "activation"SPLIT = "train"DTYPE = "fp32"VARIANT = "shape_nonpow2"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a Sigmoid activation. """ def __init__(self): super(Model, self).__init__() def forward(self, x: torch.Tensor) -> torch.Tensor: """ Applies Sigmoid activation to the input tensor.
Args: x (torch.Tensor): Input tensor of any shape.
Returns: torch.Tensor: Output tensor with Sigmoid applied, same shape as input. """ return torch.sigmoid(x)
batch_size = 4096dim = 393216
# --- Task shape configuration (4GB-safe laptop envelope) ---batch_size = 2048dim = 4096batch_size = 1500dim = 3000
def get_inputs(): x = torch.randn(batch_size, dim) return [x]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051"""Task kb1_022_tanh (KernelBench Level 1 #22, split=train, category=activation, dtype=fp32, variant=base)."""PROBLEM_ID = "kb1_022_tanh"SOURCE_KB_ID = 22CATEGORY = "activation"SPLIT = "train"DTYPE = "fp32"VARIANT = "base"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a Tanh activation. """ def __init__(self): super(Model, self).__init__() def forward(self, x: torch.Tensor) -> torch.Tensor: """ Applies Tanh activation to the input tensor.
Args: x (torch.Tensor): Input tensor of any shape.
Returns: torch.Tensor: Output tensor with Tanh applied, same shape as input. """ return torch.tanh(x)
batch_size = 4096dim = 393216
# --- Task shape configuration (4GB-safe laptop envelope) ---batch_size = 2048dim = 4096
def get_inputs(): x = torch.randn(batch_size, dim) return [x]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051"""Task kb1_022_tanh__fp16 (KernelBench Level 1 #22, split=train, category=activation, dtype=fp16, variant=fp16)."""PROBLEM_ID = "kb1_022_tanh__fp16"SOURCE_KB_ID = 22CATEGORY = "activation"SPLIT = "train"DTYPE = "fp16"VARIANT = "fp16"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a Tanh activation. """ def __init__(self): super(Model, self).__init__() def forward(self, x: torch.Tensor) -> torch.Tensor: """ Applies Tanh activation to the input tensor.
Args: x (torch.Tensor): Input tensor of any shape.
Returns: torch.Tensor: Output tensor with Tanh applied, same shape as input. """ return torch.tanh(x)
batch_size = 4096dim = 393216
# --- Task shape configuration (4GB-safe laptop envelope) ---batch_size = 2048dim = 4096
def get_inputs(): x = torch.randn(batch_size, dim) return [x]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253"""Task kb1_022_tanh__shape_tall (KernelBench Level 1 #22, split=train, category=activation, dtype=fp32, variant=shape_tall)."""PROBLEM_ID = "kb1_022_tanh__shape_tall"SOURCE_KB_ID = 22CATEGORY = "activation"SPLIT = "train"DTYPE = "fp32"VARIANT = "shape_tall"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a Tanh activation. """ def __init__(self): super(Model, self).__init__() def forward(self, x: torch.Tensor) -> torch.Tensor: """ Applies Tanh activation to the input tensor.
Args: x (torch.Tensor): Input tensor of any shape.
Returns: torch.Tensor: Output tensor with Tanh applied, same shape as input. """ return torch.tanh(x)
batch_size = 4096dim = 393216
# --- Task shape configuration (4GB-safe laptop envelope) ---batch_size = 2048dim = 4096batch_size = 8192dim = 1024
def get_inputs(): x = torch.randn(batch_size, dim) return [x]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152"""Task kb1_024_logsoftmax (KernelBench Level 1 #24, split=train, category=activation, dtype=fp32, variant=base)."""PROBLEM_ID = "kb1_024_logsoftmax"SOURCE_KB_ID = 24CATEGORY = "activation"SPLIT = "train"DTYPE = "fp32"VARIANT = "base"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a LogSoftmax activation. """ def __init__(self, dim: int = 1): super(Model, self).__init__() self.dim = dim def forward(self, x: torch.Tensor) -> torch.Tensor: """ Applies LogSoftmax activation to the input tensor.
Args: x (torch.Tensor): Input tensor of shape (batch_size, dim).
Returns: torch.Tensor: Output tensor with LogSoftmax applied, same shape as input. """ return torch.log_softmax(x, dim=self.dim)
batch_size = 4096dim = 393216
# --- Task shape configuration (4GB-safe laptop envelope) ---batch_size = 2048dim = 4096
def get_inputs(): x = torch.randn(batch_size, dim) return [x]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152"""Task kb1_024_logsoftmax__bf16 (KernelBench Level 1 #24, split=train, category=activation, dtype=bf16, variant=bf16)."""PROBLEM_ID = "kb1_024_logsoftmax__bf16"SOURCE_KB_ID = 24CATEGORY = "activation"SPLIT = "train"DTYPE = "bf16"VARIANT = "bf16"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a LogSoftmax activation. """ def __init__(self, dim: int = 1): super(Model, self).__init__() self.dim = dim def forward(self, x: torch.Tensor) -> torch.Tensor: """ Applies LogSoftmax activation to the input tensor.
Args: x (torch.Tensor): Input tensor of shape (batch_size, dim).
Returns: torch.Tensor: Output tensor with LogSoftmax applied, same shape as input. """ return torch.log_softmax(x, dim=self.dim)
batch_size = 4096dim = 393216
# --- Task shape configuration (4GB-safe laptop envelope) ---batch_size = 2048dim = 4096
def get_inputs(): x = torch.randn(batch_size, dim) return [x]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354"""Task kb1_024_logsoftmax__shape_vocab (KernelBench Level 1 #24, split=train, category=activation, dtype=fp32, variant=shape_vocab)."""PROBLEM_ID = "kb1_024_logsoftmax__shape_vocab"SOURCE_KB_ID = 24CATEGORY = "activation"SPLIT = "train"DTYPE = "fp32"VARIANT = "shape_vocab"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a LogSoftmax activation. """ def __init__(self, dim: int = 1): super(Model, self).__init__() self.dim = dim def forward(self, x: torch.Tensor) -> torch.Tensor: """ Applies LogSoftmax activation to the input tensor.
Args: x (torch.Tensor): Input tensor of shape (batch_size, dim).
Returns: torch.Tensor: Output tensor with LogSoftmax applied, same shape as input. """ return torch.log_softmax(x, dim=self.dim)
batch_size = 4096dim = 393216
# --- Task shape configuration (4GB-safe laptop envelope) ---batch_size = 2048dim = 4096batch_size = 512dim = 16384
def get_inputs(): x = torch.randn(batch_size, dim) return [x]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051"""Task kb1_027_selu (KernelBench Level 1 #27, split=train, category=activation, dtype=fp32, variant=base)."""PROBLEM_ID = "kb1_027_selu"SOURCE_KB_ID = 27CATEGORY = "activation"SPLIT = "train"DTYPE = "fp32"VARIANT = "base"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a SELU activation. """ def __init__(self): super(Model, self).__init__() def forward(self, x: torch.Tensor) -> torch.Tensor: """ Applies SELU activation to the input tensor.
Args: x (torch.Tensor): Input tensor of any shape.
Returns: torch.Tensor: Output tensor with SELU applied, same shape as input. """ return torch.selu(x) batch_size = 4096dim = 393216
# --- Task shape configuration (4GB-safe laptop envelope) ---batch_size = 2048dim = 4096
def get_inputs(): x = torch.randn(batch_size, dim) return [x]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051"""Task kb1_027_selu__bf16 (KernelBench Level 1 #27, split=train, category=activation, dtype=bf16, variant=bf16)."""PROBLEM_ID = "kb1_027_selu__bf16"SOURCE_KB_ID = 27CATEGORY = "activation"SPLIT = "train"DTYPE = "bf16"VARIANT = "bf16"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a SELU activation. """ def __init__(self): super(Model, self).__init__() def forward(self, x: torch.Tensor) -> torch.Tensor: """ Applies SELU activation to the input tensor.
Args: x (torch.Tensor): Input tensor of any shape.
Returns: torch.Tensor: Output tensor with SELU applied, same shape as input. """ return torch.selu(x) batch_size = 4096dim = 393216
# --- Task shape configuration (4GB-safe laptop envelope) ---batch_size = 2048dim = 4096
def get_inputs(): x = torch.randn(batch_size, dim) return [x]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253"""Task kb1_027_selu__shape_nonpow2 (KernelBench Level 1 #27, split=train, category=activation, dtype=fp32, variant=shape_nonpow2)."""PROBLEM_ID = "kb1_027_selu__shape_nonpow2"SOURCE_KB_ID = 27CATEGORY = "activation"SPLIT = "train"DTYPE = "fp32"VARIANT = "shape_nonpow2"
import torchimport torch.nn as nn
class Model(nn.Module): """ Simple model that performs a SELU activation. """ def __init__(self): super(Model, self).__init__() def forward(self, x: torch.Tensor) -> torch.Tensor: """ Applies SELU activation to the input tensor.
Args: x (torch.Tensor): Input tensor of any shape.
Returns: torch.Tensor: Output tensor with SELU applied, same shape as input. """ return torch.selu(x) batch_size = 4096dim = 393216
# --- Task shape configuration (4GB-safe laptop envelope) ---batch_size = 2048dim = 4096batch_size = 1024dim = 6144
def get_inputs(): x = torch.randn(batch_size, dim) return [x]
def get_init_inputs(): return [] # No special initialization inputs neededif __name__ == "__main__": import sys from pathlib import Path sys.path.insert(0, str(Path(__file__).resolve().parents[2])) from verifier import verify_kernel, format_result res = verify_kernel(None, __file__, self_check=True) print(format_result(res)) sys.exit(0 if res["status"] == "PASS" else 1)README.mdAdded+51
manifest_train.jsonAdded+1977
problems/kb1_002_standard_matrix_multiplication.pyAdded+55
problems/kb1_002_standard_matrix_multiplication__bf16.pyAdded+55
problems/kb1_002_standard_matrix_multiplication__fp16.pyAdded+55
problems/kb1_002_standard_matrix_multiplication__shape_nonpow2.pyAdded+58
problems/kb1_004_matrix_vector_multiplication.pyAdded+53
problems/kb1_004_matrix_vector_multiplication__shape_wide.pyAdded+55
problems/kb1_005_matrix_scalar_multiplication.pyAdded+53
problems/kb1_005_matrix_scalar_multiplication__fp16.pyAdded+53
problems/kb1_005_matrix_scalar_multiplication__shape_nonpow2.pyAdded+55
problems/kb1_006_matmul_with_large_k_dimension.pyAdded+55
problems/kb1_006_matmul_with_large_k_dimension__bf16.pyAdded+55
problems/kb1_006_matmul_with_large_k_dimension__shape_tall.pyAdded+58
problems/kb1_007_matmul_with_small_k_dimension.pyAdded+55
problems/kb1_007_matmul_with_small_k_dimension__shape_rect.pyAdded+58
problems/kb1_008_matmul_with_irregular_shapes.pyAdded+55
problems/kb1_008_matmul_with_irregular_shapes__fp16.pyAdded+55
problems/kb1_009_tall_skinny_matrix_multiplication.pyAdded+53
problems/kb1_009_tall_skinny_matrix_multiplication__shape_skinny.pyAdded+55
problems/kb1_010_3d_tensor_matrix_multiplication.pyAdded+57
problems/kb1_010_3d_tensor_matrix_multiplication__fp16.pyAdded+57
problems/kb1_010_3d_tensor_matrix_multiplication__shape_large_batch.pyAdded+61
problems/kb1_011_4d_tensor_matrix_multiplication.pyAdded+68
problems/kb1_012_matmul_with_diagonal_matrices.pyAdded+56
problems/kb1_012_matmul_with_diagonal_matrices__shape_rect.pyAdded+58
problems/kb1_013_matmul_for_symmetric_matrices.pyAdded+65
problems/kb1_013_matmul_for_symmetric_matrices__shape_small.pyAdded+66
problems/kb1_014_matmul_for_upper_triangular_matrices.pyAdded+63
problems/kb1_015_matmul_for_lower_triangular_matrices.pyAdded+53
problems/kb1_016_matmul_with_transposed_a.pyAdded+55
problems/kb1_016_matmul_with_transposed_a__bf16.pyAdded+55
problems/kb1_016_matmul_with_transposed_a__shape_nonpow2.pyAdded+58
problems/kb1_018_matmul_with_transposed_both.pyAdded+55
problems/kb1_018_matmul_with_transposed_both__bf16.pyAdded+55
problems/kb1_020_leakyrelu.pyAdded+58
problems/kb1_020_leakyrelu__bf16.pyAdded+58
problems/kb1_020_leakyrelu__shape_wide.pyAdded+60
problems/kb1_021_sigmoid.pyAdded+51
problems/kb1_021_sigmoid__bf16.pyAdded+51
problems/kb1_021_sigmoid__shape_nonpow2.pyAdded+53
problems/kb1_022_tanh.pyAdded+51
problems/kb1_022_tanh__fp16.pyAdded+51
problems/kb1_022_tanh__shape_tall.pyAdded+53
problems/kb1_024_logsoftmax.pyAdded+52
problems/kb1_024_logsoftmax__bf16.pyAdded+52
problems/kb1_024_logsoftmax__shape_vocab.pyAdded+54
problems/kb1_027_selu.pyAdded+51
problems/kb1_027_selu__bf16.pyAdded+51
problems/kb1_027_selu__shape_nonpow2.pyAdded+53