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 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...
6
Model
0.384306
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self): super().__init__() def forward(self, x): x = F.softplus(x) return x def get_inputs(): return [torch.randn(16, 3, 32, 32)] def get_init_inputs(): return []
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 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...
0
Model
0.629382
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 = x * 2 # This represents the multiplication operation return x def get_inputs(): x = torch.tensor([[1.0, -1.5, 2.3], [-4.2, 0.0, ...
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 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...
9
Model
0.727711
5
import torch class Model(torch.nn.Module): def __init__(self, clamp_value, divisor): super().__init__() self.clamp_value = clamp_value self.divisor = divisor def forward(self, x): x = torch.clamp(x, min=0.0, max=self.clamp_value) x = x / self.divisor return x ...
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 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...
8
Model
0.874384
5
import torch class Model(torch.nn.Module): def __init__(self, clamp_value, multiply_factor): super().__init__() self.clamp_value = clamp_value self.multiply_factor = multiply_factor def forward(self, x): x = torch.clamp(x, min=-self.clamp_value, max=self.clamp_value) x...
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 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...
4
Model
0.604555
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self): super().__init__() def forward(self, x): x = F.elu(x) x = F.softplus(x) return x def get_inputs(): return [torch.randn(64, 128)] def get_init_inputs(): re...
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 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...
7
Model
0.391796
5
import torch class Model(torch.nn.Module): def __init__(self): super(Model, self).__init__() def forward(self, x, y): x = torch.tanh(x) return x * y def get_inputs(): x = torch.tensor([1.0, 2.0, 3.0]) y = torch.tensor([4.0, 5.0, 6.0]) return [x, y] def get_init_inputs(...
5
1,760,530,470.60211
full_conversation_enhanced
false
0.184466
25_Conv2d_Min_Tanh_Tanh
false
false
false
true
13,135
[ { "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...
10
Model
0.685139
5
import torch import torch.nn as nn class Model(nn.Module): def __init__(self): super().__init__() def forward(self, x): x = torch.clamp(x, min=0.0, max=1.0) x = torch.selu(x) return x batch_size = 64 height, width = 128, 128 def get_inputs(): return [torch.randn(batch_...
5
1,760,531,518.059699
full_conversation_enhanced
false
0.275862
81_Gemm_Swish_Divide_Clamp_Tanh_Clamp
false
false
false
true
10,093
[ { "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...
20
Model
0.5
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self): super().__init__() def forward(self, x): x = F.elu(x) x = torch.selu(x) return x batch_size = 16 height, width = 64, 64 def get_inputs(): return [torch.randn(...
1
1,760,531,677.70646
full_conversation_enhanced
false
0.289157
29_Matmul_Mish_Mish
false
false
false
true
11,997
[ { "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...
28
Model
0.446835
5
import torch import torch.nn as nn class Model(nn.Module): def __init__(self, norm_type, num_features): super(Model, self).__init__() if norm_type == "nn.LayerNorm": self.norm = nn.LayerNorm(num_features) else: raise ValueError("Unsupported norm type") def forw...
3
1,760,531,705.263715
full_conversation_enhanced
false
0.169643
29_Matmul_Mish_Mish
false
false
false
true
17,151
[ { "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...
25
Model
0.642
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self, reduction_factor): super().__init__() self.reduction_factor = reduction_factor def forward(self, x): x = F.elu(x) x = torch.abs(x) return x reduction_factor ...
5
1,760,531,726.935928
full_conversation_enhanced
false
0.295455
29_Matmul_Mish_Mish
false
false
false
true
11,754
[ { "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...
18
Model
0.561062
5
import torch import torch.nn as nn class Model(nn.Module): def __init__(self, min_value, max_value): super().__init__() self.min_value = min_value self.max_value = max_value def forward(self, x): x = torch.clamp(x, min=self.min_value, max=self.max_value) x = x - self.m...
3
1,760,531,558.491254
full_conversation_enhanced
false
0.265152
100_ConvTranspose3d_Clamp_Min_Divide
false
false
false
true
13,540
[ { "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...
11
Model
0.872979
5
import torch import torch.nn as nn class Model(nn.Module): def __init__(self): super().__init__() def forward(self, x: torch.Tensor) -> torch.Tensor: x = torch.abs(x) x = nn.Sigmoid()(x) return x def get_inputs(): x = torch.tensor([-1.0, 0.0, 1.0]) return [x] def g...
1
1,760,531,484.676702
full_conversation_enhanced
false
0.18
29_Matmul_Mish_Mish
false
false
false
true
9,867
[ { "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...
23
Model
0.636957
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self): super().__init__() def forward(self, x): x = F.sigmoid(x) x = F.gelu(x) return x def get_inputs(): return [torch.randn(64, 128)] def get_init_inputs(): re...
2
1,760,531,622.173839
full_conversation_enhanced
false
0.258824
29_Matmul_Mish_Mish
false
false
false
true
12,173
[ { "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...
26
Model
0.548708
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self): super().__init__() # No need for initialization as there are no parameters for these operations def forward(self, x): x = F.hardtanh(x) x = torch.relu(x) retu...
1
1,760,531,646.842234
full_conversation_enhanced
false
0.345238
69_Conv2d_HardSwish_ReLU
false
false
false
true
14,173
[ { "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...
12
Model
0.633772
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 = x - 0.5 return x batch_size = 16 width = 256 height = 256 def get_inputs(): x = torch.randn(batch_size, height, width) retu...
5
1,760,531,557.180001
full_conversation_enhanced
false
0.302326
63_Gemm_ReLU_Divide
false
false
false
true
11,937
[ { "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...
21
Model
0.339506
5
import torch import torch.nn.functional as F class Model(torch.nn.Module): def __init__(self): super().__init__() def forward(self, x: torch.Tensor) -> torch.Tensor: return F.softmax(x, dim=1) def get_inputs(): return [torch.randn(2, 3, 4, 5)] def get_init_inputs(): return []
4
1,760,531,670.628203
full_conversation_enhanced
false
0.178218
99_Matmul_GELU_Softmax
false
true
false
true
18,403
[ { "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...
14
Model
0.588785
5
import torch class Model(torch.nn.Module): def __init__(self, clamp_min, clamp_max, add_value): super().__init__() self.clamp_min = clamp_min self.clamp_max = clamp_max self.add_value = add_value def forward(self, x): x = torch.clamp(x, min=self.clamp_min, max=self.cla...
5
1,760,531,510.174282
full_conversation_enhanced
false
0.186528
96_ConvTranspose3d_Multiply_Max_GlobalAvgPool_Clamp
false
false
false
true
10,307
[ { "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...
19
Model
0.519708
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self, param_shape): super(Model, self).__init__() self.param = nn.Parameter(torch.randn(param_shape)) def forward(self, x): x = F.hardtanh(x) x = x + self.param retu...
4
1,760,531,723.078504
full_conversation_enhanced
false
0.309091
1_Conv2D_ReLU_BiasAdd
false
false
false
true
19,734
[ { "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...
15
Model
0.773171
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self, input_channels): super().__init__() def forward(self, x): x = F.elu(x) x = torch.relu(x) return x batch_size = 16 input_channels = 3 width = 256 height = 256 def g...
4
1,760,531,575.977164
full_conversation_enhanced
false
0.352941
69_Conv2d_HardSwish_ReLU
false
false
false
true
11,085
[ { "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...
22
Model
0.54927
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self): super().__init__() def forward(self, x): x = F.elu(x) x = torch.mul(x, 2.0) return x def get_inputs(): return [torch.randn(64, 128)] def get_init_inputs(): ...
1
1,760,531,715.794167
full_conversation_enhanced
false
0.267442
29_Matmul_Mish_Mish
false
false
false
true
10,592
[ { "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...
16
Model
0.473103
5
import torch import torch.nn as nn class Model(nn.Module): def __init__(self, in_features, bias_shape): super().__init__() self.bias = nn.Parameter(torch.randn(bias_shape)) def forward(self, x): x = torch.relu(x) x = x + self.bias return x def get_inputs(): retur...
1
1,760,531,641.514507
full_conversation_enhanced
false
0.569892
1_Conv2D_ReLU_BiasAdd
false
false
false
true
16,208
[ { "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...
17
Model
0.678959
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self): super().__init__() def forward(self, x): x = torch.clamp(x, min=-1.0, max=1.0) x = F.hardtanh(x) return x def get_inputs(): return [torch.randn(64, 128)] def ...
1
1,760,531,609.659725
full_conversation_enhanced
false
0.307018
81_Gemm_Swish_Divide_Clamp_Tanh_Clamp
false
false
false
true
10,844
[ { "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...
24
Model
0.464527
5
import torch import torch.nn as nn class Model(nn.Module): def __init__(self, input_size): super().__init__() self.input_size = input_size def forward(self, x): x = torch.softmax(x, dim=self.input_size) x = torch.sqrt(x) return x def get_inputs(): return [torch.r...
3
1,760,531,735.628849
full_conversation_enhanced
false
0.27193
24_Conv3d_Min_Softmax
false
true
false
true
16,867
[ { "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...
31
Model
0.616034
5
import torch import torch.nn as nn class Model(nn.Module): def __init__(self): super().__init__() def forward(self, x): x = torch.sigmoid(x) x = torch.abs(x) return x batch_size = 128 height, width = 32, 32 def get_inputs(): return [torch.randn(batch_size, height, widt...
1
1,760,531,726.442289
full_conversation_enhanced
false
0.321839
56_Matmul_Sigmoid_Sum
false
false
false
true
9,815
[ { "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...
30
Model
0.489796
5
import torch class Model(torch.nn.Module): def __init__(self, multiplier): super().__init__() self.multiplier = multiplier def forward(self, x): x = torch.tril(x) x = torch.multiply(x, self.multiplier) return x def get_inputs(): x = torch.randn(3, 3) return [...
4
1,760,531,762.62883
full_conversation_enhanced
false
0.22449
29_Matmul_Mish_Mish
false
false
false
true
10,936
[ { "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...
29
Model
0.726636
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self): super().__init__() def forward(self, x): x = torch.sign(x) x = F.elu(x) return x def get_inputs(): return [torch.tensor([-1.5, 0.2, -3.7, 4.8])] def get_init_...
5
1,760,531,766.648321
full_conversation_enhanced
false
0.258824
29_Matmul_Mish_Mish
false
false
false
true
10,627
[ { "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...
27
Model
0.537367
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self): super().__init__() def forward(self, x): x = torch.sigmoid(x) x = F.hardshrink(x) return x def get_inputs(): x = torch.randn(64, 128) return [x] def get_i...
4
1,760,531,785.205914
full_conversation_enhanced
false
0.292135
56_Matmul_Sigmoid_Sum
false
false
false
true
12,577
[ { "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...
38
Model
0.786571
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self): super().__init__() # No parameters needed as we're not using any specific parameters def forward(self, x): x = torch.sigmoid(x) # Apply sigmoid activation x = F.hard...
5
1,760,531,794.256838
full_conversation_enhanced
false
0.292135
56_Matmul_Sigmoid_Sum
false
false
false
true
12,105
[ { "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...
34
Model
0.511712
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 = torch.tril(x) return x batch_size = 32 height, width = 64, 64 def get_inputs(): return [torch.randn(batch_size, height, width)]...
1
1,760,531,801.227583
full_conversation_enhanced
false
0.329412
69_Conv2d_HardSwish_ReLU
false
false
false
true
15,055
[ { "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...
32
Model
0.596674
5
import torch class Model(torch.nn.Module): def __init__(self, size, diagonal): super().__init__() self.size = size self.diagonal = diagonal def forward(self, x): x = torch.triu(x, diagonal=self.diagonal) x = torch.tril(x, diagonal=self.diagonal) return x # De...
2
1,760,531,817.067783
full_conversation_enhanced
false
0.181818
29_Matmul_Mish_Mish
false
false
false
true
11,147
[ { "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...
13
Model
0.487352
5
import torch class Model(torch.nn.Module): def __init__(self): super().__init__() def forward(self, x: torch.Tensor) -> torch.Tensor: x = torch.triu(x) x = torch.pow(x, 2) return x def get_inputs(): x = torch.randn(3, 3) return [x] def get_init_inputs(): return...
1
1,760,531,817.737646
full_conversation_enhanced
false
0.153846
29_Matmul_Mish_Mish
false
false
false
true
12,176
[ { "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...
40
Model
0.53719
5
import torch class Model(torch.nn.Module): def __init__(self): super().__init__() def forward(self, x): x = torch.tril(x) x = x * 2 # equivalent to mul operation return x batch_size = 16 height = 4 width = 4 def get_inputs(): x = torch.randn(batch_size, height, width)...
4
1,760,531,821.214627
full_conversation_enhanced
false
0.204545
29_Matmul_Mish_Mish
false
false
false
true
13,491
[ { "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...
36
Model
0.477891
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self): super().__init__() def forward(self, x): x = torch.sigmoid(x) x = F.softplus(x) return x def get_inputs(): return [torch.randn(1, 5, 5)] def get_init_inputs()...
4
1,760,531,897.149192
full_conversation_enhanced
false
0.292135
56_Matmul_Sigmoid_Sum
false
false
false
true
12,100
[ { "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...
62
Model
0.602612
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self): super().__init__() def forward(self, x: torch.Tensor) -> torch.Tensor: x = torch.relu(x) # Applying ReLU activation function x = F.leaky_relu(x, negative_slope=0.01) # Appl...
1
1,760,531,929.415911
full_conversation_enhanced
false
0.2
69_Conv2d_HardSwish_ReLU
false
false
false
true
11,614
[ { "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...
54
Model
0.64837
5
import torch import torch.nn.functional as F class Model(torch.nn.Module): def __init__(self): super(Model, self).__init__() def forward(self, x): x = torch.clamp(x, min=0.0, max=1.0) x = F.max_pool2d(x, kernel_size=2, stride=2) return x def get_inputs(): return [torch.r...
5
1,760,531,937.039561
full_conversation_enhanced
false
0.215385
81_Gemm_Swish_Divide_Clamp_Tanh_Clamp
false
false
false
true
13,683
[ { "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...
35
Model
0.718821
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self): super().__init__() def forward(self, x): x = F.leaky_relu(x) x = F.hardswish(x) return x def get_inputs(): return [torch.randn(64, 128)] def get_init_inputs()...
5
1,760,531,937.332414
full_conversation_enhanced
false
0.258824
29_Matmul_Mish_Mish
false
false
false
true
12,719
[ { "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...
37
Model
1.439252
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self, input_channels): super().__init__() def forward(self, x): x = F.leaky_relu(x) x = torch.mean(x, dim=1, keepdim=True) return x batch_size = 32 input_channels = 64 wid...
4
1,760,531,955.296621
full_conversation_enhanced
false
0.358696
56_Matmul_Sigmoid_Sum
false
false
false
true
13,729
[ { "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...
65
Model
0.536878
5
import torch import torch.nn.functional as F class Model(torch.nn.Module): def __init__(self): super(Model, self).__init__() def forward(self, x, y): x = F.elu(x) return x + y def get_inputs(): x = torch.randn(64, 128) y = torch.randn(64, 128) return [x, y] def get_ini...
5
1,760,531,975.665317
full_conversation_enhanced
false
0.153846
29_Matmul_Mish_Mish
false
false
false
true
11,718
[ { "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...
41
Model
0.629559
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self): super().__init__() self.hardswish = nn.Hardswish() def forward(self, x): x = F.leaky_relu(x, negative_slope=0.01) x = self.hardswish(x) return x def get_inp...
4
1,760,531,993.938627
full_conversation_enhanced
false
0.245902
64_Gemm_LogSumExp_LeakyReLU_LeakyReLU_GELU_GELU
false
false
false
true
14,199
[ { "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...
39
Model
0.563197
5
import torch import torch.nn.functional as F class Model(torch.nn.Module): def __init__(self, min_value, max_value, alpha): super().__init__() self.min_value = min_value self.max_value = max_value self.alpha = alpha def forward(self, x): x = torch.clamp(x, min=self.min...
1
1,760,531,999.08273
full_conversation_enhanced
false
0.22069
100_ConvTranspose3d_Clamp_Min_Divide
false
false
false
true
20,924
[ { "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...
47
Model
0.964758
5
import torch import torch.nn as nn class Model(nn.Module): def __init__(self, in_features, out_features): super().__init__() self.hardtanh = nn.Hardtanh() self.hardsigmoid = nn.Hardtanh(min_val=0, max_val=1) def forward(self, x): x = self.hardtanh(x) x = self.hardsigmo...
3
1,760,532,000.228868
full_conversation_enhanced
false
0.344
30_Gemm_GroupNorm_Hardtanh
false
false
false
true
9,339
[ { "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...
75
Model
0.634259
5
import torch class Model(torch.nn.Module): def __init__(self, in_features): super(Model, self).__init__() self.in_features = in_features self.hard_sigmoid = torch.nn.Hardsigmoid() def forward(self, x): x = self.hard_sigmoid(x) x = torch.sigmoid(x) return x de...
4
1,760,532,002.692163
full_conversation_enhanced
false
0.282828
29_Matmul_Mish_Mish
false
false
false
true
12,139
[ { "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...
53
Model
0.492823
5
import torch import torch.nn.functional as F class Model(torch.nn.Module): def __init__(self): super(Model, self).__init__() def forward(self, x): x = F.elu(x) x = torch.triu(x) return x def get_inputs(): return [torch.randn(1, 3, 224, 224)] def get_init_inputs(): ...
1
1,760,532,014.912277
full_conversation_enhanced
false
0.238636
29_Matmul_Mish_Mish
false
false
false
true
21,118
[ { "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...
61
Model
0.742152
5
import torch import torch.nn.functional as F class Model(torch.nn.Module): def __init__(self, num_features): super().__init__() self.num_features = num_features def forward(self, x): x = F.hardtanh(x) x = torch.clamp(x, min=0.0, max=1.0) return x def get_inputs(): ...
2
1,760,532,024.762987
full_conversation_enhanced
false
0.256
81_Gemm_Swish_Divide_Clamp_Tanh_Clamp
false
false
false
true
11,875
[ { "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...
48
Model
0.545617
5
import torch import torch.nn.functional as F class Model(torch.nn.Module): def __init__(self): super().__init__() def forward(self, x): x = F.hardtanh(x) x = F.softplus(x) return x def get_inputs(): return [torch.randn(64, 128)] def get_init_inputs(): return [] # ...
4
1,760,532,025.657916
full_conversation_enhanced
false
0.211111
29_Matmul_Mish_Mish
false
false
false
true
14,048
[ { "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...
68
Model
0.515539
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self): super().__init__() def forward(self, x): x = F.hardsigmoid(x) x = torch.selu(x) return x def get_inputs(): return [torch.randn(1, 10)] def get_init_inputs(): ...
4
1,760,532,029.913926
full_conversation_enhanced
false
0.289157
29_Matmul_Mish_Mish
false
false
false
true
12,965
[ { "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...
44
Model
0.912023
5
import torch import torch.nn as nn class Model(nn.Module): def __init__(self, multiplier): super().__init__() self.multiplier = multiplier def forward(self, x): x = torch.clamp(x, min=0.0, max=1.0) x = x * self.multiplier return x def get_inputs(): # The input te...
3
1,760,532,036.560529
full_conversation_enhanced
false
0.272727
81_Gemm_Swish_Divide_Clamp_Tanh_Clamp
false
false
false
true
10,396
[ { "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...
73
Model
0.611465
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 = torch.cumsum(x, dim=1) return x def get_inputs(): batch_size = 16 height, width = 32, 32 x = torch.randn(batch_size, 3, h...
4
1,760,532,038.06764
full_conversation_enhanced
false
0.307692
99_Matmul_GELU_Softmax
false
false
false
true
13,156
[ { "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...
33
Model
0.733189
5
import torch import torch.nn as nn class Model(nn.Module): def __init__(self): super(Model, self).__init__() self.relu = nn.ReLU() self.sqrt = torch.sqrt def forward(self, x): x = self.relu(x) x = self.sqrt(x) return x def get_inputs(): return [torch.rand...
5
1,760,532,038.917085
full_conversation_enhanced
false
0.333333
61_ConvTranspose3d_ReLU_GroupNorm
false
false
false
true
11,677
[ { "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...
43
Model
0.470492
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self): super().__init__() def forward(self, x): x = F.relu(x) # Using torch.relu from torch.functional x = torch.prod(x, dim=1, keepdim=True) # Using torch.prod from torch.functio...
4
1,760,532,040.076048
full_conversation_enhanced
false
0.351648
56_Matmul_Sigmoid_Sum
false
false
false
true
15,964
[ { "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...
72
Model
0.643204
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self, in_features, out_features): super().__init__() self.linear = nn.Linear(in_features, out_features) def forward(self, x): x = torch.relu(x) x = F.mish(x) return ...
5
1,760,532,040.679882
full_conversation_enhanced
false
0.618421
29_Matmul_Mish_Mish
true
false
false
true
12,738
[ { "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...
42
Model
0.607477
5
import torch import torch.nn as nn class Model(nn.Module): def __init__(self): super().__init__() def forward(self, x): x = torch.sum(x, dim=1) x = nn.ReLU()(x) return x batch_size = 128 height, width = 32, 32 def get_inputs(): return [torch.randn(batch_size, 3, height...
1
1,760,532,042.00036
full_conversation_enhanced
false
0.287234
56_Matmul_Sigmoid_Sum
false
false
false
true
13,852
[ { "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...
74
Model
0.857456
5
import torch import torch.nn as nn class Model(nn.Module): def __init__(self, input_size, clamp_value, dig_base): super().__init__() self.input_size = input_size self.clamp_value = clamp_value self.dig_base = dig_base def forward(self, x): x = torch.clamp(x, min=0.0, m...
5
1,760,532,042.003322
full_conversation_enhanced
false
0.195313
56_Matmul_Sigmoid_Sum
false
false
false
true
12,294
[ { "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...
45
Model
0.602251
5
import torch import torch.nn.functional as F class Model(torch.nn.Module): def __init__(self): super(Model, self).__init__() def forward(self, x): x = torch.clamp(x, min=0.0, max=1.0) x = F.leaky_relu(x) return x def get_inputs(): return [torch.randn(64, 128)] def get_...
5
1,760,532,041.70544
full_conversation_enhanced
false
0.219512
81_Gemm_Swish_Divide_Clamp_Tanh_Clamp
false
false
false
true
13,736
[ { "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...
64
Model
0.584775
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self, in_features, out_features): super().__init__() self.linear = nn.Linear(in_features, out_features) def forward(self, x): x = F.relu(x) x = torch.min(x, dim=1).values ...
5
1,760,532,048.676598
full_conversation_enhanced
false
0.556818
99_Matmul_GELU_Softmax
true
false
false
true
12,868
[ { "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...
63
Model
0.580524
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self): super().__init__() def forward(self, x): x = F.hardsigmoid(x) x = torch.tanh(x) return x def get_inputs(): return [torch.randn(64, 128)] # Example shape, can v...
3
1,760,532,052.769678
full_conversation_enhanced
false
0.305263
25_Conv2d_Min_Tanh_Tanh
false
false
false
true
13,936
[ { "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...
66
Model
0.633459
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self): super().__init__() def forward(self, x: torch.Tensor) -> torch.Tensor: x = F.hardtanh(x) x = F.gelu(x) return x def get_inputs(): return [torch.randn(64, 128)] ...
2
1,760,532,070.524534
full_conversation_enhanced
false
0.183673
29_Matmul_Mish_Mish
false
false
false
true
18,136
[ { "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...
57
Model
0.659851
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self): super().__init__() def forward(self, x): x = F.elu(x) x = F.adaptive_avg_pool2d(x, output_size=(1, 1)) return x batch_size = 16 height, width = 64, 64 def get_inp...
1
1,760,532,088.357851
full_conversation_enhanced
false
0.223404
29_Matmul_Mish_Mish
false
false
false
true
12,824
[ { "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...
79
Model
0.5
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 = torch.clamp(x, min=0.0, max=1.0) return x batch_size = 16 height = 256 width = 256 def get_inputs(): x = torch.randn(batch_size...
5
1,760,532,105.951506
full_conversation_enhanced
false
0.287234
69_Conv2d_HardSwish_ReLU
false
false
false
true
12,546
[ { "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...
71
Model
0.634831
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 = torch.abs(x) return x batch_size = 16 height, width = 256, 256 def get_inputs(): x = torch.randn(batch_size, 1, height, width) ...
1
1,760,532,114.926522
full_conversation_enhanced
false
0.329412
69_Conv2d_HardSwish_ReLU
false
false
false
true
11,657
[ { "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...
51
Model
0.539405
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 = torch.selu(x) return x # Test case: batch_size = 32 height, width = 64, 64 channels = 16 def get_inputs(): return [torch.randn(...
1
1,760,532,116.854905
full_conversation_enhanced
false
0.329412
69_Conv2d_HardSwish_ReLU
false
false
false
true
16,580
[ { "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...
56
Model
0.52862
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__( self, in_channels: int, out_channels: int, kernel_size: tuple, stride: int, padding: tuple, dilation: tuple, groups: int, bias: bool, ...
2
1,760,532,120.960393
full_conversation_enhanced
false
0.173184
47_Conv3d_Mish_Tanh
false
false
false
true
20,246
[ { "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...
58
Model
0.780362
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self): super().__init__() def forward(self, x): x = torch.tanh(x) x = F.hardsigmoid(x) return x def get_inputs(): return [torch.randn(16, 32, 32)] def get_init_input...
4
1,760,532,127.777047
full_conversation_enhanced
false
0.278351
25_Conv2d_Min_Tanh_Tanh
false
false
false
true
12,259
[ { "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...
60
Model
0.74569
5
import torch class Model(torch.nn.Module): def __init__(self): super().__init__() def forward(self, x: torch.Tensor) -> torch.Tensor: x = torch.t(x) # transpose x = torch.softmax(x, dim=1) # apply softmax on the second dimension return x def get_inputs(): # Create inpu...
5
1,760,532,130.885431
full_conversation_enhanced
false
0.22807
66_Matmul_Dropout_Softmax
false
true
false
true
13,233
[ { "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...
77
Model
0.86406
5
import torch class Model(torch.nn.Module): def __init__(self, num_features): super().__init__() self.torch_tril = torch.tril self.nn_sigmoid = torch.nn.Sigmoid() self.num_features = num_features def forward(self, x): x = self.torch_tril(x) x = self.nn_sigmoid(x...
5
1,760,532,153.016968
full_conversation_enhanced
false
0.196581
29_Matmul_Mish_Mish
false
false
false
true
12,274
[ { "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...
50
Model
0.763158
5
import torch import torch.nn as nn class Model(nn.Module): def __init__(self, bias_shape): super().__init__() self.bias = nn.Parameter(torch.randn(bias_shape)) def forward(self, x): x = torch.clamp(x, min=0.0, max=1.0) x = torch.triu(x) x = x + self.bias return...
5
1,760,532,160.341098
full_conversation_enhanced
false
0.441441
1_Conv2D_ReLU_BiasAdd
false
false
false
true
12,923
[ { "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...
52
Model
0.565282
5
import torch import torch.nn as nn class Model(nn.Module): def __init__(self, in_channels, out_channels): super().__init__() self.in_channels = in_channels self.out_channels = out_channels def forward(self, x): x = torch.mean(x, dim=1, keepdim=True) x = x * self.out_ch...
4
1,760,532,165.270994
full_conversation_enhanced
false
0.301724
32_Conv2d_Scaling_Min
false
false
false
true
14,096
[ { "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...
69
Model
0.921021
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self, in_features: int, out_features: int): super().__init__() self.linear = nn.Linear(in_features, out_features) self.hardtanh = nn.Hardtanh() def forward(self, x: torch.Tensor) ->...
4
1,760,532,171.303684
full_conversation_enhanced
false
0.333333
29_Matmul_Mish_Mish
true
false
false
true
18,617
[ { "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...
76
Model
1.104294
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self, input_size, hidden_size, output_size): super(Model, self).__init__() self.fc = nn.Linear(input_size, hidden_size) self.tanh = torch.tanh self.output = nn.Linear(hidden_size...
5
1,760,532,227.329567
full_conversation_enhanced
false
0.398438
45_Gemm_Sigmoid_LogSumExp
true
false
false
true
18,918
[ { "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...
81
Model
0.636156
5
import torch import torch.nn as nn class Model(nn.Module): def __init__(self): super().__init__() def forward(self, x): x = torch.sigmoid(x) x = torch.sigmoid(x) return x def get_inputs(): return [torch.randn(64, 128)] def get_init_inputs(): return []
3
1,760,532,242.63471
full_conversation_enhanced
false
0.337349
56_Matmul_Sigmoid_Sum
false
false
false
true
10,514
[ { "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...
46
Model
0.832768
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self, input_size, hidden_size): super().__init__() self.fc = nn.Linear(input_size, hidden_size) def forward(self, x): x = self.fc(x) x = F.elu(x) x = F.hardtanh(x) ...
4
1,760,532,252.085276
full_conversation_enhanced
false
0.431579
56_Matmul_Sigmoid_Sum
true
false
false
true
14,850
[ { "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...
78
Model
0.5
5
import torch class Model(torch.nn.Module): def __init__(self, div_factor): super().__init__() self.div_factor = div_factor def forward(self, x): x = torch.tril(x) x = x / self.div_factor return x def get_inputs(): batch_size = 1 height = 4 width = 4 x...
5
1,760,532,256.209403
full_conversation_enhanced
false
0.242424
63_Gemm_ReLU_Divide
false
false
false
true
12,752
[ { "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...
67
Model
0.53789
5
import torch import torch.nn as nn class Model(nn.Module): def __init__(self): super().__init__() self.avgpool = nn.AvgPool2d(kernel_size=2, stride=2) self.relu = nn.ReLU() def forward(self, x): x = self.avgpool(x) x = self.relu(x) return x def get_inputs(): ...
4
1,760,532,262.199877
full_conversation_enhanced
false
0.290076
61_ConvTranspose3d_ReLU_GroupNorm
false
false
false
true
24,058
[ { "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...
80
Model
0.726058
5
import torch class Model(torch.nn.Module): def __init__(self, clamp_min, clamp_max, clamp_min_tri, clamp_max_tri): super().__init__() self.clamp_min = clamp_min self.clamp_max = clamp_max self.clamp_min_tri = clamp_min_tri self.clamp_max_tri = clamp_max_tri def forward...
1
1,760,532,262.34307
full_conversation_enhanced
false
0.182266
96_ConvTranspose3d_Multiply_Max_GlobalAvgPool_Clamp
false
false
false
true
12,636
[ { "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...
70
Model
0.695572
5
import torch import torch.nn as nn class Model(nn.Module): def __init__(self, num_channels): super().__init__() self.hardtanh = nn.Hardtanh() def forward(self, x): x = torch.tril(x) x = self.hardtanh(x) return x batch_size = 16 num_channels = 3 height = 4 width = 4 ...
1
1,760,532,263.325874
full_conversation_enhanced
false
0.324561
30_Gemm_GroupNorm_Hardtanh
false
false
false
true
17,156
[ { "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...
89
Model
0.54067
5
import torch import torch.nn as nn class Model(nn.Module): def __init__(self, min_val, max_val, dim): super().__init__() self.clamp_val = (min_val, max_val) self.softmax = nn.Softmax(dim=dim) def forward(self, x): x = torch.clamp(x, min=self.clamp_val[0], max=self.clamp_val[1]...
4
1,760,532,269.729901
full_conversation_enhanced
false
0.223602
49_ConvTranspose3d_Softmax_Sigmoid
false
true
false
true
13,270
[ { "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...
59
Model
0.802273
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self, power): super().__init__() self.power = power def forward(self, x): x = F.hardtanh(x) x = torch.pow(x, self.power) return x def get_inputs(): x = torch.r...
5
1,760,532,276.376339
full_conversation_enhanced
false
0.268817
29_Matmul_Mish_Mish
false
false
false
true
13,593
[ { "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...
82
Model
0.6375
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self, input_size, hidden_size): super().__init__() self.linear = nn.Linear(input_size, hidden_size) def forward(self, x): x = F.gelu(x) # Gaussian Error Linear Units (GELU) ...
2
1,760,532,278.74328
full_conversation_enhanced
false
0.505747
56_Matmul_Sigmoid_Sum
true
false
false
true
14,201
[ { "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...
102
Model
0.498182
5
import torch import torch.nn as nn class Model(nn.Module): def __init__(self): super().__init__() def forward(self, x): x = torch.sigmoid(x) x = torch.selu(x) return x def get_inputs(): return [torch.randn(64, 128)] def get_init_inputs(): return []
3
1,760,532,284.138459
full_conversation_enhanced
false
0.321839
56_Matmul_Sigmoid_Sum
false
false
false
true
10,168
[ { "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...
86
Model
0.431065
5
import torch import torch.nn as nn class Model(nn.Module): def __init__(self, input_size, hidden_size): super(Model, self).__init__() self.linear = nn.Linear(input_size, hidden_size) def forward(self, x): # Apply torch.triu x = torch.triu(x) # Apply torch.tanh ...
4
1,760,532,289.892849
full_conversation_enhanced
false
0.541176
56_Matmul_Sigmoid_Sum
true
false
false
true
17,606
[ { "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...
92
Model
0.461233
5
import torch class Model(torch.nn.Module): def __init__(self): super().__init__() def forward(self, x): x = torch.mean(x, dim=0) return x def get_inputs(): return [torch.randn(64, 128)] def get_init_inputs(): return []
3
1,760,532,309.179086
full_conversation_enhanced
false
0.241758
99_Matmul_GELU_Softmax
false
false
false
true
13,787
[ { "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...
96
Model
0.876316
5
import torch import torch.nn as nn class Model(nn.Module): def __init__(self, input_dim): super().__init__() self.sigmoid = nn.Sigmoid() self.input_dim = input_dim def forward(self, x): x = self.sigmoid(x) x = x - 0.5 return x input_dim = 64 def get_inputs(...
3
1,760,532,312.006574
full_conversation_enhanced
false
0.28
59_Matmul_Swish_Scaling
false
false
false
true
10,954
[ { "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...
87
Model
0.294118
5
import torch class Model(torch.nn.Module): def __init__(self): super().__init__() def forward(self, x): x = torch.digamma(x) x = torch.cumsum(x, dim=0) return x def get_inputs(): x = torch.tensor([1.0, 2.0, 3.0, 4.0, 5.0], dtype=torch.float64) return [x] def get_in...
3
1,760,532,318.056723
full_conversation_enhanced
false
0.260417
99_Matmul_GELU_Softmax
false
false
false
true
13,483
[ { "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...
99
Model
0.677966
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self, in_features, bias_shape): super().__init__() self.relu = F.relu self.relu_layer = nn.ReLU() self.bias = nn.Parameter(torch.randn(bias_shape)) def forward(self, x): ...
3
1,760,532,318.616656
full_conversation_enhanced
false
0.444444
1_Conv2D_ReLU_BiasAdd
false
false
false
true
12,527
[ { "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...
84
Model
0.695413
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self, in_features, out_features): super().__init__() self.dense = nn.Linear(in_features, out_features) def forward(self, x): x = self.dense(x) x = F.hardtanh(x) x = ...
5
1,760,532,329.204503
full_conversation_enhanced
false
0.511628
29_Matmul_Mish_Mish
true
false
false
true
13,781
[ { "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...
95
Model
0.687783
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 = torch.relu(x) return x batch_size = 16 height, width = 32, 32 def get_inputs(): return [torch.randn(batch_size, 1, height, widt...
3
1,760,532,351.070049
full_conversation_enhanced
false
0.3625
69_Conv2d_HardSwish_ReLU
false
false
false
true
12,430
[ { "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...
90
Model
1.248611
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self, in_channels, out_channels, kernel_size, stride, padding): super().__init__() self.conv = nn.Conv2d(in_channels, out_channels, kernel_size, stride=stride, padding=padding) def forward(...
5
1,760,532,353.646905
full_conversation_enhanced
false
0.504673
47_Conv3d_Mish_Tanh
false
false
false
true
15,320
[ { "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...
106
Model
1.323217
5
import torch import torch.nn as nn class Model(nn.Module): def __init__(self, input_size): super().__init__() self.input_size = input_size def forward(self, x): x = torch.triu(x, diagonal=1) x = torch.abs(x) return x def get_inputs(): # Assuming [64, 3, 224, 224]...
1
1,760,532,359.358847
full_conversation_enhanced
false
0.255319
29_Matmul_Mish_Mish
false
false
false
true
18,752
[ { "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...
88
Model
0.792148
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 = torch.trunc(x) return x batch_size = 16 height = 256 width = 256 def get_inputs(): x = torch.randn(batch_size, height, width) ...
2
1,760,532,378.527846
full_conversation_enhanced
false
0.329412
69_Conv2d_HardSwish_ReLU
false
false
false
true
10,109
[ { "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...
107
Model
0.827004
5
import torch import torch.nn as nn class Model(nn.Module): def __init__(self, in_features, bias_shape): super().__init__() self.sigmoid = nn.Sigmoid() self.GELU = nn.GELU() self.bias = nn.Parameter(torch.randn(bias_shape)) def forward(self, x): x = self.sigmoid(x) ...
4
1,760,532,378.919074
full_conversation_enhanced
false
0.413223
1_Conv2D_ReLU_BiasAdd
false
false
false
true
12,515
[ { "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...
49
Model
0.678505
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self, in_features, out_features): super().__init__() self.linear = nn.Linear(in_features, out_features) def forward(self, x): x = self.linear(x) x = F.elu(x) x = F.h...
4
1,760,532,384.288235
full_conversation_enhanced
false
0.684211
29_Matmul_Mish_Mish
true
false
false
true
14,240
[ { "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...
103
Model
1.389646
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self, input_size, hidden_size): super(Model, self).__init__() self.fc1 = nn.Linear(input_size, hidden_size) def forward(self, x): x = F.relu(self.fc1(x)) x = nn.Mish()(x) ...
2
1,760,532,387.193269
full_conversation_enhanced
false
0.38
56_Matmul_Sigmoid_Sum
true
false
false
true
16,737
[ { "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...
110
Model
0.478873
5
import torch import torch.nn as nn class Model(nn.Module): def __init__(self, input_size): super().__init__() self.input_size = input_size def forward(self, x): return torch.max(x, dim=self.input_size - 1)[0] def get_inputs(): batch_size = 16 height = 128 width = 64 ...
1
1,760,532,398.319096
full_conversation_enhanced
false
0.22
56_Matmul_Sigmoid_Sum
false
false
false
true
14,727
[ { "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...
93
Model
0
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.Softmax()(x) return x def get_inputs(): return [torch.randn(1, 3, 224, 224)] def get_init_inputs(): return []
1
1,760,532,411.471028
full_conversation_enhanced
false
0.292135
69_Conv2d_HardSwish_ReLU
false
true
false
false
14,424
[ { "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...
104
Model
0.748837
5
import torch import torch.nn as nn class Model(nn.Module): def __init__(self, dim): super().__init__() def forward(self, x): x = torch.softmax(x, dim=1) x = torch.prod(x, dim=1) return x def get_inputs(): x = torch.randn(64, 10) return [x] def get_init_inputs(): ...
2
1,760,532,428.61781
full_conversation_enhanced
false
0.32
66_Matmul_Dropout_Softmax
false
true
false
true
14,266
[ { "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...
101
Model
0.709709
5
import torch import torch.nn as nn import torch.nn.functional as F class Model(nn.Module): def __init__(self, in_features, out_features): super().__init__() self.fc = nn.Linear(in_features, out_features) def forward(self, x): x = self.fc(x) x = F.elu(x) x = torch.clamp...
5
1,760,532,447.66934
full_conversation_enhanced
false
0.452632
29_Matmul_Mish_Mish
true
false
false
true
14,353