Normalization¶
13 ops, 130 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.
LayerNormFwd¶
input: [*B, *normalized_shape]weight, bias: [*normalized_shape]
dtype=bf16
llama-input: [2048, 4096]weight, bias: [4096]8b- prefill llama-input: [1, 4096]weight, bias: [4096]8b- decode llama-input: [2048, 8192]weight, bias: [8192]70b- prefill llama-input: [1, 8192]weight, bias: [8192]70b- decode llama-input: [2048, 16384]weight, bias: [16384]405b- prefill llama-input: [1, 16384]weight, bias: [16384]405b- decode
input: [*B, *normalized_shape]weight: [*normalized_shape]
llama-input: [2048, 5120]weight: [5120]dtype=f3213b- prefill
input: [*B, *normalized_shape]
dit-input: [1024, 1152]dtype=bf16xl- 2
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
llama- | bf16 | 1.14× | 0.0102 | flaggemstorchflashinferquacktorch-compile | 0.0116 0.0204 0.0206 0.0226 0.0237 | 5.77 | · | · |
llama- | bf16 | 1.31× | 0.00186 | torch-compileflaggemsflashinferquacktorch | 0.00243 0.00275 0.0031 0.0100 0.0112 | 0.0154 | · | · |
llama- | bf16 | 1.40× | 0.0181 | flaggemstorch-compilequacktorchflashinfer | 0.0252 0.0321 0.0370 0.0392 0.0448 | 6.49 | · | · |
llama- | bf16 | 2.02× | 0.00198 | torch-compileflashinferflaggemsquacktorch | 0.004 0.0041 0.00435 0.0106 0.0201 | 0.0289 | · | · |
llama- | bf16 | 1.23× | 0.0376 | flaggemstorch-compiletorchflashinferquack | 0.0461 0.0688 0.0737 0.0750 0.6694 | 6.25 | · | · |
llama- | bf16 | 2.45× | 0.00221 | torch-compileflashinferflaggemstorchquack | 0.00541 0.00602 0.00653 0.0390 0.0603 | 0.0519 | · | · |
llama- | f32 | 1.25× | 0.0194 | torch-compilequacktorch | 0.0242 0.0248 0.0344 | 3.24 | · | · |
dit- | bf16 | 1.22× | 0.00253 | quacktorchtorch-compile | 0.00307 0.00589 0.00603 | 2.33 | · | · |
FusedAddLayerNormFwd¶
x, residual: [*B, N]weight, bias: [N]
llama-x, residual: [2048, 4096]weight, bias: [4096]dtype=bf168b- prefill llama-x, residual: [1, 4096]weight, bias: [4096]dtype=bf168b- decode llama-x, residual: [2048, 8192]weight, bias: [8192]dtype=bf1670b- prefill llama-x, residual: [1, 8192]weight, bias: [8192]dtype=bf1670b- decode llama-x, residual: [2048, 5120]weight, bias: [5120]dtype=f3213b- prefill
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
llama- | bf16 | 1.51× | 0.0163 | flash-attntorch-compiletorch-refquack | 0.0246 0.0264 0.0324 0.0335 | 4.12 | · | · |
llama- | bf16 | 1.69× | 0.00205 | torch-compileflash-attntorch-refquack | 0.00346 0.00454 0.0105 0.0111 | 0.016 | · | · |
llama- | bf16 | 1.37× | 0.0322 | torch-compileflash-attnquacktorch-ref | 0.0442 0.0478 0.0615 0.0638 | 4.17 | · | · |
llama- | bf16 | 2.48× | 0.00214 | flash-attntorch-compilequacktorch-ref | 0.00531 0.00578 0.0117 0.0178 | 0.0306 | · | · |
llama- | f32 | 1.11× | 0.0391 | torch-compileflash-attnquacktorch-ref | 0.0435 0.0553 0.0556 0.0690 | 2.15 | · | · |
RMSNormFwd¶
x: [*B, *normalized_shape]weight: [*normalized_shape]
dtype=bf16
llama-x: [2048, 4096]weight: [4096]eps=1e-068b- prefill llama-x: [1, 4096]weight: [4096]eps=1e-068b- decode llama-x: [2048, 8192]weight: [8192]eps=1e-0670b- prefill llama-x: [1, 8192]weight: [8192]eps=1e-0670b- decode llama-x: [2048, 16384]weight: [16384]eps=1e-06405b- prefill llama-x: [1, 16384]weight: [16384]eps=1e-06405b- decode llama-x: [2048, 5120]weight: [5120]13b- prefill quack-x: [32768, 256]weight: [256]eps=1e-06throughput- 256 quack-x: [32768, 512]weight: [512]eps=1e-06throughput- 512 quack-x: [32768, 1024]weight: [1024]eps=1e-06throughput- 1024 quack-x: [32768, 2048]weight: [2048]eps=1e-06throughput- 2048 quack-x: [32768, 4096]weight: [4096]eps=1e-06throughput- 4096 quack-x: [32768, 8192]weight: [8192]eps=1e-06throughput- 8192 quack-x: [32768, 16384]weight: [16384]eps=1e-06throughput- 16384 quack-x: [32768, 32768]weight: [32768]eps=1e-06throughput- 32768 quack-x: [32768, 65536]weight: [65536]eps=1e-06throughput- 65536 quack-x: [16384, 131072]weight: [131072]eps=1e-06throughput- 131072 quack-x: [8192, 262144]weight: [262144]eps=1e-06throughput- 262144 qwen3-x: [1, 32, 128]weight: [128]eps=1e-068b- qk- norm- decode qwen3.6-x: [4096, 5120]weight: [5120]eps=1e-06zero_centered=true27b- prefill qwen3.6-x: [64, 5120]weight: [5120]eps=1e-06zero_centered=true27b- decode qwen3.6-x: [4096, 24, 256]weight: [256]eps=1e-06zero_centered=true27b- q- norm qwen3.6-x: [4096, 2048]weight: [2048]eps=1e-06zero_centered=true35b- a3b- prefill qwen3.6-x: [64, 2048]weight: [2048]eps=1e-06zero_centered=true35b- a3b- decode qwen3.6-x: [4096, 16, 256]weight: [256]eps=1e-06zero_centered=true35b- a3b- q- norm qwen3.8-x: [64, 10240]weight: [10240]eps=1e-06group_size=2560zero_centered=trueflash- hc- decode qwen3.8-x: [4096, 10240]weight: [10240]eps=1e-06group_size=2560zero_centered=trueflash- hc- pf4k qwen3.8-x: [32768, 10240]weight: [10240]eps=1e-06group_size=2560zero_centered=trueflash- hc- pf32k
x: [*B, *normalized_shape]
qk-x: [4, 2048, 128]dtype=bf16norm- head
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
llama- | bf16 | 1.06× | 0.00925 | flashinferflaggemsquackvllmtorch-compiletorch-ref | 0.00976 0.0104 0.0106 0.0109 0.0113 0.0128 | 3.63 | · | · |
llama- | bf16 | 1.15× | 0.00189 | quackflashinfertorch-compilevllmflaggemstorch-ref | 0.00218 0.00218 0.0025 0.00269 0.00294 0.00851 | 0.00868 | · | · |
llama- | bf16 | 1.02× | 0.0169 | flashinferquackflaggemstorch-compilevllmtorch-ref | 0.0171 0.0176 0.0177 0.0179 0.0189 0.0271 | 3.98 | · | · |
llama- | bf16 | 1.17× | 0.00221 | flashinferquackvllmtorch-compileflaggemstorch-ref | 0.00259 0.00272 0.00314 0.00352 0.00416 0.0155 | 0.0148 | · | · |
llama- | bf16 | 1.02× | 0.0322 | torch-compileflashinferquackflaggemsvllmtorch-ref | 0.0327 0.0343 0.0348 0.0373 0.0443 0.0540 | 4.17 | · | · |
llama- | bf16 | 1.26× | 0.00278 | quackflashinfervllmtorch-compileflaggemstorch-ref | 0.00352 0.00352 0.00442 0.00451 0.00522 0.0291 | 0.0235 | · | · |
llama- | bf16 | 1.05× | 0.0112 | flashinferflaggemsvllmtorch-compilequacktorch-ref | 0.0118 0.0120 0.0128 0.0132 0.0132 0.0159 | 3.73 | · | · |
quack- | bf16 | 1.01× | 0.0087 | torch-compilequackflashinfervllmflaggemstorch-ref | 0.0088 0.00915 0.0120 0.0226 0.0231 0.0318 | 3.86 | · | · |
quack- | bf16 | 1.01× | 0.0159 | flashinfertorch-compilequackflaggemsvllmtorch-ref | 0.0160 0.0163 0.0167 0.0261 0.0276 0.0375 | 4.22 | · | · |
quack- | bf16 | 1.02× | 0.0306 | flashinferquacktorch-compileflaggemsvllmtorch-ref | 0.0313 0.0314 0.0323 0.0355 0.0430 0.0518 | 4.39 | · | · |
quack- | bf16 | 1.01× | 0.0629 | flaggemsquackflashinfertorch-compiletorch-refvllm | 0.0637 0.0642 0.0652 0.0832 0.0851 0.0853 | 4.27 | · | · |
quack- | bf16 | 1.01× | 0.1273 | quackflashinferflaggemsvllmtorch-reftorch-compile | 0.1284 0.1292 0.1301 0.1441 0.1605 0.1617 | 4.22 | · | · |
quack- | bf16 | 1.01× | 0.2472 | torch-compilequackflashinferflaggemsvllmtorch-ref | 0.2508 0.2545 0.2598 0.2781 0.2785 0.4075 | 4.34 | · | · |
quack- | bf16 | 1.02× | 0.4972 | torch-compileflashinferquackflaggemsvllmtorch-ref | 0.5076 0.5177 0.5184 0.5467 0.7206 0.8596 | 4.32 | · | · |
quack- | bf16 | 1.00× | 0.9974 | torch-compilequackflaggemsflashinfervllmtorch-ref | 0.9937 1.0338 1.3127 1.4156 1.5082 1.6928 | 4.31 | · | · |
quack- | bf16 | 1.02× | 2.1541 | quackflaggemstorch-compilevllmtorch-refflashinfer | 2.2048 2.6424 2.9306 3.0569 3.3384 40.1028 | 3.99 | · | · |
quack- | bf16 | 1.08× | 2.1083 | quackflaggemstorch-compilevllmtorch-refflashinfer | 2.2844 2.8997 3.0968 3.1256 3.3177 4.0278 | 4.07 | · | · |
quack- | bf16 | 1.16× | 2.1561 | quackflaggemsvllmtorch-compiletorch-refflashinfer | 2.4920 3.0581 3.1214 3.1364 3.3202 44.7803 | 3.98 | · | · |
qwen3- | bf16 | 1.02× | 0.00144 | quacktorch-reftorch-compile | 0.00147 0.0023 0.0023 | 0.0114 | · | · |
qwen3.6- | bf16 | 1.07× | 0.0205 | flashinferflaggemstorch-compiletransformersquacktorch-refvllm | 0.0220 0.0233 0.0247 0.0247 0.0275 0.1681 0.3241 | 4.1 | · | · |
qwen3.6- | bf16 | 1.28× | 0.00218 | quackflashinfertorch-compiletransformersflaggemstorch-refvllm | 0.00278 0.00288 0.00301 0.00302 0.00394 0.0160 0.0290 | 0.605 | · | · |
qwen3.6- | bf16 | 1.04× | 0.0229 | torch-compiletransformersquackflashinferflaggemstorch-refvllm | 0.0237 0.0237 0.0245 0.0321 0.0663 0.2467 0.3930 | 4.4 | · | · |
qwen3.6- | bf16 | 1.16× | 0.00976 | flaggemsflashinfertorch-compiletransformersquacktorch-refvllm | 0.0113 0.0113 0.0116 0.0116 0.0122 0.0651 0.1352 | 3.44 | · | · |
qwen3.6- | bf16 | 1.17× | 0.00186 | transformerstorch-compileflaggemsflashinferquacktorch-refvllm | 0.00218 0.00221 0.0023 0.00272 0.00426 0.0129 0.0213 | 0.284 | · | · |
qwen3.6- | bf16 | 1.01× | 0.0158 | transformerstorch-compilequackflashinferflaggemstorch-refvllm | 0.0159 0.0160 0.0167 0.0220 0.0442 0.1675 0.2688 | 4.24 | · | · |
qwen3.8- | bf16 | 1.14× | 0.00224 | torch-compiletorch-ref | 0.00256 0.0182 | 1.17 | · | · |
qwen3.8- | bf16 | 1.83× | 0.0384 | torch-compiletorch-ref | 0.0703 0.4405 | 4.37 | · | · |
qwen3.8- | bf16 | 1.77× | 0.3129 | torch-compiletorch-ref | 0.5551 3.5327 | 4.29 | · | · |
qk- | bf16 | 1.06× | 0.00221 | quacktorch-compiletorch-ref | 0.00234 0.0065 0.00858 | 1.42 | · | · |
FusedAddRMSNormFwd¶
input, residual: [*B, N]weight: [N]
dtype=bf16
llama-input, residual: [2048, 4096]weight: [4096]8b- prefill llama-input, residual: [1, 4096]weight: [4096]8b- decode llama-input, residual: [2048, 8192]weight: [8192]70b- prefill llama-input, residual: [1, 8192]weight: [8192]70b- decode llama-input, residual: [2048, 16384]weight: [16384]405b- prefill llama-input, residual: [1, 16384]weight: [16384]405b- decode llama-input, residual: [2048, 5120]weight: [5120]13b- prefill qwen3.6-input, residual: [4096, 5120]weight: [5120]zero_centered=true27b- prefill qwen3.6-input, residual: [64, 5120]weight: [5120]zero_centered=true27b- decode qwen3.6-input, residual: [4096, 2048]weight: [2048]zero_centered=true35b- a3b- prefill qwen3.6-input, residual: [64, 2048]weight: [2048]zero_centered=true35b- a3b- decode
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
llama- | bf16 | 1.03× | 0.0158 | torch-compileflashinfervllmtorch-ref | 0.0163 0.0163 0.0168 0.0232 | 2.66 | · | · |
llama- | bf16 | 1.23× | 0.00198 | flashinfervllmtorch-compiletorch-ref | 0.00243 0.00294 0.00314 0.0079 | 0.0103 | · | · |
llama- | bf16 | 1.03× | 0.0317 | flashinfertorch-compilevllmtorch-ref | 0.0325 0.0332 0.0340 0.0479 | 2.65 | · | · |
llama- | bf16 | 1.30× | 0.00221 | flashinfervllmtorch-compiletorch-ref | 0.00288 0.00349 0.00538 0.0133 | 0.0186 | · | · |
llama- | bf16 | 1.07× | 0.0646 | flashinfertorch-compilevllmtorch-ref | 0.0691 0.0706 0.0739 0.1001 | 2.6 | · | · |
llama- | bf16 | 1.54× | 0.00285 | flashinfervllmtorch-compiletorch-ref | 0.00439 0.00502 0.00595 0.0240 | 0.0288 | · | · |
llama- | bf16 | 1.05× | 0.0195 | flashinfertorch-compilevllmtorch-ref | 0.0204 0.0207 0.0208 0.0281 | 2.69 | · | · |
qwen3.6- | bf16 | 1.05× | 0.0386 | flashinferquacktorch-compiletorch-refvllm | 0.0405 0.0406 0.0468 0.1985 0.4865 | 2.72 | · | · |
qwen3.6- | bf16 | 1.30× | 0.00262 | quackflashinfertorch-compiletorch-refvllm | 0.00342 0.00349 0.00408 0.0170 0.0368 | 0.626 | · | · |
qwen3.6- | bf16 | 1.01× | 0.0160 | flashinfertorch-compilequacktorch-refvllm | 0.0162 0.0168 0.0169 0.0752 0.2032 | 2.62 | · | · |
qwen3.6- | bf16 | 1.14× | 0.00205 | torch-compilequackflashinfertorch-refvllm | 0.00234 0.00272 0.00282 0.0138 0.0281 | 0.321 | · | · |
FusedAddRMSNormPerTokenQuantFwd¶
input, residual: [*B, N]weight: [N]
llama-input, residual: [4096, 4096]weight: [4096]dtype=bf16/fp8e4m38b- prefill llama-input, residual: [4096, 4096]weight: [4096]dtype=bf16/i88b- prefill- i8 llama-input, residual: [1, 4096]weight: [4096]dtype=bf16/fp8e4m38b- decode- b1 llama-input, residual: [64, 4096]weight: [4096]dtype=bf16/fp8e4m38b- decode- b64 llama-input, residual: [256, 4096]weight: [4096]dtype=bf16/fp8e4m38b- decode- b256 llama-input, residual: [4096, 8192]weight: [8192]dtype=bf16/fp8e4m370b- prefill llama-input, residual: [4096, 8192]weight: [8192]dtype=f16/i870b- prefill- i8 llama-input, residual: [1, 8192]weight: [8192]dtype=bf16/fp8e4m370b- decode- b1 llama-input, residual: [64, 8192]weight: [8192]dtype=bf16/fp8e4m370b- decode- b64 llama-input, residual: [256, 8192]weight: [8192]dtype=bf16/fp8e4m370b- decode- b256 clamped-input, residual: [4096, 4096]weight: [4096]scale_ub=2dtype=bf16/fp8e4m3amax llama-input, residual: [2048, 5120]weight: [5120]dtype=bf16/fp8e4m313b- prefill
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
llama- | bf16/fp8e4m3 | 1.07× | 0.0268 | flashinfervllm | 0.0288 0.1038 | 5.64 | · | · |
llama- | bf16/i8 | 3.03× | 0.0274 | vllm | 0.0831 | 6.12 | · | · |
llama- | bf16/fp8e4m3 | 1.13× | 0.00224 | flashinfervllm | 0.00253 0.00518 | 0.0165 | · | · |
llama- | bf16/fp8e4m3 | 1.32× | 0.00237 | flashinfervllm | 0.00314 0.0055 | 0.996 | · | · |
llama- | bf16/fp8e4m3 | 1.11× | 0.00362 | flashinfervllm | 0.004 0.00822 | 2.61 | · | · |
llama- | bf16/fp8e4m3 | 1.06× | 0.0544 | flashinfervllm | 0.0576 0.1624 | 5.55 | · | · |
llama- | f16/i8 | 2.12× | 0.0556 | vllm | 0.1180 | 6.04 | · | · |
llama- | bf16/fp8e4m3 | 1.22× | 0.00262 | flashinfervllm | 0.0032 0.00752 | 0.0281 | · | · |
llama- | bf16/fp8e4m3 | 1.09× | 0.00304 | flashinfervllm | 0.00333 0.0079 | 1.55 | · | · |
llama- | bf16/fp8e4m3 | 1.02× | 0.00541 | flashinfervllm | 0.00554 0.0124 | 3.49 | · | · |
clamped- | bf16/fp8e4m3 | 1.07× | 0.0268 | flashinfervllm | 0.0288 0.1037 | 5.62 | · | · |
llama- | bf16/fp8e4m3 | 1.08× | 0.0180 | flashinfervllm | 0.0193 0.0626 | 5.26 | · | · |
FusedQKNormRoPEFwd¶
qkv: [N, (num_heads + 2 * num_kv_heads) * D]q_weight, k_weight: [D]cos_sin_cache: [P, R]positions: [N], i64
qwen3-qkv: [64, 6144]q_weight, k_weight: [128]cos_sin_cache: [40960, 128]positions: [64], i64seq_lens=[64]dtype=bf16/bf168b- t64 qwen3-qkv: [8192, 6144]q_weight, k_weight: [128]cos_sin_cache: [40960, 128]positions: [8192], i64seq_lens=repeat(1024, 8)dtype=bf16/bf168b- t8192 qwen3-qkv: [4096, 9216]q_weight, k_weight: [128]cos_sin_cache: [40960, 128]positions: [4096], i64seq_lens=repeat(1024, 4)dtype=bf16/bf16235b- t4096 interleaved-qkv: [1550, 6144]q_weight, k_weight: [128]cos_sin_cache: [40960, 128]positions: [1550], i64seq_lens=[1000,537,13]rope_layout=interleaveddtype=f16/f16ragged
qkv: [N, (num_heads + 2 * num_kv_heads) * D]q_weight, k_weight: [D]cos_sin_cache: [P, R], f32positions: [N], i64
qwen3-qkv: [64, 6144]q_weight, k_weight: [128]cos_sin_cache: [40960, 128], f32positions: [64], i64seq_lens=[64]dtype=f16/f328b- t64 glm-qkv: [4096, 14336]q_weight, k_weight: [128]cos_sin_cache: [131072, 64], f32positions: [4096], i64seq_lens=repeat(1024, 4)dtype=bf16/f324.5- partial- rope interleaved-qkv: [1550, 6144]q_weight, k_weight: [128]cos_sin_cache: [40960, 128], f32positions: [1550], i64seq_lens=[1000,537,13]rope_layout=interleaveddtype=bf16/f32ragged
qkv: [N, (num_heads + 2 * num_kv_heads) * D]q_weight, k_weight: [D]cos_sin_cache: [P, R]positions: [3, N], i64
zero_centered=truemrope_section=[11,11,10]mrope_interleaved=truedtype=bf16/bf16
qwen3.6-qkv: [4096, 8192]q_weight, k_weight: [256]cos_sin_cache: [65536, 64]positions: [3, 4096], i64seq_lens=[4096]image=[32,32]27b- prefill qwen3.6-qkv: [64, 8192]q_weight, k_weight: [256]cos_sin_cache: [65536, 64]positions: [3, 64], i64seq_lens=repeat(1, 64)image=[]27b- decode qwen3.6-qkv: [4096, 5120]q_weight, k_weight: [256]cos_sin_cache: [65536, 64]positions: [3, 4096], i64seq_lens=[4096]image=[32,32]35b- a3b- prefill qwen3.6-qkv: [64, 5120]q_weight, k_weight: [256]cos_sin_cache: [65536, 64]positions: [3, 64], i64seq_lens=repeat(1, 64)image=[]35b- a3b- decode qwen3.8-qkv: [4096, 7168]q_weight, k_weight: [256]cos_sin_cache: [65536, 64]positions: [3, 4096], i64seq_lens=[4096]image=[32,32]flash- prefill qwen3.8-qkv: [64, 7168]q_weight, k_weight: [256]cos_sin_cache: [65536, 64]positions: [3, 64], i64seq_lens=repeat(1, 64)image=[]flash- decode
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
qwen3- | bf16/bf16 | 1.56× | 0.00211 | vllmtorch-compile | 0.0033 0.00752 | 1.09 | · | · |
qwen3- | bf16/bf16 | 2.16× | 0.0428 | vllmtorch-compile | 0.0922 0.1838 | 6.86 | · | · |
qwen3- | bf16/bf16 | 2.10× | 0.0390 | vllmtorch-compile | 0.0818 0.1585 | 6.4 | · | · |
interleaved- | f16/f16 | 1.53× | 0.00909 | vllmtorch-compile | 0.0139 0.0439 | 6.11 | · | · |
qwen3- | f16/f32 | 1.56× | 0.00211 | vllmtorch-compile | 0.0033 0.00698 | 1.09 | · | · |
glm- | bf16/f32 | 3.10× | 0.0631 | vllmtorch-compile | 0.1957 0.3280 | 4.76 | · | · |
interleaved- | bf16/f32 | 1.35× | 0.0103 | vllmtorch-compile | 0.0139 0.0458 | 5.41 | · | · |
qwen3.6- | bf16/bf16 | 3.70× | 0.0465 | torch-compilevllm | 0.1719 0.5119 | 3 | · | · |
qwen3.6- | bf16/bf16 | 5.23× | 0.00269 | torch-compilevllm | 0.0140 0.0493 | 0.811 | · | · |
qwen3.6- | bf16/bf16 | 4.75× | 0.0317 | torch-compilevllm | 0.1509 0.3485 | 2.82 | · | · |
qwen3.6- | bf16/bf16 | 5.22× | 0.00253 | torch-compilevllm | 0.0132 0.0461 | 0.554 | · | · |
qwen3.8- | bf16/bf16 | 4.85× | 0.0438 | torch-compilevllm | 0.2122 0.4831 | 2.96 | · | · |
qwen3.8- | bf16/bf16 | 5.39× | 0.00262 | torch-compilevllm | 0.0141 0.0484 | 0.771 | · | · |
RMSNormGatedFwd¶
x, z: [*B, N]weight: [N]
bias=Nonedtype=bf16/bf16/bf16
qwen3.6-x, z: [4096, 48, 128]weight: [128]27b- gdn- prefill qwen3.6-x, z: [64, 48, 128]weight: [128]27b- gdn- decode qwen3.6-x, z: [4096, 32, 128]weight: [128]35b- a3b- prefill qwen3.6-x, z: [64, 32, 128]weight: [128]35b- a3b- decode qwen3.8-x, z: [4096, 48, 128]weight: [128]activation=sigmoidflash- prefill qwen3.8-x, z: [64, 48, 128]weight: [128]activation=sigmoidflash- decode glm-x, z: [4096, 64, 128]weight: [128]activation=sigmoid5.3- flash- prefill glm-x, z: [64, 64, 128]weight: [128]activation=sigmoid5.3- flash- decode codestral-x, z: [4096, 8192]weight: [8192]group_size=1024norm_before_gate=falsemamba- 7b
x, z: [*B, N]weight: [N], f32
bias=Nonedtype=bf16/f32/bf16
qwen3-x, z: [4096, 32, 128]weight: [128], f32next- gdn- prefill mamba2-x, z: [4096, 5120]weight: [5120], f32group_size=5120norm_before_gate=false2.7b
x: [*B, N]weight, bias: [N]
ungated-x: [2048, 3000]weight, bias: [3000]eps=1e-05dtype=f32/f32/f32bias
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
qwen3.6- | bf16/bf16/bf16 | 1.08× | 0.0349 | torch-compileflavllmtorch-reftransformers | 0.0377 0.0389 0.0437 0.6214 0.6905 | 7.24 | · | · |
qwen3.6- | bf16/bf16/bf16 | 1.18× | 0.00234 | flavllmtorch-compiletorch-reftransformers | 0.00275 0.00294 0.00518 0.0288 0.0330 | 1.69 | · | · |
qwen3.6- | bf16/bf16/bf16 | 1.06× | 0.0236 | torch-compileflavllmtorch-reftransformers | 0.0251 0.0265 0.0297 0.4229 0.4693 | 7.14 | · | · |
qwen3.6- | bf16/bf16/bf16 | 1.28× | 0.00208 | flatorch-compilevllmtorch-reftransformers | 0.00266 0.00275 0.00282 0.0270 0.0314 | 1.26 | · | · |
qwen3.8- | bf16/bf16/bf16 | 1.12× | 0.0340 | flatorch-compilevllmtorch-ref | 0.0382 0.0405 0.0425 0.6213 | 6.69 | · | · |
qwen3.8- | bf16/bf16/bf16 | 1.18× | 0.0023 | flavllmtorch-compiletorch-ref | 0.00272 0.00294 0.00342 0.0289 | 1.54 | · | · |
glm- | bf16/bf16/bf16 | 1.05× | 0.0453 | torch-compileflavllmtorch-ref | 0.0474 0.0506 0.0566 0.8205 | 6.69 | · | · |
glm- | bf16/bf16/bf16 | 1.16× | 0.00243 | flavllmtorch-compiletorch-ref | 0.00282 0.0031 0.00387 0.0305 | 1.95 | · | · |
codestral- | bf16/bf16/bf16 | 1.14× | 0.0452 | torch-compilevllmtorch-ref | 0.0516 0.0524 0.7811 | 7.43 | · | · |
qwen3- | bf16/f32/bf16 | 1.09× | 0.0233 | torch-compileflavllmtorch-reftransformers | 0.0254 0.0265 0.0297 0.4216 0.4755 | 7.21 | · | · |
mamba2- | bf16/f32/bf16 | 1.64× | 0.0348 | vllmtorch-compiletorch-ref | 0.0570 0.0752 0.4970 | 6.03 | · | · |
ungated- | f32/f32/f32 | 1.16× | 0.0123 | torch-compilevllmtorch-ref | 0.0143 0.0153 0.0931 | 2.5 | · | · |
AdaLayerNormFwd¶
x, scale, shift: [*B, N]
dit-x, scale, shift: [1024, 1152]dtype=bf16, f32xl- 2 llama-x, scale, shift: [2048, 4096]dtype=bf168b- prefill llama-x, scale, shift: [1, 4096]dtype=bf168b- decode
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
dit- | bf16 | 1.51× | 0.00461 | torch-compiletorch-ref | 0.00694 0.0113 | 1.79 | · | · |
| f32 | 1.52× | 0.00589 | torch-compiletorch-ref | 0.00893 0.0146 | 1.4 | · | · | |
llama- | bf16 | 1.51× | 0.0159 | torch-compiletorch-ref | 0.0240 0.0409 | 3.68 | · | · |
llama- | bf16 | 1.56× | 0.00182 | torch-compiletorch-ref | 0.00285 0.0104 | 0.0157 | · | · |
AdaLayerNormZeroFwd¶
x, scale, shift, gate: [*B, N]
dit-x, scale, shift, gate: [1024, 1152]dtype=bf16, f32xl- 2 llama-x, scale, shift, gate: [2048, 4096]dtype=bf168b- prefill llama-x, scale, shift, gate: [1, 4096]dtype=bf168b- decode
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
dit- | bf16 | 1.44× | 0.00518 | torch-compiletorch-ref | 0.00749 0.0137 | 1.82 | · | · |
| f32 | 1.40× | 0.00682 | torch-compiletorch-ref | 0.00954 0.0182 | 1.38 | · | · | |
llama- | bf16 | 1.30× | 0.0196 | torch-compiletorch-ref | 0.0254 0.0531 | 3.43 | · | · |
llama- | bf16 | 1.46× | 0.00202 | torch-compiletorch-ref | 0.00294 0.0117 | 0.0163 | · | · |
BatchNormFwd¶
input: [B, C, *L]running_mean, running_var, weight, bias: [C], f32
resnet-input: [32, 64]running_mean, running_var, weight, bias: [64], f32training=truedtype=f16fc resnet-input: [8, 64, 32, 32]running_mean, running_var, weight, bias: [64], f32training=truedtype=bf16stage1 resnet-input: [4, 128, 32, 32]running_mean, running_var, weight, bias: [128], f32training=truedtype=f16stage2 resnet-input: [4, 256, 28, 28]running_mean, running_var, weight, bias: [256], f32training=truedtype=f16, f32stage3 large-input: [4, 128, 1024, 1024]running_mean, running_var, weight, bias: [128], f32training=truedtype=f16spatial resnet-input: [4, 256, 28, 28]running_mean, running_var, weight, bias: [256], f32dtype=f16stage3- eval
input: [B, C, *L]
resnet-input: [8, 64, 56, 56]training=truerunning_mean=Nonerunning_var=Nonedtype=bf16stem
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
resnet- | f16 | 1.16× | 0.00176 | torch-compileflaggemstorch-cudnn | 0.00205 0.00733 0.0145 | 0.00815 | · | · |
resnet- | bf16 | 1.64× | 0.0025 | torch-compileflaggemstorch-cudnn | 0.0041 0.0133 0.0149 | 1.47 | · | · |
resnet- | f16 | 1.46× | 0.00224 | torch-compiletorch-cudnnflaggems | 0.00327 0.00512 0.0112 | 1.64 | · | · |
resnet- | f16 | 1.68× | 0.00272 | torch-compiletorch-cudnnflaggems | 0.00458 0.0057 0.0127 | 2.07 | · | · |
| f32 | 1.59× | 0.00317 | torch-compiletorch-cudnnflaggems | 0.00502 0.00682 0.00714 | 1.77 | · | · | |
large- | f16 | 1.00× | 0.7451 | torch-compiletorch-cudnnflaggems | 0.7439 3.2584 4.5604 | 5.04 | · | · |
resnet- | f16 | 1.68× | 0.00234 | torch-cudnntorch-compileflaggems | 0.00392 0.00458 0.00915 | 1.37 | · | · |
resnet- | bf16 | 2.14× | 0.00451 | torch-compiletorch-cudnn | 0.00963 0.0361 | 1.78 | · | · |
BatchNormBwd¶
doutput, input: [B, C, *L]save_mean, save_invstd: [C], f32
resnet-doutput, input: [32, 64]save_mean, save_invstd: [64], f32dtype=f16fc
doutput, input: [B, C, *L]save_mean, save_invstd, weight: [C], f32
resnet-doutput, input: [8, 64, 32, 32]save_mean, save_invstd, weight: [64], f32dtype=bf16stage1 resnet-doutput, input: [4, 128, 32, 32]save_mean, save_invstd, weight: [128], f32dtype=f16stage2 resnet-doutput, input: [4, 256, 28, 28]save_mean, save_invstd, weight: [256], f32dtype=f16, f32stage3 large-doutput, input: [4, 128, 1024, 1024]save_mean, save_invstd, weight: [128], f32dtype=f16spatial
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
resnet- | f16 | 7.86× | 0.00182 | torch-native-batch-normtorch-autograd | 0.0143 0.0254 | 0.0101 | · | · |
resnet- | bf16 | 6.91× | 0.00291 | torch-native-batch-normtorch-autograd | 0.0201 0.0285 | 1.62 | · | · |
resnet- | f16 | 6.49× | 0.00253 | torch-native-batch-normtorch-autograd | 0.0164 0.0247 | 1.87 | · | · |
resnet- | f16 | 5.10× | 0.00358 | torch-native-batch-normtorch-autograd | 0.0183 0.0266 | 2.02 | · | · |
| f32 | 2.05× | 0.00451 | torch-native-batch-normtorch-autograd | 0.00925 0.0175 | 1.6 | · | · | |
large- | f16 | 10.49× | 1.1960 | torch-native-batch-normtorch-autograd | 12.5490 14.1794 | 4.04 | · | · |
GroupNormFwd¶
input: [B, C, *L]weight, bias: [C]
image-input: [8, 128, 32, 32]weight, bias: [128]num_groups=32dtype=bf16affine wider-input: [4, 256, 28, 28]weight, bias: [256]num_groups=32dtype=f16, f32channel- affine tail-input: [4, 128, 30, 30]weight, bias: [128]num_groups=16dtype=f16spatial- affine
input: [B, C, *L]
imageinput: [8, 128, 32, 32]num_groups=32dtype=bf16wider-input: [4, 256, 28, 28]num_groups=32dtype=f16, f32channel tail-input: [4, 128, 30, 30]num_groups=16dtype=f16spatial
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
image- | bf16 | 1.23× | 0.00288 | flaggemstorch-compiletorch | 0.00355 0.00467 0.0149 | 2.55 | · | · |
wider- | f16 | 1.31× | 0.00269 | flaggemstorch-compiletorch | 0.00352 0.00387 0.0161 | 2.09 | · | · |
| f32 | 1.19× | 0.00352 | flaggemstorch-compiletorch | 0.00419 0.00442 0.0158 | 1.6 | · | · | |
tail- | f16 | 1.49× | 0.00269 | torch-compileflaggemstorch | 0.004 0.00435 0.0152 | 1.2 | · | · |
image | bf16 | 1.16× | 0.00281 | flaggemstorch-compiletorch | 0.00326 0.00384 0.0128 | 1.86 | · | · |
wider- | f16 | 1.23× | 0.00259 | torch-compileflaggemstorch | 0.0032 0.0033 0.0139 | 1.55 | · | · |
| f32 | 1.14× | 0.00336 | flaggemstorch-compiletorch | 0.00384 0.00397 0.0135 | 1.19 | · | · | |
tail- | f16 | 1.38× | 0.00246 | torch-compileflaggemstorch | 0.00339 0.00387 0.0135 | 0.935 | · | · |
InstanceNormFwd¶
input: [B, C, *L]weight, bias: [C]
image-input: [8, 128, 32, 32]weight, bias: [128]dtype=bf16affine wider-input: [4, 256, 28, 28]weight, bias: [256]dtype=f16, f32channel- affine tail-input: [4, 64, 30, 30]weight, bias: [64]dtype=f16spatial- affine
input: [B, C, *L]
imageinput: [8, 128, 32, 32]dtype=bf16wider-input: [4, 256, 28, 28]dtype=f16, f32channel tail-input: [4, 64, 30, 30]dtype=f16spatial
input: [B, C, *L]running_mean, running_var: [C], f32
image-input: [8, 128, 32, 32]running_mean, running_var: [128], f32dtype=f16track- stats
input: [B, C, *L]running_mean, running_var: [C], f32weight, bias: [C]
image-input: [8, 128, 32, 32]running_mean, running_var: [128], f32weight, bias: [128]use_input_stats=falsedtype=f16eval
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
image- | bf16 | 1.10× | 0.00246 | torch-compileflaggemstorch | 0.00272 0.00336 0.0206 | 2.98 | · | · |
wider- | f16 | 1.18× | 0.00227 | torch-compileflaggemstorch | 0.00269 0.00336 0.0206 | 2.47 | · | · |
| f32 | 1.09× | 0.00288 | torch-compileflaggemstorch | 0.00315 0.00371 0.0188 | 1.95 | · | · | |
tail- | f16 | 1.08× | 0.00202 | torch-compileflaggemstorch | 0.00218 0.00256 0.0114 | 0.8 | · | · |
image | bf16 | 1.08× | 0.0024 | torch-compileflaggemstorch | 0.00259 0.00301 0.0168 | 2.18 | · | · |
wider- | f16 | 1.11× | 0.00224 | torch-compileflaggemstorch | 0.0025 0.00294 0.0160 | 1.79 | · | · |
| f32 | 1.04× | 0.00285 | torch-compileflaggemstorch | 0.00298 0.0033 0.0160 | 1.41 | · | · | |
tail- | f16 | 1.05× | 0.00195 | torch-compileflaggemstorch | 0.00205 0.0024 0.00816 | 0.59 | · | · |
image- | f16 | 1.03× | 0.00246 | torch-compiletorch | 0.00253 0.0376 | 2.13 | · | · |
image- | f16 | 1.52× | 0.0024 | torch-compiletorch | 0.00365 0.0223 | 1.75 | · | · |