Elementwise¶
66 ops, 389 workloads.
One table per op, one row per workload. Ratio is the fastest other implementation's device time divided by ours, so green is faster than it, plain is level with it, red is slower. Times are in ms. How these numbers are taken.
AddFwd¶
input: [*A]other: [*B]
dtype=bf16, f32
hidden-input, other: [2048, 4096]state- prefill cnn-input: [16, 256, 56, 56]other: [256, 1, 1]feat- broadcast llama-input, other: [1024, 11008]7b- ffn linear-input: [1024, 4096]other: [1, 4096]bias
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
hidden- | bf16 | 1.01× | 0.0122 | torch-compiletorch | 0.0123 0.0123 | 0.69 | · | · |
| f32 | 1.00× | 0.0227 | torch-compiletorch | 0.0226 0.0227 | 0.37 | · | · | |
cnn- | bf16 | 1.00× | 0.0127 | torch-compiletorch | 0.0128 0.0459 | 1.01 | · | · |
| f32 | 1.00× | 0.0236 | torch-compiletorch | 0.0235 0.0481 | 0.545 | · | · | |
llama- | bf16 | 1.00× | 0.0157 | torch-compiletorch | 0.0157 0.0158 | 0.716 | · | · |
| f32 | 1.00× | 0.0298 | torch-compiletorch | 0.0298 0.0299 | 0.378 | · | · | |
linear- | bf16 | 1.07× | 0.00477 | torch-compiletorch | 0.00512 0.0144 | 0.88 | · | · |
| f32 | 1.12× | 0.00832 | torch-compiletorch | 0.00931 0.0148 | 0.504 | · | · | |
SubFwd¶
input: [*A]other: [*B]
hidden-input, other: [2048, 4096]dtype=bf16, f32state- prefill cnn-input: [16, 256, 56, 56]other: [256, 1, 1]dtype=bf16, f32feat- broadcast llama-input, other: [1024, 11008]dtype=bf16, f327b- ffn linear-input: [1024, 4096]other: [1, 4096]dtype=bf16, f32bias llama-input, other: [1024, 4096]dtype=f167b- hidden phi-input, other: [1024, 10240]dtype=f162- ffn phi-input: [1024, 10240]other: [1, 10240]dtype=f162- ffn- bias llama-input: [1024, 11008]other: [1, 11008]dtype=f167b- ffn- bias
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
hidden- | bf16 | 1.00× | 0.0122 | torch-compiletorch | 0.0122 0.0123 | 0.689 | · | · |
| f32 | 1.00× | 0.0226 | torchtorch-compile | 0.0227 0.0239 | 0.371 | · | · | |
cnn- | bf16 | 1.00× | 0.0127 | torch-compiletorch | 0.0128 0.0459 | 1.01 | · | · |
| f32 | 0.99× | 0.0236 | torch-compiletorch | 0.0235 0.0482 | 0.545 | · | · | |
llama- | bf16 | 1.00× | 0.0158 | torch-compiletorch | 0.0157 0.0158 | 0.715 | · | · |
| f32 | 1.00× | 0.0298 | torch-compiletorch | 0.0298 0.0299 | 0.378 | · | · | |
linear- | bf16 | 1.07× | 0.00477 | torch-compiletorch | 0.00512 0.0144 | 0.88 | · | · |
| f32 | 1.12× | 0.0083 | torch-compiletorch | 0.00931 0.0148 | 0.505 | · | · | |
llama- | f16 | 1.06× | 0.00672 | torchtorch-compile | 0.0071 0.00874 | 0.624 | · | · |
phi- | f16 | 1.00× | 0.0148 | torch-compiletorch | 0.0148 0.0149 | 0.707 | · | · |
phi- | f16 | 1.01× | 0.0105 | torch-compiletorch | 0.0106 0.0314 | 0.996 | · | · |
llama- | f16 | 1.00× | 0.0114 | torch-compiletorch | 0.0114 0.0337 | 0.987 | · | · |
MulFwd¶
input: [*A]other: [*B]
hidden-input, other: [2048, 4096]dtype=bf16, f32state- prefill cnn-input: [16, 256, 56, 56]other: [256, 1, 1]dtype=bf16, f32feat- broadcast llama-input, other: [1024, 11008]dtype=bf16, f327b- ffn linear-input: [1024, 4096]other: [1, 4096]dtype=bf16, f32bias llama-input, other: [1024, 4096]dtype=f167b- hidden phi-input, other: [1024, 10240]dtype=f162- ffn phi-input: [1024, 10240]other: [1, 10240]dtype=f162- ffn- bias llama-input: [1024, 11008]other: [1, 11008]dtype=f167b- ffn- bias
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
hidden- | bf16 | 1.00× | 0.0122 | torch-compiletorch | 0.0122 0.0123 | 0.69 | · | · |
| f32 | 1.00× | 0.0226 | torch-compiletorch | 0.0226 0.0227 | 0.371 | · | · | |
cnn- | bf16 | 1.00× | 0.0127 | torch-compiletorch | 0.0128 0.0455 | 1.01 | · | · |
| f32 | 1.00× | 0.0236 | torch-compiletorch | 0.0235 0.0483 | 0.545 | · | · | |
llama- | bf16 | 1.00× | 0.0158 | torch-compiletorch | 0.0157 0.0158 | 0.715 | · | · |
| f32 | 1.00× | 0.0298 | torchtorch-compile | 0.0299 0.0299 | 0.378 | · | · | |
linear- | bf16 | 1.72× | 0.00477 | torch-compiletorch | 0.00819 0.0143 | 0.88 | · | · |
| f32 | 1.12× | 0.00832 | torch-compiletorch | 0.00931 0.0148 | 0.504 | · | · | |
llama- | f16 | 1.05× | 0.00672 | torch-compiletorch | 0.00707 0.00712 | 0.624 | · | · |
phi- | f16 | 1.00× | 0.0148 | torch-compiletorch | 0.0148 0.0149 | 0.708 | · | · |
phi- | f16 | 1.01× | 0.0106 | torch-compiletorch | 0.0106 0.0313 | 0.993 | · | · |
llama- | f16 | 1.00× | 0.0114 | torch-compiletorch | 0.0114 0.0335 | 0.992 | · | · |
DivFwd¶
input: [*A]other: [*B]
hidden-input, other: [2048, 4096]dtype=bf16, f32state- prefill cnn-input: [16, 256, 56, 56]other: [256, 1, 1]dtype=bf16, f32feat- broadcast llama-input, other: [1024, 11008]dtype=bf16, f327b- ffn linear-input: [1024, 4096]other: [1, 4096]dtype=bf16, f32bias llama-input, other: [1024, 4096]dtype=f167b- hidden phi-input, other: [1024, 10240]dtype=f162- ffn phi-input: [1024, 10240]other: [1, 10240]dtype=f162- ffn- bias llama-input: [1024, 11008]other: [1, 11008]dtype=f167b- ffn- bias ragged-input: [32, 256, 35, 35]other: [256, 1, 1]dtype=f16chan- broadcast unaligned-input, other: [4097, 1023]dtype=f16same- shape flat-input, other: [1000003]dtype=f16prime- length unaligned-input: [2048, 4000]other: [1, 4000]dtype=f16row- bias
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
hidden- | bf16 | 1.01× | 0.0122 | torch-compiletorch | 0.0123 0.0125 | 0.688 | · | · |
| f32 | 1.00× | 0.0226 | torch-compiletorch | 0.0227 0.0228 | 0.371 | · | · | |
cnn- | bf16 | 1.00× | 0.0128 | torch-compiletorch | 0.0128 0.0507 | 1 | · | · |
| f32 | 0.99× | 0.0236 | torch-compiletorch | 0.0235 0.0523 | 0.545 | · | · | |
llama- | bf16 | 1.00× | 0.0157 | torch-compiletorch | 0.0158 0.0161 | 0.716 | · | · |
| f32 | 1.00× | 0.0299 | torch-compiletorch | 0.0299 0.0301 | 0.377 | · | · | |
linear- | bf16 | 1.72× | 0.00522 | torch-compiletorch | 0.00899 0.0159 | 0.804 | · | · |
| f32 | 1.00× | 0.00899 | torch-compiletorch | 0.00902 0.0159 | 0.466 | · | · | |
llama- | f16 | 1.01× | 0.00701 | torch-compiletorch | 0.00707 0.00726 | 0.599 | · | · |
phi- | f16 | 1.00× | 0.0149 | torch-compiletorch | 0.0149 0.0152 | 0.705 | · | · |
phi- | f16 | 1.00× | 0.0106 | torch-compiletorch | 0.0107 0.0351 | 0.987 | · | · |
llama- | f16 | 1.01× | 0.0114 | torch-compiletorch | 0.0115 0.0376 | 0.989 | · | · |
ragged- | f16 | 1.34× | 0.0103 | torch-compiletorch | 0.0138 0.0396 | 0.971 | · | · |
unaligned- | f16 | 1.06× | 0.00723 | torchtorch-compile | 0.00765 0.00973 | 0.579 | · | · |
flat- | f16 | 1.11× | 0.00298 | torchtorch-compile | 0.0033 0.00461 | 0.336 | · | · |
unaligned- | f16 | 1.00× | 0.00877 | torch-compiletorch | 0.0088 0.0280 | 0.934 | · | · |
FloorDivideFwd¶
input: [*A]other: [*B]
hidden-input, other: [2048, 4096]dtype=bf16, f32state- prefill cnn-input: [16, 256, 56, 56]other: [256, 1, 1]dtype=bf16, f32feat- broadcast llama-input, other: [1024, 11008]dtype=bf16, f327b- ffn linear-input: [1024, 4096]other: [1, 4096]dtype=bf16, f32bias llama-input, other: [1024, 4096]dtype=f167b- hidden phi-input, other: [1024, 10240]dtype=f162- ffn
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
hidden- | bf16 | 1.26× | 0.0123 | torch-compiletorch | 0.0155 0.0498 | 1.37 | · | · |
| f32 | 1.02× | 0.0227 | torch-compiletorch | 0.0232 0.0464 | 0.738 | · | · | |
cnn- | bf16 | 1.69× | 0.0129 | torch-compiletorch | 0.0218 0.1128 | 1.99 | · | · |
| f32 | 1.04× | 0.0237 | torch-compiletorch | 0.0246 0.1010 | 1.08 | · | · | |
llama- | bf16 | 1.28× | 0.0159 | torch-compiletorch | 0.0204 0.0656 | 1.42 | · | · |
| f32 | 1.01× | 0.0300 | torch-compiletorch | 0.0304 0.0610 | 0.751 | · | · | |
linear- | bf16 | 1.74× | 0.00522 | torch-compiletorch | 0.00906 0.0366 | 1.61 | · | · |
| f32 | 1.07× | 0.00902 | torch-compiletorch | 0.00965 0.0325 | 0.93 | · | · | |
llama- | f16 | 1.63× | 0.00709 | torch-compiletorch | 0.0115 0.0258 | 1.18 | · | · |
phi- | f16 | 1.25× | 0.0149 | torch-compiletorch | 0.0187 0.0588 | 1.41 | · | · |
RemainderFwd¶
input: [*A]other: [*B]
hidden-input, other: [2048, 4096]dtype=bf16, f32state- prefill cnn-input: [16, 256, 56, 56]other: [256, 1, 1]dtype=bf16, f32feat- broadcast llama-input, other: [1024, 11008]dtype=bf16, f327b- ffn linear-input: [1024, 4096]other: [1, 4096]dtype=bf16, f32bias llama-input, other: [1024, 4096]dtype=f167b- hidden phi-input, other: [1024, 10240]dtype=f162- ffn
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
hidden- | bf16 | 1.02× | 0.0124 | torch-compiletorch | 0.0126 0.0177 | 2.72 | · | · |
| f32 | 1.03× | 0.0228 | torchtorch-compile | 0.0235 0.0247 | 1.47 | · | · | |
cnn- | bf16 | 1.40× | 0.0130 | torch-compiletorch | 0.0181 0.0638 | 3.96 | · | · |
| f32 | 0.99× | 0.0238 | torch-compiletorch | 0.0236 0.0639 | 2.16 | · | · | |
llama- | bf16 | 1.04× | 0.0159 | torch-compiletorch | 0.0165 0.0227 | 2.83 | · | · |
| f32 | 1.01× | 0.0300 | torch-compiletorch | 0.0304 0.0307 | 1.5 | · | · | |
linear- | bf16 | 1.34× | 0.00534 | torch-compiletorch | 0.00717 0.0202 | 3.14 | · | · |
| f32 | 1.18× | 0.00909 | torch-compiletorch | 0.0107 0.0197 | 1.85 | · | · | |
llama- | f16 | 1.40× | 0.0071 | torchtorch-compile | 0.00992 0.0106 | 2.36 | · | · |
phi- | f16 | 1.01× | 0.0150 | torch-compiletorch | 0.0152 0.0205 | 2.8 | · | · |
PowFwd¶
input: [*A]exponent: [*B]
hidden-input, exponent: [2048, 4096]dtype=bf16, f32state- prefill cnn-input: [16, 256, 56, 56]exponent: [256, 1, 1]dtype=bf16, f32feat- broadcast llama-input, exponent: [1024, 11008]dtype=bf16, f327b- ffn linear-input: [1024, 4096]exponent: [1, 4096]dtype=bf16, f32bias llama-input, exponent: [1024, 4096]dtype=f167b- hidden phi-input, exponent: [1024, 10240]dtype=f162- ffn
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
hidden- | bf16 | 1.63× | 0.0228 | torchtorch-compile | 0.0371 0.0444 | 0.369 | · | · |
| f32 | 1.43× | 0.0251 | torchtorch-compile | 0.0360 0.0408 | 0.334 | · | · | |
cnn- | bf16 | 1.36× | 0.0450 | torch-compiletorch | 0.0613 0.0947 | 0.285 | · | · |
| f32 | 1.47× | 0.0470 | torch-compiletorch | 0.0692 0.0935 | 0.273 | · | · | |
llama- | bf16 | 1.65× | 0.0296 | torchtorch-compile | 0.0488 0.0654 | 0.38 | · | · |
| f32 | 1.42× | 0.0334 | torchtorch-compile | 0.0474 0.0623 | 0.337 | · | · | |
linear- | bf16 | 1.53× | 0.0155 | torch-compiletorch | 0.0236 0.0303 | 0.271 | · | · |
| f32 | 1.73× | 0.0127 | torch-compiletorch | 0.0220 0.0294 | 0.329 | · | · | |
llama- | f16 | 1.59× | 0.0123 | torchtorch-compile | 0.0196 0.0230 | 0.341 | · | · |
phi- | f16 | 1.67× | 0.0268 | torchtorch-compile | 0.0446 0.0592 | 0.392 | · | · |
MaximumFwd¶
input: [*A]other: [*B]
hidden-input, other: [2048, 4096]dtype=bf16, f32state- prefill cnn-input: [16, 256, 56, 56]other: [256, 1, 1]dtype=bf16, f32feat- broadcast llama-input, other: [1024, 11008]dtype=bf16, f327b- ffn linear-input: [1024, 4096]other: [1, 4096]dtype=bf16, f32bias llama-input, other: [1024, 4096]dtype=f167b- hidden phi-input, other: [1024, 10240]dtype=f162- ffn
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
hidden- | bf16 | 1.01× | 0.0122 | torch-compiletorch | 0.0122 0.0126 | 0.69 | · | · |
| f32 | 1.00× | 0.0226 | torch-compiletorch | 0.0226 0.0228 | 0.371 | · | · | |
cnn- | bf16 | 1.00× | 0.0127 | torch-compiletorch | 0.0128 0.0504 | 1.01 | · | · |
| f32 | 0.99× | 0.0236 | torch-compiletorch | 0.0235 0.0516 | 0.545 | · | · | |
llama- | bf16 | 1.00× | 0.0157 | torch-compiletorch | 0.0158 0.0161 | 0.716 | · | · |
| f32 | 1.00× | 0.0298 | torch-compiletorch | 0.0299 0.0301 | 0.378 | · | · | |
linear- | bf16 | 1.71× | 0.00477 | torch-compiletorch | 0.00816 0.0168 | 0.88 | · | · |
| f32 | 1.12× | 0.00832 | torch-compiletorch | 0.00931 0.0165 | 0.504 | · | · | |
llama- | f16 | 1.05× | 0.00672 | torch-compiletorch | 0.00707 0.00733 | 0.624 | · | · |
phi- | f16 | 1.00× | 0.0148 | torch-compiletorch | 0.0148 0.0152 | 0.708 | · | · |
MinimumFwd¶
input: [*A]other: [*B]
hidden-input, other: [2048, 4096]dtype=bf16, f32state- prefill cnn-input: [16, 256, 56, 56]other: [256, 1, 1]dtype=bf16, f32feat- broadcast llama-input, other: [1024, 11008]dtype=bf16, f327b- ffn linear-input: [1024, 4096]other: [1, 4096]dtype=bf16, f32bias llama-input, other: [1024, 4096]dtype=f167b- hidden phi-input, other: [1024, 10240]dtype=f162- ffn
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
hidden- | bf16 | 1.00× | 0.0122 | torch-compiletorch | 0.0122 0.0127 | 0.688 | · | · |
| f32 | 1.00× | 0.0226 | torch-compiletorch | 0.0226 0.0228 | 0.371 | · | · | |
cnn- | bf16 | 1.01× | 0.0127 | torch-compiletorch | 0.0128 0.0504 | 1.01 | · | · |
| f32 | 0.99× | 0.0236 | torch-compiletorch | 0.0235 0.0516 | 0.545 | · | · | |
llama- | bf16 | 1.00× | 0.0157 | torch-compiletorch | 0.0157 0.0162 | 0.717 | · | · |
| f32 | 1.00× | 0.0299 | torch-compiletorch | 0.0298 0.0300 | 0.378 | · | · | |
linear- | bf16 | 1.71× | 0.00477 | torch-compiletorch | 0.00816 0.0168 | 0.88 | · | · |
| f32 | 1.12× | 0.00832 | torch-compiletorch | 0.00931 0.0166 | 0.504 | · | · | |
llama- | f16 | 1.05× | 0.00672 | torch-compiletorch | 0.00704 0.00733 | 0.624 | · | · |
phi- | f16 | 1.00× | 0.0148 | torch-compiletorch | 0.0148 0.0152 | 0.708 | · | · |
LerpFwd¶
input: [*A]end: [*E]weight: [*W]
16Minput, end, weight: [4096, 4096]dtype=bf16, f32256Minput, end, weight: [16384, 16384]dtype=bf16cnn-input, end: [16, 256, 56, 56]weight: [256, 1, 1]dtype=bf16, f32feat- channel- weight 16M-input, end: [4096, 4096]weight: []dtype=bf16, f32scalar- weight
input: [*A]end: [*E]
weight=0.5
hidden-input, end: [2048, 4096]dtype=bf16, f32state- prefill cnn-input: [16, 256, 56, 56]end: [256, 1, 1]dtype=bf16, f32feat- broadcast llama-input, end: [1024, 11008]dtype=bf16, f327b- ffn linear-input: [1024, 4096]end: [1, 4096]dtype=bf16, f32bias llama-input, end: [1024, 4096]dtype=f167b- hidden phi-input, end: [1024, 10240]dtype=f162- ffn
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 1.00× | 0.0300 | torch-compiletorch | 0.0300 0.0301 | 1.67 | · | · |
| f32 | 1.00× | 0.0602 | torchtorch-compile | 0.0600 0.0602 | 0.836 | · | · | |
256M | bf16 | 1.00× | 0.4772 | torchtorch-compile | 0.4773 0.4774 | 1.69 | · | · |
cnn- | bf16 | 1.01× | 0.0178 | torch-compiletorch | 0.0179 0.0523 | 2.17 | · | · |
| f32 | 1.08× | 0.0341 | torch-compiletorch | 0.0370 0.0551 | 1.13 | · | · | |
16M- | bf16 | 1.00× | 0.0228 | torch-compiletorch | 0.0228 0.0512 | 2.21 | · | · |
| f32 | 1.10× | 0.0445 | torch-compiletorch | 0.0491 0.0621 | 1.13 | · | · | |
hidden- | bf16 | 1.01× | 0.0122 | torch-compiletorch | 0.0123 0.0123 | 2.06 | · | · |
| f32 | 1.00× | 0.0226 | torchtorch-compile | 0.0226 0.0226 | 1.11 | · | · | |
cnn- | bf16 | 1.00× | 0.0128 | torch-compiletorch | 0.0127 0.0476 | 3.02 | · | · |
| f32 | 0.99× | 0.0236 | torch-compiletorch | 0.0235 0.0495 | 1.63 | · | · | |
llama- | bf16 | 1.00× | 0.0158 | torch-compiletorch | 0.0158 0.0159 | 2.14 | · | · |
| f32 | 1.00× | 0.0299 | torchtorch-compile | 0.0299 0.0299 | 1.13 | · | · | |
linear- | bf16 | 1.81× | 0.00477 | torch-compiletorch | 0.00861 0.0148 | 2.64 | · | · |
| f32 | 1.05× | 0.00832 | torch-compiletorch | 0.00875 0.0152 | 1.51 | · | · | |
llama- | f16 | 1.05× | 0.00672 | torch-compiletorch | 0.00707 0.00714 | 1.87 | · | · |
phi- | f16 | 1.00× | 0.0149 | torch-compiletorch | 0.0148 0.0149 | 2.12 | · | · |
ExpFwd¶
input: [*S]
16Minput: [4096, 4096]dtype=bf16, f32256Minput: [16384, 16384]dtype=bf16
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 1.02× | 0.0161 | torchtorch-compile | 0.0164 0.0164 | 1.04 | · | · |
| f32 | 1.00× | 0.0309 | torch-compiletorch | 0.0308 0.0308 | 0.543 | · | · | |
256M | bf16 | 1.01× | 0.2549 | torchtorch-compile | 0.2585 0.2599 | 1.05 | · | · |
Expm1Fwd¶
input: [*S]
16Minput: [4096, 4096]dtype=bf16, f32256Minput: [16384, 16384]dtype=bf16
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 1.67× | 0.0162 | torch-compiletorch | 0.0270 0.0272 | 1.04 | · | · |
| f32 | 1.01× | 0.0309 | torchtorch-compile | 0.0311 0.0316 | 0.543 | · | · | |
256M | bf16 | 1.61× | 0.2551 | torch-compiletorch | 0.4101 0.4123 | 1.05 | · | · |
LogFwd¶
input: [*S]
16Minput: [4096, 4096]dtype=bf16, f32256Minput: [16384, 16384]dtype=bf16
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 1.70× | 0.0159 | torch-compiletorch | 0.0269 0.0271 | 1.06 | · | · |
| f32 | 1.00× | 0.0319 | torch-compiletorch | 0.0318 0.0324 | 0.526 | · | · | |
256M | bf16 | 1.63× | 0.2517 | torch-compiletorch | 0.4094 0.4133 | 1.07 | · | · |
Log1pFwd¶
input: [*S]
16Minput: [4096, 4096]dtype=bf16, f32256Minput: [16384, 16384]dtype=bf16
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 1.58× | 0.0159 | torch-compiletorch | 0.0250 0.0257 | 1.06 | · | · |
| f32 | 1.00× | 0.0310 | torch-compiletorch | 0.0310 0.0311 | 0.541 | · | · | |
256M | bf16 | 1.52× | 0.2515 | torch-compiletorch | 0.3812 0.3888 | 1.07 | · | · |
SqrtFwd¶
input: [*S]
16Minput: [4096, 4096]dtype=bf16, f32256Minput: [16384, 16384]dtype=bf16
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 1.01× | 0.0161 | torch-compiletorch | 0.0163 0.0165 | 1.04 | · | · |
| f32 | 1.00× | 0.0309 | torch-compiletorch | 0.0308 0.0310 | 0.543 | · | · | |
256M | bf16 | 1.05× | 0.2515 | torch-compiletorch | 0.2630 0.2667 | 1.07 | · | · |
RsqrtFwd¶
input: [*S]
16Minput: [4096, 4096]dtype=bf16, f32256Minput: [16384, 16384]dtype=bf16
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 1.00× | 0.0160 | torch-compiletorch | 0.0160 0.0160 | 1.05 | · | · |
| f32 | 0.99× | 0.0309 | torch-compiletorch | 0.0307 0.0308 | 0.543 | · | · | |
256M | bf16 | 1.00× | 0.2513 | torch-compiletorch | 0.2502 0.2522 | 1.07 | · | · |
ReciprocalFwd¶
input: [*S]
16Minput: [4096, 4096]dtype=bf16, f32256Minput: [16384, 16384]dtype=bf16
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 1.01× | 0.0160 | torch-compiletorch | 0.0161 0.0164 | 1.05 | · | · |
| f32 | 1.00× | 0.0307 | torch-compiletorch | 0.0308 0.0310 | 0.546 | · | · | |
256M | bf16 | 1.02× | 0.2506 | torch-compiletorch | 0.2555 0.2670 | 1.07 | · | · |
AbsFwd¶
input: [*S]
16Minput: [4096, 4096]dtype=bf16, f32256Minput: [16384, 16384]dtype=bf16
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 1.00× | 0.0159 | torch-compiletorch | 0.0160 0.0161 | 1.05 | · | · |
| f32 | 1.00× | 0.0308 | torch-compiletorch | 0.0308 0.0308 | 0.544 | · | · | |
256M | bf16 | 1.00× | 0.2496 | torch-compiletorch | 0.2501 0.2505 | 1.08 | · | · |
NegFwd¶
input: [*S]
16Minput: [4096, 4096]dtype=bf16, f32256Minput: [16384, 16384]dtype=bf16
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 1.00× | 0.0160 | torch-compiletorch | 0.0159 0.0161 | 1.05 | · | · |
| f32 | 1.00× | 0.0308 | torch-compiletorch | 0.0307 0.0308 | 0.544 | · | · | |
256M | bf16 | 1.00× | 0.2504 | torchtorch-compile | 0.2496 0.2497 | 1.07 | · | · |
SignFwd¶
input: [*S]
16Minput: [4096, 4096]dtype=bf16, f32256Minput: [16384, 16384]dtype=bf16
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 1.00× | 0.0162 | torch-compiletorch | 0.0162 0.0164 | 2.07 | · | · |
| f32 | 1.00× | 0.0308 | torch-compiletorch | 0.0308 0.0308 | 1.09 | · | · | |
256M | bf16 | 0.99× | 0.2555 | torch-compiletorch | 0.2536 0.2588 | 2.1 | · | · |
SinFwd¶
input: [*S]
16Minput: [4096, 4096]dtype=bf16, f32256Minput: [16384, 16384]dtype=bf16
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 1.16× | 0.0220 | torch-compiletorch | 0.0256 0.0257 | 0.761 | · | · |
| f32 | 1.00× | 0.0311 | torch-compiletorch | 0.0312 0.0315 | 0.539 | · | · | |
256M | bf16 | 1.22× | 0.3162 | torchtorch-compile | 0.3867 0.3893 | 0.849 | · | · |
CosFwd¶
input: [*S]
16Minput: [4096, 4096]dtype=bf16, f32256Minput: [16384, 16384]dtype=bf16
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 1.13× | 0.0230 | torchtorch-compile | 0.0260 0.0270 | 0.73 | · | · |
| f32 | 1.02× | 0.0311 | torch-compiletorch | 0.0317 0.0318 | 0.539 | · | · | |
256M | bf16 | 1.20× | 0.3291 | torchtorch-compile | 0.3936 0.4108 | 0.816 | · | · |
ErfFwd¶
input: [*S]
16Minput: [4096, 4096]dtype=bf16, f32256Minput: [16384, 16384]dtype=bf16
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 1.25× | 0.0216 | torchtorch-compile | 0.0270 0.0290 | 0.778 | · | · |
| f32 | 1.02× | 0.0311 | torchtorch-compile | 0.0316 0.0320 | 0.539 | · | · | |
256M | bf16 | 1.32× | 0.3084 | torchtorch-compile | 0.4076 0.4407 | 0.871 | · | · |
FloorFwd¶
input: [*S]
16Minput: [4096, 4096]dtype=bf16, f32256Minput: [16384, 16384]dtype=bf16
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 1.00× | 0.0160 | torch-compiletorch | 0.0160 0.0161 | 1.05 | · | · |
| f32 | 1.00× | 0.0308 | torch-compiletorch | 0.0308 0.0308 | 0.546 | · | · | |
256M | bf16 | 1.00× | 0.2506 | torch-compiletorch | 0.2497 0.2508 | 1.07 | · | · |
CeilFwd¶
input: [*S]
16Minput: [4096, 4096]dtype=bf16, f32256Minput: [16384, 16384]dtype=bf16
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 1.00× | 0.0160 | torchtorch-compile | 0.0161 0.0161 | 1.05 | · | · |
| f32 | 1.00× | 0.0308 | torch-compiletorch | 0.0307 0.0308 | 0.545 | · | · | |
256M | bf16 | 1.00× | 0.2497 | torchtorch-compile | 0.2500 0.2507 | 1.07 | · | · |
RoundFwd¶
input: [*S]
16Minput: [4096, 4096]dtype=bf16, f32256Minput: [16384, 16384]dtype=bf16
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 1.00× | 0.0160 | torch-compiletorch | 0.0160 0.0161 | 1.05 | · | · |
| f32 | 1.00× | 0.0308 | torch-compiletorch | 0.0308 0.0309 | 0.545 | · | · | |
256M | bf16 | 1.00× | 0.2497 | torchtorch-compile | 0.2502 0.2505 | 1.07 | · | · |
TruncFwd¶
input: [*S]
16Minput: [4096, 4096]dtype=bf16, f32256Minput: [16384, 16384]dtype=bf16
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 1.00× | 0.0160 | torch-compiletorch | 0.0160 0.0161 | 1.05 | · | · |
| f32 | 1.00× | 0.0308 | torch-compiletorch | 0.0308 0.0308 | 0.545 | · | · | |
256M | bf16 | 1.00× | 0.2498 | torch-compiletorch | 0.2496 0.2500 | 1.07 | · | · |
ReLUFwd¶
input: [*S]
dtype=bf16
hidden-input: [2048, 4096]state- prefill hidden-input: [1, 4096]state- decode
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
hidden- | bf16 | 1.06× | 0.00834 | torch-compiletorch | 0.0088 0.00912 | 1.01 | · | · |
hidden- | bf16 | 1.03× | 0.00125 | torch-compiletorch | 0.00128 0.00141 | 0.00328 | · | · |
LeakyReLUFwd¶
input: [*S]
dtype=bf16
gan-input: [16, 256, 64, 64]feat gan-input: [16, 512, 32, 32]feat- deep
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
gan- | bf16 | 1.00× | 0.0160 | torch-compiletorch | 0.0161 0.0161 | 2.1 | · | · |
gan- | bf16 | 1.00× | 0.00883 | torch-compiletorch | 0.00886 0.0089 | 1.9 | · | · |
ELUFwd¶
input: [*S]
dtype=bf16
mlp-input: [2048, 4096]hidden mlp-input: [2048, 8192]hidden- wide
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
mlp- | bf16 | 1.43× | 0.0109 | torch-compiletorch | 0.0156 0.0172 | 3.08 | · | · |
mlp- | bf16 | 1.50× | 0.0199 | torch-compiletorch | 0.0298 0.0324 | 3.37 | · | · |
SELUFwd¶
input: [*S]
dtype=bf16
snn-input: [2048, 4096]fc snn-input: [2048, 8192]fc- wide
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
snn- | bf16 | 1.45× | 0.0110 | torch-compiletorch | 0.0159 0.0172 | 3.81 | · | · |
snn- | bf16 | 1.50× | 0.0202 | torch-compiletorch | 0.0304 0.0324 | 4.15 | · | · |
GELUFwd¶
input: [*S]
dtype=bf16
llama-input: [2048, 14336]8b- ffn- prefill llama-input: [1, 14336]8b- ffn- decode
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
llama- | bf16 | 1.53× | 0.0312 | torchtorch-compile | 0.0478 0.0548 | 4.71 | · | · |
llama- | bf16 | 1.07× | 0.00144 | torch-compiletorch | 0.00154 0.00179 | 0.0497 | · | · |
SiLUFwd¶
input: [*S]
dtype=bf16
llama-input: [2048, 14336]8b- ffn- prefill llama-input: [1, 14336]8b- ffn- decode
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
llama- | bf16 | 1.22× | 0.0273 | torch-compiletorch | 0.0334 0.0373 | 5.37 | · | · |
llama- | bf16 | 1.04× | 0.00144 | torch-compiletorch | 0.0015 0.00208 | 0.0498 | · | · |
MishFwd¶
input: [*S]
dtype=bf16
yolo-input: [16, 256, 80, 80]p3 yolo-input: [16, 512, 40, 40]p4
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
yolo- | bf16 | 1.82× | 0.0349 | torchtorch-compile | 0.0635 0.0736 | 3 | · | · |
yolo- | bf16 | 1.76× | 0.0185 | torchtorch-compile | 0.0326 0.0380 | 2.83 | · | · |
SigmoidFwd¶
input: [*S]
16Minput: [4096, 4096]dtype=bf16, f32256Minput: [16384, 16384]dtype=bf16
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 1.02× | 0.0160 | torch-compiletorch | 0.0163 0.0221 | 4.19 | · | · |
| f32 | 1.00× | 0.0309 | torch-compiletorch | 0.0308 0.0311 | 2.17 | · | · | |
256M | bf16 | 1.04× | 0.2515 | torch-compiletorch | 0.2614 0.3287 | 4.27 | · | · |
TanhFwd¶
input: [*S]
16Minput: [4096, 4096]dtype=bf16, f32256Minput: [16384, 16384]dtype=f16, bf16
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 1.17× | 0.0174 | torchtorch-compile | 0.0204 0.0227 | 0.965 | · | · |
| f32 | 1.00× | 0.0308 | torchtorch-compile | 0.0308 0.0310 | 0.545 | · | · | |
256M | f16 | 1.16× | 0.2511 | torchtorch-compile | 0.2912 0.3334 | 1.07 | · | · |
| bf16 | 1.17× | 0.2642 | torchtorch-compile | 0.3091 0.3397 | 1.02 | · | · | |
HardsigmoidFwd¶
input: [*S]
dtype=bf16
mbv3-input: [32, 240, 1, 1]se- gate mbv3-input: [32, 960, 1, 1]se- gate- deep
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
mbv3- | bf16 | 1.05× | 0.00138 | torch-compiletorch | 0.00144 0.00176 | 0.0168 | · | · |
mbv3- | bf16 | 1.07× | 0.00147 | torchtorch-compile | 0.00157 0.00157 | 0.0626 | · | · |
HardswishFwd¶
input: [*S]
dtype=bf16
mbv3-input: [32, 96, 56, 56]stage2 mbv3-input: [32, 240, 28, 28]stage3
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
mbv3- | bf16 | 1.00× | 0.00986 | torch-compiletorch | 0.00986 0.00998 | 3.91 | · | · |
mbv3- | bf16 | 1.01× | 0.00678 | torch-compiletorch | 0.00683 0.00698 | 3.55 | · | · |
HardtanhFwd¶
input: [*S]
dtype=bf16
bounded-input: [2048, 4096]hidden bounded-input: [16, 256, 56, 56]conv- feat
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
bounded- | bf16 | 1.00× | 0.00883 | torch-compiletorch | 0.0088 0.0103 | 0.95 | · | · |
bounded- | bf16 | 1.00× | 0.0125 | torch-compiletorch | 0.0125 0.0150 | 1.02 | · | · |
SoftplusFwd¶
input: [*S]
dtype=bf16
mlp-input: [2048, 4096]hidden mlp-input: [2048, 8192]hidden- wide
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
mlp- | bf16 | 1.42× | 0.0117 | torch-compiletorch | 0.0167 0.0236 | 3.58 | · | · |
mlp- | bf16 | 1.47× | 0.0215 | torch-compiletorch | 0.0315 0.0447 | 3.91 | · | · |
PReLUFwd¶
input: [*S]weight: [*W]
dtype=bf16
cnn-input: [16, 256, 56, 56]weight: [256]feat cnn-input: [16, 512, 28, 28]weight: [512]feat- deep
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
cnn- | bf16 | 1.00× | 0.0127 | torch-compiletorch | 0.0128 0.0479 | 2.02 | · | · |
cnn- | bf16 | 1.78× | 0.00698 | torch-compiletorch | 0.0124 0.0253 | 1.84 | · | · |
DropoutFwd¶
input: [*S]
hidden-input: [1024, 4096]dtype=f16, f324k hidden-input: [1024, 10240]dtype=bf1610k
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
hidden- | f16 | 1.97× | 0.00563 | torch-compiletorch | 0.0111 0.0112 | 1.49 | · | · |
| f32 | 1.24× | 0.0089 | torch-compiletorch | 0.0110 0.0129 | 0.943 | · | · | |
hidden- | bf16 | 1.98× | 0.0116 | torchtorch-compile | 0.0230 0.0230 | 1.81 | · | · |
SiLUAndMulFwd¶
input: [M, 2 * N]
dtype=bf16
llama-input: [2048, 28672]8b- ffn- prefill llama-input: [1, 28672]8b- ffn- decode qwen3-input: [32, 24576]8b- swiglu- b32 dsv4-input: [4096, 4096]swiglu_limit=10flash- shared- 4k
input: [M, 2 * N]scale: [M], f32
swiglu_limit=10dtype=bf16
dsv4-input: [6, 4096]scale: [6], f32flash- routed- t1 dsv4-input: [24576, 4096]scale: [24576], f32flash- routed- 4k dsv4-input: [196608, 4096]scale: [196608], f32flash- routed- 32k
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
llama- | bf16 | 1.05× | 0.0388 | flashinfertorch-compiletorch-ref | 0.0409 0.0424 0.1895 | 4.54 | · | · |
llama- | bf16 | 1.03× | 0.00141 | torch-compileflashinfertorch-ref | 0.00146 0.00166 0.00346 | 0.0611 | · | · |
qwen3- | bf16 | 1.02× | 0.00195 | torch-compileflashinfertorch-ref | 0.00198 0.00221 0.00781 | 1.21 | · | · |
dsv4- | bf16 | 1.06× | 0.0126 | torch-compilevllmtorch-ref | 0.0134 0.0178 0.0813 | 5.31 | · | · |
dsv4- | bf16 | 1.07× | 0.00141 | torch-compilevllmtorch-ref | 0.0015 0.00218 0.0163 | 0.0785 | · | · |
dsv4- | bf16 | 1.09× | 0.0719 | torch-compilevllmtorch-ref | 0.0785 0.0944 0.8736 | 6.3 | · | · |
dsv4- | bf16 | 1.09× | 0.5660 | torch-compilevllmtorch-ref | 0.6187 0.7375 6.8707 | 6.4 | · | · |
GELUAndMulFwd¶
input: [M, 2 * N]
dtype=bf16
llama-input: [2048, 28672]8b- ffn- prefill llama-input: [1, 28672]8b- ffn- decode llama-input: [2048, 28672]approximate=tanh8b- prefill- tanh llama-input: [1, 28672]approximate=tanh8b- decode- tanh
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
llama- | bf16 | 1.35× | 0.0444 | flashinfertorch-compiletorch-ref | 0.0600 0.0610 0.2046 | 3.96 | · | · |
llama- | bf16 | 1.01× | 0.00146 | torch-compileflashinfertorch-ref | 0.00147 0.00243 0.00317 | 0.0591 | · | · |
llama- | bf16 | 1.04× | 0.0388 | flashinfertorch-compiletorch-ref | 0.0405 0.0516 0.1930 | 7.56 | · | · |
llama- | bf16 | 1.07× | 0.00147 | torch-compileflashinfertorch-ref | 0.00157 0.0017 0.00301 | 0.0975 | · | · |
EqFwd¶
input: [*A]other: [*B]
hidden-input, other: [2048, 4096]dtype=bf16, f32state- prefill cnn-input: [16, 256, 56, 56]other: [256, 1, 1]dtype=bf16, f32feat- broadcast llama-input, other: [1024, 11008]dtype=bf16, f327b- ffn linear-input: [1024, 4096]other: [1, 4096]dtype=bf16, f32bias llama-input, other: [1024, 4096]dtype=f167b- hidden phi-input, other: [1024, 10240]dtype=f162- ffn
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
hidden- | bf16 | 1.00× | 0.0105 | torch-compiletorch | 0.0105 0.0106 | 0.797 | · | · |
| f32 | 1.00× | 0.0174 | torch-compiletorch | 0.0175 0.0175 | 0.481 | · | · | |
cnn- | bf16 | 1.00× | 0.00973 | torch-compiletorch | 0.00976 0.0483 | 1.32 | · | · |
| f32 | 1.00× | 0.0150 | torch-compiletorch | 0.0151 0.0471 | 0.854 | · | · | |
llama- | bf16 | 1.00× | 0.0135 | torch-compiletorch | 0.0135 0.0135 | 0.837 | · | · |
| f32 | 1.00× | 0.0230 | torch-compiletorch | 0.0231 0.0231 | 0.489 | · | · | |
linear- | bf16 | 1.87× | 0.00429 | torch-compiletorch | 0.00803 0.0152 | 0.978 | · | · |
| f32 | 1.36× | 0.00614 | torch-compiletorch | 0.00835 0.0149 | 0.683 | · | · | |
llama- | f16 | 1.01× | 0.00621 | torchtorch-compile | 0.00624 0.00858 | 0.676 | · | · |
phi- | f16 | 1.00× | 0.0126 | torch-compiletorch | 0.0127 0.0127 | 0.83 | · | · |
NeFwd¶
input: [*A]other: [*B]
hidden-input, other: [2048, 4096]dtype=bf16, f32state- prefill cnn-input: [16, 256, 56, 56]other: [256, 1, 1]dtype=bf16, f32feat- broadcast llama-input, other: [1024, 11008]dtype=bf16, f327b- ffn linear-input: [1024, 4096]other: [1, 4096]dtype=bf16, f32bias llama-input, other: [1024, 4096]dtype=f167b- hidden
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
hidden- | bf16 | 1.00× | 0.0105 | torchtorch-compile | 0.0106 0.0106 | 0.797 | · | · |
| f32 | 1.00× | 0.0174 | torch-compiletorch | 0.0175 0.0175 | 0.481 | · | · | |
cnn- | bf16 | 1.00× | 0.00976 | torch-compiletorch | 0.00979 0.0482 | 1.32 | · | · |
| f32 | 1.00× | 0.0150 | torch-compiletorch | 0.0151 0.0472 | 0.854 | · | · | |
llama- | bf16 | 1.00× | 0.0135 | torchtorch-compile | 0.0135 0.0135 | 0.837 | · | · |
| f32 | 1.00× | 0.0230 | torch-compiletorch | 0.0231 0.0231 | 0.489 | · | · | |
linear- | bf16 | 1.01× | 0.00429 | torch-compiletorch | 0.00432 0.0151 | 0.978 | · | · |
| f32 | 1.01× | 0.00618 | torch-compiletorch | 0.00624 0.0149 | 0.679 | · | · | |
llama- | f16 | 1.00× | 0.00621 | torch-compiletorch | 0.00621 0.00624 | 0.676 | · | · |
GtFwd¶
input: [*A]other: [*B]
hidden-input, other: [2048, 4096]dtype=bf16, f32state- prefill cnn-input: [16, 256, 56, 56]other: [256, 1, 1]dtype=bf16, f32feat- broadcast llama-input, other: [1024, 11008]dtype=bf16, f327b- ffn linear-input: [1024, 4096]other: [1, 4096]dtype=bf16, f32bias llama-input, other: [1024, 4096]dtype=f167b- hidden
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
hidden- | bf16 | 1.00× | 0.0105 | torchtorch-compile | 0.0106 0.0156 | 0.797 | · | · |
| f32 | 1.00× | 0.0174 | torch-compiletorch | 0.0174 0.0175 | 0.481 | · | · | |
cnn- | bf16 | 1.00× | 0.00976 | torch-compiletorch | 0.00976 0.0484 | 1.32 | · | · |
| f32 | 1.00× | 0.0150 | torch-compiletorch | 0.0151 0.0473 | 0.854 | · | · | |
llama- | bf16 | 1.00× | 0.0135 | torchtorch-compile | 0.0135 0.0135 | 0.837 | · | · |
| f32 | 1.00× | 0.0231 | torch-compiletorch | 0.0231 0.0232 | 0.489 | · | · | |
linear- | bf16 | 1.87× | 0.00429 | torch-compiletorch | 0.00803 0.0152 | 0.978 | · | · |
| f32 | 1.01× | 0.00618 | torch-compiletorch | 0.00621 0.0150 | 0.679 | · | · | |
llama- | f16 | 1.00× | 0.00621 | torchtorch-compile | 0.00621 0.00621 | 0.676 | · | · |
GeFwd¶
input: [*A]other: [*B]
hidden-input, other: [2048, 4096]dtype=bf16, f32state- prefill cnn-input: [16, 256, 56, 56]other: [256, 1, 1]dtype=bf16, f32feat- broadcast llama-input, other: [1024, 11008]dtype=bf16, f327b- ffn linear-input: [1024, 4096]other: [1, 4096]dtype=bf16, f32bias llama-input, other: [1024, 4096]dtype=f167b- hidden
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
hidden- | bf16 | 1.00× | 0.0105 | torch-compiletorch | 0.0105 0.0106 | 0.797 | · | · |
| f32 | 1.00× | 0.0174 | torch-compiletorch | 0.0174 0.0174 | 0.482 | · | · | |
cnn- | bf16 | 1.00× | 0.00976 | torch-compiletorch | 0.00974 0.0471 | 1.32 | · | · |
| f32 | 1.00× | 0.0150 | torch-compiletorch | 0.0151 0.0461 | 0.854 | · | · | |
llama- | bf16 | 1.00× | 0.0134 | torch-compiletorch | 0.0135 0.0135 | 0.839 | · | · |
| f32 | 1.00× | 0.0230 | torch-compiletorch | 0.0230 0.0231 | 0.49 | · | · | |
linear- | bf16 | 1.01× | 0.00429 | torch-compiletorch | 0.00432 0.0148 | 0.978 | · | · |
| f32 | 1.01× | 0.00618 | torch-compiletorch | 0.00621 0.0147 | 0.679 | · | · | |
llama- | f16 | 1.00× | 0.00621 | torch-compiletorch | 0.00621 0.00624 | 0.676 | · | · |
LtFwd¶
input: [*A]other: [*B]
hidden-input, other: [2048, 4096]dtype=bf16, f32state- prefill cnn-input: [16, 256, 56, 56]other: [256, 1, 1]dtype=bf16, f32feat- broadcast llama-input, other: [1024, 11008]dtype=bf16, f327b- ffn linear-input: [1024, 4096]other: [1, 4096]dtype=bf16, f32bias llama-input, other: [1024, 4096]dtype=f167b- hidden
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
hidden- | bf16 | 1.00× | 0.0105 | torch-compiletorch | 0.0105 0.0106 | 0.797 | · | · |
| f32 | 1.00× | 0.0175 | torch-compiletorch | 0.0174 0.0175 | 0.48 | · | · | |
cnn- | bf16 | 1.00× | 0.00973 | torch-compiletorch | 0.00976 0.0500 | 1.32 | · | · |
| f32 | 1.00× | 0.0150 | torch-compiletorch | 0.0151 0.0486 | 0.854 | · | · | |
llama- | bf16 | 1.00× | 0.0135 | torch-compiletorch | 0.0135 0.0135 | 0.837 | · | · |
| f32 | 1.00× | 0.0231 | torch-compiletorch | 0.0231 0.0231 | 0.489 | · | · | |
linear- | bf16 | 1.01× | 0.00426 | torch-compiletorch | 0.00432 0.0157 | 0.985 | · | · |
| f32 | 1.01× | 0.00618 | torch-compiletorch | 0.00621 0.0154 | 0.679 | · | · | |
llama- | f16 | 1.00× | 0.00621 | torchtorch-compile | 0.00621 0.00621 | 0.676 | · | · |
LeFwd¶
input: [*A]other: [*B]
hidden-input, other: [2048, 4096]dtype=bf16, f32state- prefill cnn-input: [16, 256, 56, 56]other: [256, 1, 1]dtype=bf16, f32feat- broadcast llama-input, other: [1024, 11008]dtype=bf16, f327b- ffn linear-input: [1024, 4096]other: [1, 4096]dtype=bf16, f32bias llama-input, other: [1024, 4096]dtype=f167b- hidden
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
hidden- | bf16 | 1.00× | 0.0105 | torch-compiletorch | 0.0105 0.0106 | 0.797 | · | · |
| f32 | 1.00× | 0.0174 | torch-compiletorch | 0.0174 0.0174 | 0.482 | · | · | |
cnn- | bf16 | 1.00× | 0.00973 | torch-compiletorch | 0.00976 0.0499 | 1.32 | · | · |
| f32 | 1.00× | 0.0150 | torch-compiletorch | 0.0151 0.0486 | 0.854 | · | · | |
llama- | bf16 | 1.00× | 0.0134 | torch-compiletorch | 0.0135 0.0135 | 0.839 | · | · |
| f32 | 1.00× | 0.0230 | torch-compiletorch | 0.0230 0.0231 | 0.49 | · | · | |
linear- | bf16 | 1.01× | 0.00429 | torch-compiletorch | 0.00432 0.0157 | 0.978 | · | · |
| f32 | 1.01× | 0.00618 | torch-compiletorch | 0.00621 0.0154 | 0.679 | · | · | |
llama- | f16 | 1.00× | 0.00621 | torchtorch-compile | 0.00621 0.00622 | 0.676 | · | · |
IsnanFwd¶
input: [*S]
16Minput: [4096, 4096]dtype=bf16, f32256Minput: [16384, 16384]dtype=bf16
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 1.00× | 0.0122 | torch-compiletorch | 0.0122 0.0127 | 1.37 | · | · |
| f32 | 1.00× | 0.0192 | torch-compiletorch | 0.0192 0.0193 | 0.874 | · | · | |
256M | bf16 | 1.08× | 0.1811 | torch-compiletorch | 0.1961 0.2017 | 1.48 | · | · |
IsinfFwd¶
input: [*S]
16Minput: [4096, 4096]dtype=bf16, f32256Minput: [16384, 16384]dtype=bf16
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 1.02× | 0.0120 | torch-compiletorch | 0.0123 0.0299 | 1.39 | · | · |
| f32 | 1.00× | 0.0192 | torch-compiletorch | 0.0192 0.0533 | 0.872 | · | · | |
256M | bf16 | 1.09× | 0.1809 | torch-compiletorch | 0.1979 0.4533 | 1.48 | · | · |
IsfiniteFwd¶
input: [*S]
16Minput: [4096, 4096]dtype=bf16, f32256Minput: [16384, 16384]dtype=bf16
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 0.99× | 0.0122 | torch-compiletorch | 0.0121 0.0625 | 1.38 | · | · |
| f32 | 1.00× | 0.0192 | torch-compiletorch | 0.0192 0.0933 | 0.874 | · | · | |
256M | bf16 | 1.07× | 0.1811 | torch-compiletorch | 0.1943 0.9216 | 1.48 | · | · |
LogicalAndFwd¶
input: [*A]other: [*B]
hidden-input, other: [2048, 4096]dtype=bool, bf16, f32state- prefill cnn-input: [16, 256, 56, 56]other: [256, 1, 1]dtype=bool, bf16, f32feat- broadcast llama-input, other: [1024, 11008]dtype=bool, bf16, f327b- ffn linear-input: [1024, 4096]other: [1, 4096]dtype=bool, bf16, f32bias llama-input, other: [1024, 4096]dtype=f167b- hidden phi-input, other: [1024, 10240]dtype=f162- ffn
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
hidden- | bool | 1.17× | 0.00691 | torch-compiletorch | 0.0081 0.0096 | 1.21 | · | · |
| bf16 | 1.00× | 0.0106 | torch-compiletorch | 0.0106 0.0107 | 2.38 | · | · | |
| f32 | 1.00× | 0.0174 | torchtorch-compile | 0.0175 0.0175 | 1.44 | · | · | |
cnn- | bool | 1.36× | 0.00704 | torch-compiletorch | 0.00957 0.0449 | 1.82 | · | · |
| bf16 | 1.01× | 0.00973 | torch-compiletorch | 0.00982 0.0475 | 3.96 | · | · | |
| f32 | 1.00× | 0.0150 | torch-compiletorch | 0.0151 0.0456 | 2.57 | · | · | |
llama- | bool | 1.17× | 0.00874 | torch-compiletorch | 0.0102 0.0124 | 1.29 | · | · |
| bf16 | 1.00× | 0.0134 | torch-compiletorch | 0.0135 0.0136 | 2.52 | · | · | |
| f32 | 1.00× | 0.0230 | torch-compiletorch | 0.0231 0.0231 | 1.47 | · | · | |
linear- | bool | 2.67× | 0.0031 | torch-compiletorch | 0.00829 0.0141 | 1.35 | · | · |
| bf16 | 1.87× | 0.00438 | torch-compiletorch | 0.00819 0.0148 | 2.87 | · | · | |
| f32 | 1.01× | 0.00618 | torch-compiletorch | 0.00621 0.0145 | 2.04 | · | · | |
llama- | f16 | 1.00× | 0.00621 | torch-compiletorch | 0.00621 0.00624 | 2.03 | · | · |
phi- | f16 | 1.00× | 0.0126 | torch-compiletorch | 0.0126 0.0127 | 2.49 | · | · |
LogicalOrFwd¶
input: [*A]other: [*B]
hidden-input, other: [2048, 4096]dtype=bool, bf16, f32state- prefill cnn-input: [16, 256, 56, 56]other: [256, 1, 1]dtype=bool, bf16, f32feat- broadcast llama-input, other: [1024, 11008]dtype=bool, bf16, f327b- ffn linear-input: [1024, 4096]other: [1, 4096]dtype=bool, bf16, f32bias llama-input, other: [1024, 4096]dtype=f167b- hidden phi-input, other: [1024, 10240]dtype=f162- ffn
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
hidden- | bool | 1.04× | 0.00691 | torch-compiletorch | 0.0072 0.00784 | 1.21 | · | · |
| bf16 | 1.00× | 0.0106 | torch-compiletorch | 0.0106 0.0106 | 2.38 | · | · | |
| f32 | 1.00× | 0.0174 | torch-compiletorch | 0.0174 0.0175 | 1.44 | · | · | |
cnn- | bool | 1.38× | 0.00704 | torch-compiletorch | 0.00973 0.0440 | 1.82 | · | · |
| bf16 | 1.00× | 0.00976 | torch-compiletorch | 0.00979 0.0483 | 3.95 | · | · | |
| f32 | 1.00× | 0.0150 | torch-compiletorch | 0.0151 0.0459 | 2.57 | · | · | |
llama- | bool | 1.02× | 0.00872 | torch-compiletorch | 0.00893 0.00986 | 1.29 | · | · |
| bf16 | 1.00× | 0.0134 | torch-compiletorch | 0.0135 0.0135 | 2.52 | · | · | |
| f32 | 1.00× | 0.0230 | torch-compiletorch | 0.0231 0.0231 | 1.47 | · | · | |
linear- | bool | 1.36× | 0.0031 | torch-compiletorch | 0.00422 0.0138 | 1.35 | · | · |
| bf16 | 1.02× | 0.00426 | torch-compiletorch | 0.00435 0.0151 | 2.96 | · | · | |
| f32 | 1.36× | 0.00614 | torch-compiletorch | 0.00835 0.0145 | 2.05 | · | · | |
llama- | f16 | 1.01× | 0.00618 | torch-compiletorch | 0.00621 0.00624 | 2.04 | · | · |
phi- | f16 | 1.00× | 0.0126 | torch-compiletorch | 0.0127 0.0127 | 2.49 | · | · |
LogicalNotFwd¶
input: [*S]
16Minput: [4096, 4096]dtype=bool, f16, f32256Minput: [16384, 16384]dtype=bool
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bool | 1.43× | 0.00826 | torch-compiletorch | 0.0118 0.0125 | 2.03 | · | · |
| f16 | 1.00× | 0.0122 | torch-compiletorch | 0.0121 0.0123 | 1.38 | · | · | |
| f32 | 1.00× | 0.0193 | torch-compiletorch | 0.0193 0.0194 | 0.871 | · | · | |
256M | bool | 1.33× | 0.1247 | torch-compiletorch | 0.1654 0.1825 | 2.15 | · | · |
BitwiseAndFwd¶
input: [*A]other: [*B]
hidden-input, other: [2048, 4096]dtype=bool, i32, i64state- prefill cnn-input: [16, 256, 56, 56]other: [256, 1, 1]dtype=bool, i32, i64feat- broadcast llama-input, other: [1024, 11008]dtype=bool, i32, i647b- ffn linear-input: [1024, 4096]other: [1, 4096]dtype=bool, i32, i64bias llama-input, other: [1024, 4096]dtype=i327b- hidden phi-input, other: [1024, 10240]dtype=i322- ffn
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
hidden- | bool | 1.16× | 0.00694 | torch-compiletorch | 0.00806 0.00963 | 1.21 | · | · |
| i32 | 1.00× | 0.0225 | torch-compiletorch | 0.0225 0.0225 | 0.373 | · | · | |
| i64 | 1.01× | 0.0443 | torchtorch-compile | 0.0445 0.0448 | 0.189 | · | · | |
cnn- | bool | 1.34× | 0.00714 | torch-compiletorch | 0.00957 0.0449 | 1.8 | · | · |
| i32 | 1.00× | 0.0235 | torch-compiletorch | 0.0235 0.0480 | 0.547 | · | · | |
| i64 | 1.03× | 0.0471 | torch-compiletorch | 0.0484 0.0564 | 0.273 | · | · | |
llama- | bool | 1.17× | 0.00874 | torch-compiletorch | 0.0102 0.0124 | 1.29 | · | · |
| i32 | 1.00× | 0.0298 | torchtorch-compile | 0.0298 0.0298 | 0.379 | · | · | |
| i64 | 1.00× | 0.0604 | torch-compiletorch | 0.0604 0.0609 | 0.186 | · | · | |
linear- | bool | 1.47× | 0.0031 | torch-compiletorch | 0.00458 0.0141 | 1.35 | · | · |
| i32 | 1.12× | 0.00835 | torch-compiletorch | 0.00931 0.0148 | 0.502 | · | · | |
| i64 | 1.02× | 0.0158 | torch-compiletorch | 0.0161 0.0178 | 0.265 | · | · | |
llama- | i32 | 1.00× | 0.0121 | torch-compiletorch | 0.0121 0.0122 | 0.346 | · | · |
phi- | i32 | 1.00× | 0.0278 | torch-compiletorch | 0.0279 0.0279 | 0.377 | · | · |
BitwiseOrFwd¶
input: [*A]other: [*B]
hidden-input, other: [2048, 4096]dtype=bool, i32, i64state- prefill cnn-input: [16, 256, 56, 56]other: [256, 1, 1]dtype=bool, i32, i64feat- broadcast llama-input, other: [1024, 11008]dtype=bool, i32, i647b- ffn linear-input: [1024, 4096]other: [1, 4096]dtype=bool, i32, i64bias llama-input, other: [1024, 4096]dtype=i327b- hidden
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
hidden- | bool | 1.04× | 0.00694 | torch-compiletorch | 0.00723 0.00784 | 1.21 | · | · |
| i32 | 1.00× | 0.0225 | torch-compiletorch | 0.0225 0.0225 | 0.373 | · | · | |
| i64 | 1.00× | 0.0442 | torch-compiletorch | 0.0442 0.0446 | 0.19 | · | · | |
cnn- | bool | 1.37× | 0.00711 | torch-compiletorch | 0.00976 0.0439 | 1.81 | · | · |
| i32 | 1.00× | 0.0235 | torch-compiletorch | 0.0235 0.0488 | 0.546 | · | · | |
| i64 | 1.01× | 0.0475 | torch-compiletorch | 0.0479 0.0564 | 0.27 | · | · | |
llama- | bool | 1.03× | 0.00872 | torch-compiletorch | 0.00896 0.00986 | 1.29 | · | · |
| i32 | 1.00× | 0.0298 | torch-compiletorch | 0.0298 0.0299 | 0.379 | · | · | |
| i64 | 1.00× | 0.0604 | torch-compiletorch | 0.0603 0.0606 | 0.187 | · | · | |
linear- | bool | 1.36× | 0.0031 | torch-compiletorch | 0.00422 0.0138 | 1.35 | · | · |
| i32 | 1.12× | 0.00832 | torch-compiletorch | 0.00931 0.0148 | 0.504 | · | · | |
| i64 | 1.01× | 0.0159 | torch-compiletorch | 0.0160 0.0178 | 0.264 | · | · | |
llama- | i32 | 1.00× | 0.0121 | torch-compiletorch | 0.0121 0.0122 | 0.347 | · | · |
BitwiseXorFwd¶
input: [*A]other: [*B]
hidden-input, other: [2048, 4096]dtype=bool, i32, i64state- prefill cnn-input: [16, 256, 56, 56]other: [256, 1, 1]dtype=bool, i32, i64feat- broadcast llama-input, other: [1024, 11008]dtype=bool, i32, i647b- ffn linear-input: [1024, 4096]other: [1, 4096]dtype=bool, i32, i64bias llama-input, other: [1024, 4096]dtype=i327b- hidden
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
hidden- | bool | 1.16× | 0.00694 | torch-compiletorch | 0.00806 0.00966 | 1.21 | · | · |
| i32 | 1.00× | 0.0225 | torch-compiletorch | 0.0225 0.0225 | 0.372 | · | · | |
| i64 | 1.00× | 0.0440 | torch-compiletorch | 0.0442 0.0446 | 0.19 | · | · | |
cnn- | bool | 1.35× | 0.0071 | torch-compiletorch | 0.00957 0.0448 | 1.81 | · | · |
| i32 | 1.00× | 0.0235 | torch-compiletorch | 0.0235 0.0487 | 0.546 | · | · | |
| i64 | 1.01× | 0.0471 | torch-compiletorch | 0.0478 0.0559 | 0.273 | · | · | |
llama- | bool | 1.17× | 0.00874 | torch-compiletorch | 0.0102 0.0124 | 1.29 | · | · |
| i32 | 1.00× | 0.0298 | torch-compiletorch | 0.0298 0.0298 | 0.378 | · | · | |
| i64 | 1.00× | 0.0604 | torch-compiletorch | 0.0604 0.0609 | 0.187 | · | · | |
linear- | bool | 2.67× | 0.0031 | torch-compiletorch | 0.00829 0.0141 | 1.35 | · | · |
| i32 | 1.12× | 0.00832 | torch-compiletorch | 0.00931 0.0148 | 0.504 | · | · | |
| i64 | 1.01× | 0.0158 | torch-compiletorch | 0.0160 0.0178 | 0.265 | · | · | |
llama- | i32 | 1.00× | 0.0121 | torch-compiletorch | 0.0121 0.0122 | 0.346 | · | · |
BitwiseNotFwd¶
input: [*S]
16Minput: [4096, 4096]dtype=i32, i64256Minput: [16384, 16384]dtype=i32
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | i32 | 1.00× | 0.0308 | torch-compiletorch | 0.0308 0.0308 | 0.545 | · | · |
| i64 | 1.01× | 0.0623 | torch-compiletorch | 0.0629 0.0648 | 0.269 | · | · | |
256M | i32 | 1.01× | 0.4998 | torch-compiletorch | 0.5041 0.5042 | 0.537 | · | · |
WhereFwd¶
condition: [*C], boolinput: [*A]other: [*B]
16Mcondition: [4096, 4096], boolinput, other: [4096, 4096]dtype=bf16, f32256Mcondition: [16384, 16384], boolinput, other: [16384, 16384]dtype=bf16attn-condition: [512, 512], boolinput: [8, 16, 512, 512]other: []dtype=bf16, f32causal- mask
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 1.00× | 0.0263 | torch-compiletorch | 0.0263 0.0263 | 0.638 | · | · |
| f32 | 0.99× | 0.0482 | torchtorch-compile | 0.0478 0.0478 | 0.348 | · | · | |
256M | bf16 | 1.00× | 0.4201 | torch-compiletorch | 0.4201 0.4201 | 0.639 | · | · |
attn- | bf16 | 1.00× | 0.0311 | torch-compiletorch | 0.0311 0.1141 | 1.08 | · | · |
| f32 | 0.99× | 0.0627 | torch-compiletorch | 0.0622 0.1303 | 0.535 | · | · | |
ClampFwd¶
input: [*A]min: [*L]max: [*U]
16Minput, min, max: [4096, 4096]dtype=bf16, f32256Minput, min, max: [16384, 16384]dtype=bf16cnn-input: [16, 256, 56, 56]min, max: [256, 1, 1]dtype=bf16, f32feat- channel- bounds
input: [*A]min: [*L]
16M-input, min: [4096, 4096]dtype=bf16, f32min- only 256M-input, min: [16384, 16384]dtype=bf16min- only
input: [*A]max: [*U]
16M-input, max: [4096, 4096]dtype=bf16, f32max- only 256M-input, max: [16384, 16384]dtype=bf16max- only
input: [*A]
16M-input: [4096, 4096]min=-0.5max=0.5dtype=bf16, f32number 256M-input: [16384, 16384]min=-0.5max=0.5dtype=bf16number 16M-input: [4096, 4096]min=-0.5dtype=f16number- min- only 16M-input: [4096, 4096]max=0.5dtype=f16number- max- only
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 1.00× | 0.0299 | torch-compiletorch | 0.0299 0.0304 | 0.561 | · | · |
| f32 | 1.00× | 0.0602 | torch-compiletorch | 0.0602 0.0602 | 0.279 | · | · | |
256M | bf16 | 1.00× | 0.4777 | torchtorch-compile | 0.4771 0.4777 | 0.562 | · | · |
cnn- | bf16 | 1.00× | 0.0125 | torch-compiletorch | 0.0125 0.0567 | 1.02 | · | · |
| f32 | 1.00× | 0.0236 | torch-compiletorch | 0.0235 0.0563 | 0.545 | · | · | |
16M- | bf16 | 1.00× | 0.0227 | torch-compiletorch | 0.0227 0.0231 | 0.741 | · | · |
| f32 | 1.00× | 0.0444 | torch-compiletorch | 0.0442 0.0446 | 0.378 | · | · | |
256M- | bf16 | 1.00× | 0.3630 | torchtorch-compile | 0.3618 0.3632 | 0.739 | · | · |
16M- | bf16 | 1.00× | 0.0227 | torch-compiletorch | 0.0227 0.0231 | 0.741 | · | · |
| f32 | 1.00× | 0.0443 | torchtorch-compile | 0.0444 0.0475 | 0.379 | · | · | |
256M- | bf16 | 1.00× | 0.3631 | torchtorch-compile | 0.3618 0.3629 | 0.739 | · | · |
16M- | bf16 | 1.00× | 0.0160 | torch-compiletorch | 0.0160 0.0192 | 1.05 | · | · |
| f32 | 1.00× | 0.0308 | torch-compiletorch | 0.0307 0.0310 | 0.544 | · | · | |
256M- | bf16 | 1.00× | 0.2506 | torch-compiletorch | 0.2500 0.2937 | 1.07 | · | · |
16M- | f16 | 1.00× | 0.0160 | torch-compiletorch | 0.0160 0.0163 | 1.05 | · | · |
16M- | f16 | 1.00× | 0.0159 | torch-compiletorch | 0.0160 0.0163 | 1.05 | · | · |
MaskedFillFwd¶
input: [*A]mask: [*M], boolvalue: []
16Minput: [4096, 4096]mask: [4096, 4096], boolvalue: []dtype=bf16, f32256Minput: [16384, 16384]mask: [16384, 16384], boolvalue: []dtype=bf16attn-input: [8, 16, 512, 512]mask: [8, 1, 1, 512], boolvalue: []dtype=bf16, f32padding- mask
input: [*A]mask: [*M], bool
value=0
16M-input: [4096, 4096]mask: [4096, 4096], booldtype=bf16, f32number 256M-input: [16384, 16384]mask: [16384, 16384], booldtype=bf16number attn-input: [8, 16, 512, 512]mask: [8, 1, 1, 512], booldtype=bf16, f32padding- number
input: [*A]mask: [*M]
attn-input: [8, 16, 512, 512]mask: [8, 1, 1, 512]value=truedtype=boolpadding- bool
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 1.00× | 0.0192 | torch-compiletorch | 0.0192 0.0380 | 0.875 | · | · |
| f32 | 1.00× | 0.0338 | torch-compiletorch | 0.0337 0.0709 | 0.496 | · | · | |
256M | bf16 | 1.00× | 0.3057 | torch-compiletorch | 0.3058 0.5699 | 0.878 | · | · |
attn- | bf16 | 1.00× | 0.0311 | torch-compiletorch | 0.0312 0.1503 | 1.08 | · | · |
| f32 | 1.00× | 0.0622 | torch-compiletorch | 0.0625 0.1930 | 0.539 | · | · | |
16M- | bf16 | 1.00× | 0.0191 | torch-compiletorch | 0.0192 0.0356 | 0.877 | · | · |
| f32 | 1.16× | 0.0339 | torch-compiletorch | 0.0394 0.0685 | 0.496 | · | · | |
256M- | bf16 | 1.00× | 0.3057 | torch-compiletorch | 0.3058 0.5681 | 0.878 | · | · |
attn- | bf16 | 1.00× | 0.0311 | torch-compiletorch | 0.0312 0.1490 | 1.08 | · | · |
| f32 | 1.00× | 0.0623 | torch-compiletorch | 0.0624 0.1903 | 0.539 | · | · | |
attn- | bool | 1.39× | 0.0166 | torch-compiletorch | 0.0230 0.1305 | 2.02 | · | · |
NanToNumFwd¶
input: [*S]
16Minput: [4096, 4096]dtype=bf16, f32256Minput: [16384, 16384]dtype=bf16
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
16M | bf16 | 1.02× | 0.0161 | torch-compiletorch | 0.0164 0.0172 | 2.09 | · | · |
| f32 | 1.00× | 0.0308 | torch-compiletorch | 0.0308 0.0308 | 1.09 | · | · | |
256M | bf16 | 1.03× | 0.2513 | torch-compiletorch | 0.2576 0.2734 | 2.14 | · | · |
AlibiFwd¶
num_heads=32dtype=bf16
mpt-seq_len=20487b- 2k mpt-seq_len=40967b- 4k
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
mpt- | bf16 | 1.35× | 0.0640 | torch-compiletorch-ref | 0.0865 0.5919 | 6.29 | · | · |
mpt- | bf16 | 1.22× | 0.2805 | torch-compiletorch-ref | 0.3423 2.6317 | 5.74 | · | · |
SinusoidalFwd¶
d_model=4096dtype=bf16
transformer-seq_len=20482k- 4k transformer-seq_len=40964k- 4k
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
transformer- | bf16 | 4.12× | 0.0135 | torch-compiletorch-ref | 0.0557 0.1050 | 0.932 | · | · |
transformer- | bf16 | 4.46× | 0.0250 | torch-compiletorch-ref | 0.1115 0.1988 | 1.01 | · | · |