Datasets:
messages listlengths 10 10 | uuid int64 0 8.92k | entry_point stringclasses 1
value | repo_name stringclasses 1
value | module_name stringclasses 1
value | final_speedup float64 0 1.54k | num_rounds int64 5 5 | original_python_code stringlengths 241 1.74k | best_round int64 1 5 | timestamp float64 1.76B 1.76B | conversion_mode stringclasses 1
value | enable_thinking bool 1
class | test_similarity float64 0.06 0.8 | test_nearest stringclasses 83
values | has_gemm bool 2
classes | has_softmax bool 2
classes | has_rmsnorm bool 2
classes | any_correct bool 2
classes | num_tokens int64 7.11k 38.5k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
[
{
"content": "You write custom Triton kernels to replace the pytorch operators in the given architecture to get speedups. \n\n You have complete freedom to choose the set of operators you want to replace. You may make the decision to replace some operators with custom Triton kernels and leave others unchange... | 1 | Model | 0.929204 | 5 | import torch
class Model(torch.nn.Module):
def __init__(self):
super().__init__()
def forward(self, x):
x = torch.abs(x)
x = x - 1.0
return x
def get_inputs():
return [torch.randn(64, 128)]
def get_init_inputs():
return [] | 5 | 1,760,530,230.686598 | full_conversation_enhanced | false | 0.204545 | 29_Matmul_Mish_Mish | false | false | false | true | 11,232 | ||
[
{
"content": "You write custom Triton kernels to replace the pytorch operators in the given architecture to get speedups. \n\n You have complete freedom to choose the set of operators you want to replace. You may make the decision to replace some operators with custom Triton kernels and leave others unchange... | 2 | Model | 0.764151 | 5 | import torch
import torch.nn as nn
class Model(nn.Module):
def __init__(self):
super().__init__()
def forward(self, x):
x = torch.relu(x) # Apply ReLU activation
x = x / 2.0 # Apply division by 2
return x
def get_inputs():
return [torch.randn(64, 128)] # Example input... | 5 | 1,760,530,293.452674 | full_conversation_enhanced | false | 0.317647 | 63_Gemm_ReLU_Divide | false | false | false | true | 9,283 | ||
[
{
"content": "You write custom Triton kernels to replace the pytorch operators in the given architecture to get speedups. \n\n You have complete freedom to choose the set of operators you want to replace. You may make the decision to replace some operators with custom Triton kernels and leave others unchange... | 5 | Model | 0.841463 | 5 | import torch
import torch.nn as nn
class Model(nn.Module):
def __init__(self):
super().__init__()
def forward(self, x):
x = torch.relu(x)
x = nn.Tanh()(x)
return x
def get_inputs():
return [torch.randn(1, 10)]
def get_init_inputs():
return [] | 5 | 1,760,530,302.196179 | full_conversation_enhanced | false | 0.292135 | 69_Conv2d_HardSwish_ReLU | false | false | false | true | 14,698 | ||
[
{
"content": "You write custom Triton kernels to replace the pytorch operators in the given architecture to get speedups. \n\n You have complete freedom to choose the set of operators you want to replace. You may make the decision to replace some operators with custom Triton kernels and leave others unchange... | 3 | Model | 0.775401 | 5 | import torch
class Model(torch.nn.Module):
def __init__(self):
super(Model, self).__init__()
def forward(self, x: torch.Tensor) -> torch.Tensor:
x = torch.abs(x) # abs operation
x = torch.multiply(x, 2) # multiply operation
return x
def get_inputs():
# Generate random ... | 5 | 1,760,530,343.795698 | full_conversation_enhanced | false | 0.153846 | 29_Matmul_Mish_Mish | false | false | false | true | 9,812 | ||
[{"content":"You write custom Triton kernels to replace the pytorch operators in the given architect(...TRUNCATED) | 6 | Model | 0.384306 | 5 | "import torch\nimport torch.nn as nn\nimport torch.nn.functional as F\n\n\nclass Model(nn.Module):\n(...TRUNCATED) | 4 | 1,760,530,364.357721 | full_conversation_enhanced | false | 0.269231 | 29_Matmul_Mish_Mish | false | false | false | true | 14,461 | ||
[{"content":"You write custom Triton kernels to replace the pytorch operators in the given architect(...TRUNCATED) | 0 | Model | 0.629382 | 5 | "import torch\nimport torch.nn as nn\n\n\nclass Model(nn.Module):\n def __init__(self):\n (...TRUNCATED) | 3 | 1,760,530,387.528202 | full_conversation_enhanced | false | 0.304348 | 57_Conv2d_ReLU_HardSwish | false | false | false | true | 13,210 | ||
[{"content":"You write custom Triton kernels to replace the pytorch operators in the given architect(...TRUNCATED) | 9 | Model | 0.727711 | 5 | "import torch\n\n\nclass Model(torch.nn.Module):\n def __init__(self, clamp_value, divisor):\n (...TRUNCATED) | 3 | 1,760,530,389.07887 | full_conversation_enhanced | false | 0.296296 | 63_Gemm_ReLU_Divide | false | false | false | true | 10,934 | ||
[{"content":"You write custom Triton kernels to replace the pytorch operators in the given architect(...TRUNCATED) | 8 | Model | 0.874384 | 5 | "import torch\n\n\nclass Model(torch.nn.Module):\n def __init__(self, clamp_value, multiply_facto(...TRUNCATED) | 4 | 1,760,530,435.81427 | full_conversation_enhanced | false | 0.184932 | 81_Gemm_Swish_Divide_Clamp_Tanh_Clamp | false | false | false | true | 10,087 | ||
[{"content":"You write custom Triton kernels to replace the pytorch operators in the given architect(...TRUNCATED) | 4 | Model | 0.604555 | 5 | "import torch\nimport torch.nn as nn\nimport torch.nn.functional as F\n\n\nclass Model(nn.Module):\n(...TRUNCATED) | 5 | 1,760,530,452.221091 | full_conversation_enhanced | false | 0.258824 | 29_Matmul_Mish_Mish | false | false | false | true | 10,569 | ||
[{"content":"You write custom Triton kernels to replace the pytorch operators in the given architect(...TRUNCATED) | 7 | Model | 0.391796 | 5 | "import torch\n\n\nclass Model(torch.nn.Module):\n def __init__(self):\n super(Model, self(...TRUNCATED) | 5 | 1,760,530,470.60211 | full_conversation_enhanced | false | 0.184466 | 25_Conv2d_Min_Tanh_Tanh | false | false | false | true | 13,135 |
End of preview. Expand in Data Studio
Preprocessed Dr. Kernel data
The data used to train and evaluate small Triton kernel-optimization students, built by scripts/preprocess.py of
agentic-kernel-generation-distiled from
hkust-nlp/drkernel-coldstart-8k, hkust-nlp/drkernel-rl-data, hkust-nlp/drkernel-validation-data (MIT).
| Config | Rows | What |
|---|---|---|
test |
100 | The 100 KernelBench Level 2 tasks of drkernel-validation-data, in Dr. Kernel's prompt format |
coldstart_sft |
8918 | Multi-turn SFT trajectories from drkernel-coldstart-8k, with feedback turns |
rl_pool |
71972 | RL prompts from drkernel-rl-data |
coldstart_sft and rl_pool are decontaminated against test: rows whose code has 5-gram Jaccard similarity
= 0.8 to any test task are dropped (
test_similarity,test_nearestgive each kept row's closest task). Added columns:has_gemm,has_softmax,has_rmsnorm(operator tags from regexes over the PyTorch code); incoldstart_sftalsoany_correct(some turn's feedback reports a correct kernel) andnum_tokens(Qwen3 tokenizer, thinking-off chat template).
from datasets import load_dataset
sft = load_dataset("kiplingliu/akg-data", "coldstart_sft", split = "train")
- Downloads last month
- 15