Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/RightNow-AI/autokernel
/ functions
Functions
293 in github.com/RightNow-AI/autokernel
⨍
Functions
293
◇
Types & classes
28
Method
__init__
(self, in_channels: int = 3, num_classes: int = 1000)
models/custom.py:19
Method
__init__
(self, dim: int, n_heads: int, n_kv_heads: int)
models/llama_7b.py:52
Method
__init__
(self, dim: int, hidden_dim: int)
models/llama_7b.py:91
Method
__init__
(self, dim: int, n_heads: int, n_kv_heads: int, hidden_dim: int)
models/llama_7b.py:102
Method
__init__
( self, vocab_size: int = 32000, dim: int = 768, n_layers: int = 12, n
models/llama_7b.py:122
Method
__init__
( self, vocab_size: int = 32000, dim: int = 4096, n_layers: int = 32,
models/llama_7b.py:171
Method
__init__
(self, hidden_size: int, num_heads: int, dropout: float = 0.0)
models/bert_base.py:17
Method
__init__
(self, hidden_size: int, num_heads: int, intermediate_size: int, dropout: float = 0.0)
models/bert_base.py:56
Method
__init__
( self, vocab_size: int = 30522, hidden_size: int = 768, num_layers: int = 12,
models/bert_base.py:74
Function
_get_freqs
Get or compute cached cos/sin frequency tables.
kernels/cuda/rotary_embedding.py:157
Method
_handler
(self, signum, frame)
bench.py:52
Method
_handler
(self, signum, frame)
kernelbench/bench_kb.py:92
Function
_load_result_rows
Load all result rows for a kernel. Returns empty list if no file.
orchestrate.py:227
Function
_output_shape_str
Get shape string from model output.
verify.py:964
Function
_ref_cross_entropy
(inputs: dict)
bench.py:304
Function
_ref_flash_attention
(inputs: dict)
bench.py:296
Function
_ref_fused_mlp
(inputs: dict)
bench.py:300
Function
_ref_layernorm
(inputs: dict)
bench.py:292
Function
_ref_matmul
(inputs: dict)
bench.py:284
Function
_ref_reduce
(inputs: dict)
bench.py:316
Function
_ref_rmsnorm
(inputs: dict)
bench.py:312
Function
_ref_rotary_embedding
(inputs: dict)
bench.py:308
Function
_ref_softmax
(inputs: dict)
bench.py:288
Method
_thread_raise
(self)
kernelbench/bench_kb.py:95
Method
_timeout_thread
(self)
bench.py:75
Method
applied_summary
(self)
verify.py:640
Method
cache_path
(self)
kernelbench/bridge.py:61
Function
compile_cuda_with_wrapper
Like compile_cuda, but auto-generates the C++ wrapper from arg_specs. Parameters ---------- cuda_src : str CUDA source that
kernels/cuda/_compile.py:258
Function
cross_entropy_kernel
Fused cross-entropy: log_softmax + nll_loss per row. One program per row (batch element).
kernels/cross_entropy.py:21
Function
cross_entropy_ref
Standard cross entropy loss.
reference.py:58
Function
flash_attention_kernel
Flash attention with online softmax. One program per (batch, head, query-block).
kernels/flash_attention.py:23
Function
flash_attention_ref
Standard scaled dot-product attention.
reference.py:32
Method
forward
(self, x: torch.Tensor)
verify.py:418
Method
forward
(self, x: torch.Tensor)
verify.py:453
Method
forward
(self, x: torch.Tensor)
verify.py:489
Method
forward
(self, x: torch.Tensor)
models/gpt2.py:37
Method
forward
(self, x: torch.Tensor)
models/gpt2.py:65
Method
forward
(self, x: torch.Tensor)
models/gpt2.py:81
Method
forward
(self, input_ids: torch.Tensor)
models/gpt2.py:126
Method
forward
(self, x: torch.Tensor)
models/custom.py:39
Method
forward
(self, x: torch.Tensor)
models/llama_7b.py:28
Method
forward
(self, x: torch.Tensor, freqs_cis: torch.Tensor)
models/llama_7b.py:64
Method
forward
(self, x: torch.Tensor)
models/llama_7b.py:97
Method
forward
(self, x: torch.Tensor, freqs_cis: torch.Tensor)
models/llama_7b.py:109
Method
forward
(self, input_ids: torch.Tensor)
models/llama_7b.py:151
Method
forward
(self, input_ids: torch.Tensor)
models/llama_7b.py:199
Method
forward
(self, x: torch.Tensor, attention_mask: torch.Tensor = None)
models/bert_base.py:29
Method
forward
(self, x: torch.Tensor)
models/bert_base.py:51
Method
forward
(self, x: torch.Tensor)
models/bert_base.py:63
Method
forward
(self, input_ids: torch.Tensor)
models/bert_base.py:101
Function
fused_gate_up_kernel
Fused kernel: computes activation(X @ W_gate^T) * (X @ W_up^T). W_gate and W_up are [intermediate_size, hidden_size] (transposed access).
kernels/fused_mlp.py:26
Function
fused_mlp_ref
SwiGLU-style fused MLP: down(activation(gate(x)) * up(x)).
reference.py:45
Function
gen_cross_entropy_inputs
(size: dict, dtype: torch.dtype, device: str, seed: int = 42)
bench.py:246
Function
gen_flash_attention_inputs
(size: dict, dtype: torch.dtype, device: str, seed: int = 42)
bench.py:227
Function
gen_fused_mlp_inputs
(size: dict, dtype: torch.dtype, device: str, seed: int = 42)
bench.py:236
Function
gen_layernorm_inputs
(size: dict, dtype: torch.dtype, device: str, seed: int = 42)
bench.py:218
Function
gen_matmul_inputs
(size: dict, dtype: torch.dtype, device: str, seed: int = 42)
bench.py:203
Function
gen_reduce_inputs
(size: dict, dtype: torch.dtype, device: str, seed: int = 42)
bench.py:272
Function
gen_rmsnorm_inputs
(size: dict, dtype: torch.dtype, device: str, seed: int = 42)
bench.py:264
Function
gen_rotary_embedding_inputs
(size: dict, dtype: torch.dtype, device: str, seed: int = 42)
bench.py:254
Function
gen_softmax_inputs
(size: dict, dtype: torch.dtype, device: str, seed: int = 42)
bench.py:211
Function
kernel_fn
Entry point called by bench.py. Must match reference.layernorm_ref signature.
kernels/layernorm.py:65
Function
kernel_fn
Entry point called by bench.py. Must match reference.fused_mlp_ref signature. SwiGLU MLP: hidden = activation(x @ w_gate.T) * (x @ w_u
kernels/fused_mlp.py:102
Function
kernel_fn
Entry point called by bench.py. Must match reference.rotary_embedding_ref signature. Args: x: [..., head_dim] tensor to apply rotary
kernels/rotary_embedding.py:75
Function
kernel_fn
Entry point called by bench.py. Must match reference.cross_entropy_ref signature. Args: logits: [batch_size, vocab_size] raw logits
kernels/cross_entropy.py:70
Function
kernel_fn
Entry point called by bench.py. Must match reference.flash_attention_ref signature. Args: Q: [batch, heads, seq_len, head_dim]
kernels/flash_attention.py:130
Function
kernel_fn
Entry point called by bench.py. Must match reference.softmax_ref signature.
kernels/softmax.py:57
Function
kernel_fn
Entry point called by bench.py. Must match reference.matmul_ref signature.
kernels/matmul.py:62
Function
kernel_fn
Entry point called by bench.py. Must match reference.reduce_sum_ref signature. Args: x: Input tensor of any shape dim: Dimen
kernels/reduce.py:51
Function
kernel_fn
Entry point called by bench.py. Must match reference.rmsnorm_ref signature.
kernels/rmsnorm.py:45
Function
kernel_fn
Entry point called by bench.py. Must match reference.layernorm_ref signature.
kernels/cuda/layernorm.py:320
Function
kernel_fn
Entry point called by bench.py. Must match reference.fused_mlp_ref signature.
kernels/cuda/fused_mlp.py:170
Function
kernel_fn
Entry point called by bench.py. Must match reference.rotary_embedding_ref signature.
kernels/cuda/rotary_embedding.py:173
Function
kernel_fn
Entry point called by bench.py. Must match reference.cross_entropy_ref signature.
kernels/cuda/cross_entropy.py:151
Function
kernel_fn
Entry point called by bench.py. Must match reference.flash_attention_ref signature.
kernels/cuda/flash_attention.py:248
Function
kernel_fn
Entry point called by bench.py. Must match reference.softmax_ref signature.
kernels/cuda/softmax.py:245
Function
kernel_fn
Entry point called by bench.py. Must match reference.matmul_ref signature.
kernels/cuda/matmul.py:246
Function
kernel_fn
Entry point called by bench.py. Must match reference.reduce_sum_ref signature.
kernels/cuda/reduce.py:111
Function
kernel_fn
Entry point called by bench.py. Must match reference.rmsnorm_ref signature.
kernels/cuda/rmsnorm.py:171
Function
layernorm_kernel
Row-parallel layer normalization. One program per row.
kernels/layernorm.py:20
Function
layernorm_ref
Layer normalization over last dimension.
reference.py:20
Function
matmul_kernel
Basic tiled matmul. The agent improves this.
kernel.py:25
Function
matmul_kernel
Basic tiled matmul. The agent improves this.
kernels/matmul.py:25
Function
reduce_max_ref
Max reduction.
reference.py:76
Function
reduce_sum_kernel
Parallel sum reduction. One program per output element. Reduces over `reduce_size` elements with stride `stride_x_col`.
kernels/reduce.py:21
Function
reduce_sum_ref
Sum reduction.
reference.py:72
Function
rmsnorm_kernel
Row-parallel RMS normalization.
kernels/rmsnorm.py:14
Function
rmsnorm_ref
RMS normalization.
reference.py:26
Function
rotary_embedding_kernel
Apply rotary embeddings using interleaved (even/odd) decomposition. One program per row. Each row has head_dim elements. x1 = even-index
kernels/rotary_embedding.py:25
Function
rotary_embedding_ref
Apply rotary position embeddings.
reference.py:63
Function
softmax_kernel
Row-parallel online softmax. One program per row.
kernels/softmax.py:20
Function
softmax_ref
Standard softmax along dim.
reference.py:15
Method
uid
(self)
kernelbench/bridge.py:57
← previous
201–293 of 293, ranked by callers