Skip to content

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-8b-prefillinput: [2048, 4096]weight, bias: [4096]
  • llama-8b-decodeinput: [1, 4096]weight, bias: [4096]
  • llama-70b-prefillinput: [2048, 8192]weight, bias: [8192]
  • llama-70b-decodeinput: [1, 8192]weight, bias: [8192]
  • llama-405b-prefillinput: [2048, 16384]weight, bias: [16384]
  • llama-405b-decodeinput: [1, 16384]weight, bias: [16384]

input: [*B, *normalized_shape]weight: [*normalized_shape]

  • llama-13b-prefillinput: [2048, 5120]weight: [5120]dtype=f32

input: [*B, *normalized_shape]

  • dit-xl-2input: [1024, 1152]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
llama-8b-prefillbf161.14×0.0102flaggems
torch
flashinfer
quack
torch-compile
0.0116
0.0204
0.0206
0.0226
0.0237
5.77··
llama-8b-decodebf161.31×0.00186torch-compile
flaggems
flashinfer
quack
torch
0.00243
0.00275
0.0031
0.0100
0.0112
0.0154··
llama-70b-prefillbf161.40×0.0181flaggems
torch-compile
quack
torch
flashinfer
0.0252
0.0321
0.0370
0.0392
0.0448
6.49··
llama-70b-decodebf162.02×0.00198torch-compile
flashinfer
flaggems
quack
torch
0.004
0.0041
0.00435
0.0106
0.0201
0.0289··
llama-405b-prefillbf161.23×0.0376flaggems
torch-compile
torch
flashinfer
quack
0.0461
0.0688
0.0737
0.0750
0.6694
6.25··
llama-405b-decodebf162.45×0.00221torch-compile
flashinfer
flaggems
torch
quack
0.00541
0.00602
0.00653
0.0390
0.0603
0.0519··
llama-13b-prefillf321.25×0.0194torch-compile
quack
torch
0.0242
0.0248
0.0344
3.24··
dit-xl-2bf161.22×0.00253quack
torch
torch-compile
0.00307
0.00589
0.00603
2.33··

FusedAddLayerNormFwd

x, residual: [*B, N]weight, bias: [N]

  • llama-8b-prefillx, residual: [2048, 4096]weight, bias: [4096]dtype=bf16
  • llama-8b-decodex, residual: [1, 4096]weight, bias: [4096]dtype=bf16
  • llama-70b-prefillx, residual: [2048, 8192]weight, bias: [8192]dtype=bf16
  • llama-70b-decodex, residual: [1, 8192]weight, bias: [8192]dtype=bf16
  • llama-13b-prefillx, residual: [2048, 5120]weight, bias: [5120]dtype=f32
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
llama-8b-prefillbf161.51×0.0163flash-attn
torch-compile
torch-ref
quack
0.0246
0.0264
0.0324
0.0335
4.12··
llama-8b-decodebf161.69×0.00205torch-compile
flash-attn
torch-ref
quack
0.00346
0.00454
0.0105
0.0111
0.016··
llama-70b-prefillbf161.37×0.0322torch-compile
flash-attn
quack
torch-ref
0.0442
0.0478
0.0615
0.0638
4.17··
llama-70b-decodebf162.48×0.00214flash-attn
torch-compile
quack
torch-ref
0.00531
0.00578
0.0117
0.0178
0.0306··
llama-13b-prefillf321.11×0.0391torch-compile
flash-attn
quack
torch-ref
0.0435
0.0553
0.0556
0.0690
2.15··

RMSNormFwd

x: [*B, *normalized_shape]weight: [*normalized_shape]

dtype=bf16

  • llama-8b-prefillx: [2048, 4096]weight: [4096]eps=1e-06
  • llama-8b-decodex: [1, 4096]weight: [4096]eps=1e-06
  • llama-70b-prefillx: [2048, 8192]weight: [8192]eps=1e-06
  • llama-70b-decodex: [1, 8192]weight: [8192]eps=1e-06
  • llama-405b-prefillx: [2048, 16384]weight: [16384]eps=1e-06
  • llama-405b-decodex: [1, 16384]weight: [16384]eps=1e-06
  • llama-13b-prefillx: [2048, 5120]weight: [5120]
  • quack-throughput-256x: [32768, 256]weight: [256]eps=1e-06
  • quack-throughput-512x: [32768, 512]weight: [512]eps=1e-06
  • quack-throughput-1024x: [32768, 1024]weight: [1024]eps=1e-06
  • quack-throughput-2048x: [32768, 2048]weight: [2048]eps=1e-06
  • quack-throughput-4096x: [32768, 4096]weight: [4096]eps=1e-06
  • quack-throughput-8192x: [32768, 8192]weight: [8192]eps=1e-06
  • quack-throughput-16384x: [32768, 16384]weight: [16384]eps=1e-06
  • quack-throughput-32768x: [32768, 32768]weight: [32768]eps=1e-06
  • quack-throughput-65536x: [32768, 65536]weight: [65536]eps=1e-06
  • quack-throughput-131072x: [16384, 131072]weight: [131072]eps=1e-06
  • quack-throughput-262144x: [8192, 262144]weight: [262144]eps=1e-06
  • qwen3-8b-qk-norm-decodex: [1, 32, 128]weight: [128]eps=1e-06
  • qwen3.6-27b-prefillx: [4096, 5120]weight: [5120]eps=1e-06zero_centered=true
  • qwen3.6-27b-decodex: [64, 5120]weight: [5120]eps=1e-06zero_centered=true
  • qwen3.6-27b-q-normx: [4096, 24, 256]weight: [256]eps=1e-06zero_centered=true
  • qwen3.6-35b-a3b-prefillx: [4096, 2048]weight: [2048]eps=1e-06zero_centered=true
  • qwen3.6-35b-a3b-decodex: [64, 2048]weight: [2048]eps=1e-06zero_centered=true
  • qwen3.6-35b-a3b-q-normx: [4096, 16, 256]weight: [256]eps=1e-06zero_centered=true
  • qwen3.8-flash-hc-decodex: [64, 10240]weight: [10240]eps=1e-06group_size=2560zero_centered=true
  • qwen3.8-flash-hc-pf4kx: [4096, 10240]weight: [10240]eps=1e-06group_size=2560zero_centered=true
  • qwen3.8-flash-hc-pf32kx: [32768, 10240]weight: [10240]eps=1e-06group_size=2560zero_centered=true

x: [*B, *normalized_shape]

  • qk-norm-headx: [4, 2048, 128]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
llama-8b-prefillbf161.06×0.00925flashinfer
flaggems
quack
vllm
torch-compile
torch-ref
0.00976
0.0104
0.0106
0.0109
0.0113
0.0128
3.63··
llama-8b-decodebf161.15×0.00189quack
flashinfer
torch-compile
vllm
flaggems
torch-ref
0.00218
0.00218
0.0025
0.00269
0.00294
0.00851
0.00868··
llama-70b-prefillbf161.02×0.0169flashinfer
quack
flaggems
torch-compile
vllm
torch-ref
0.0171
0.0176
0.0177
0.0179
0.0189
0.0271
3.98··
llama-70b-decodebf161.17×0.00221flashinfer
quack
vllm
torch-compile
flaggems
torch-ref
0.00259
0.00272
0.00314
0.00352
0.00416
0.0155
0.0148··
llama-405b-prefillbf161.02×0.0322torch-compile
flashinfer
quack
flaggems
vllm
torch-ref
0.0327
0.0343
0.0348
0.0373
0.0443
0.0540
4.17··
llama-405b-decodebf161.26×0.00278quack
flashinfer
vllm
torch-compile
flaggems
torch-ref
0.00352
0.00352
0.00442
0.00451
0.00522
0.0291
0.0235··
llama-13b-prefillbf161.05×0.0112flashinfer
flaggems
vllm
torch-compile
quack
torch-ref
0.0118
0.0120
0.0128
0.0132
0.0132
0.0159
3.73··
quack-throughput-256bf161.01×0.0087torch-compile
quack
flashinfer
vllm
flaggems
torch-ref
0.0088
0.00915
0.0120
0.0226
0.0231
0.0318
3.86··
quack-throughput-512bf161.01×0.0159flashinfer
torch-compile
quack
flaggems
vllm
torch-ref
0.0160
0.0163
0.0167
0.0261
0.0276
0.0375
4.22··
quack-throughput-1024bf161.02×0.0306flashinfer
quack
torch-compile
flaggems
vllm
torch-ref
0.0313
0.0314
0.0323
0.0355
0.0430
0.0518
4.39··
quack-throughput-2048bf161.01×0.0629flaggems
quack
flashinfer
torch-compile
torch-ref
vllm
0.0637
0.0642
0.0652
0.0832
0.0851
0.0853
4.27··
quack-throughput-4096bf161.01×0.1273quack
flashinfer
flaggems
vllm
torch-ref
torch-compile
0.1284
0.1292
0.1301
0.1441
0.1605
0.1617
4.22··
quack-throughput-8192bf161.01×0.2472torch-compile
quack
flashinfer
flaggems
vllm
torch-ref
0.2508
0.2545
0.2598
0.2781
0.2785
0.4075
4.34··
quack-throughput-16384bf161.02×0.4972torch-compile
flashinfer
quack
flaggems
vllm
torch-ref
0.5076
0.5177
0.5184
0.5467
0.7206
0.8596
4.32··
quack-throughput-32768bf161.00×0.9974torch-compile
quack
flaggems
flashinfer
vllm
torch-ref
0.9937
1.0338
1.3127
1.4156
1.5082
1.6928
4.31··
quack-throughput-65536bf161.02×2.1541quack
flaggems
torch-compile
vllm
torch-ref
flashinfer
2.2048
2.6424
2.9306
3.0569
3.3384
40.1028
3.99··
quack-throughput-131072bf161.08×2.1083quack
flaggems
torch-compile
vllm
torch-ref
flashinfer
2.2844
2.8997
3.0968
3.1256
3.3177
4.0278
4.07··
quack-throughput-262144bf161.16×2.1561quack
flaggems
vllm
torch-compile
torch-ref
flashinfer
2.4920
3.0581
3.1214
3.1364
3.3202
44.7803
3.98··
qwen3-8b-qk-norm-decodebf161.02×0.00144quack
torch-ref
torch-compile
0.00147
0.0023
0.0023
0.0114··
qwen3.6-27b-prefillbf161.07×0.0205flashinfer
flaggems
torch-compile
transformers
quack
torch-ref
vllm
0.0220
0.0233
0.0247
0.0247
0.0275
0.1681
0.3241
4.1··
qwen3.6-27b-decodebf161.28×0.00218quack
flashinfer
torch-compile
transformers
flaggems
torch-ref
vllm
0.00278
0.00288
0.00301
0.00302
0.00394
0.0160
0.0290
0.605··
qwen3.6-27b-q-normbf161.04×0.0229torch-compile
transformers
quack
flashinfer
flaggems
torch-ref
vllm
0.0237
0.0237
0.0245
0.0321
0.0663
0.2467
0.3930
4.4··
qwen3.6-35b-a3b-prefillbf161.16×0.00976flaggems
flashinfer
torch-compile
transformers
quack
torch-ref
vllm
0.0113
0.0113
0.0116
0.0116
0.0122
0.0651
0.1352
3.44··
qwen3.6-35b-a3b-decodebf161.17×0.00186transformers
torch-compile
flaggems
flashinfer
quack
torch-ref
vllm
0.00218
0.00221
0.0023
0.00272
0.00426
0.0129
0.0213
0.284··
qwen3.6-35b-a3b-q-normbf161.01×0.0158transformers
torch-compile
quack
flashinfer
flaggems
torch-ref
vllm
0.0159
0.0160
0.0167
0.0220
0.0442
0.1675
0.2688
4.24··
qwen3.8-flash-hc-decodebf161.14×0.00224torch-compile
torch-ref
0.00256
0.0182
1.17··
qwen3.8-flash-hc-pf4kbf161.83×0.0384torch-compile
torch-ref
0.0703
0.4405
4.37··
qwen3.8-flash-hc-pf32kbf161.77×0.3129torch-compile
torch-ref
0.5551
3.5327
4.29··
qk-norm-headbf161.06×0.00221quack
torch-compile
torch-ref
0.00234
0.0065
0.00858
1.42··

FusedAddRMSNormFwd

input, residual: [*B, N]weight: [N]

dtype=bf16

  • llama-8b-prefillinput, residual: [2048, 4096]weight: [4096]
  • llama-8b-decodeinput, residual: [1, 4096]weight: [4096]
  • llama-70b-prefillinput, residual: [2048, 8192]weight: [8192]
  • llama-70b-decodeinput, residual: [1, 8192]weight: [8192]
  • llama-405b-prefillinput, residual: [2048, 16384]weight: [16384]
  • llama-405b-decodeinput, residual: [1, 16384]weight: [16384]
  • llama-13b-prefillinput, residual: [2048, 5120]weight: [5120]
  • qwen3.6-27b-prefillinput, residual: [4096, 5120]weight: [5120]zero_centered=true
  • qwen3.6-27b-decodeinput, residual: [64, 5120]weight: [5120]zero_centered=true
  • qwen3.6-35b-a3b-prefillinput, residual: [4096, 2048]weight: [2048]zero_centered=true
  • qwen3.6-35b-a3b-decodeinput, residual: [64, 2048]weight: [2048]zero_centered=true
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
llama-8b-prefillbf161.03×0.0158torch-compile
flashinfer
vllm
torch-ref
0.0163
0.0163
0.0168
0.0232
2.66··
llama-8b-decodebf161.23×0.00198flashinfer
vllm
torch-compile
torch-ref
0.00243
0.00294
0.00314
0.0079
0.0103··
llama-70b-prefillbf161.03×0.0317flashinfer
torch-compile
vllm
torch-ref
0.0325
0.0332
0.0340
0.0479
2.65··
llama-70b-decodebf161.30×0.00221flashinfer
vllm
torch-compile
torch-ref
0.00288
0.00349
0.00538
0.0133
0.0186··
llama-405b-prefillbf161.07×0.0646flashinfer
torch-compile
vllm
torch-ref
0.0691
0.0706
0.0739
0.1001
2.6··
llama-405b-decodebf161.54×0.00285flashinfer
vllm
torch-compile
torch-ref
0.00439
0.00502
0.00595
0.0240
0.0288··
llama-13b-prefillbf161.05×0.0195flashinfer
torch-compile
vllm
torch-ref
0.0204
0.0207
0.0208
0.0281
2.69··
qwen3.6-27b-prefillbf161.05×0.0386flashinfer
quack
torch-compile
torch-ref
vllm
0.0405
0.0406
0.0468
0.1985
0.4865
2.72··
qwen3.6-27b-decodebf161.30×0.00262quack
flashinfer
torch-compile
torch-ref
vllm
0.00342
0.00349
0.00408
0.0170
0.0368
0.626··
qwen3.6-35b-a3b-prefillbf161.01×0.0160flashinfer
torch-compile
quack
torch-ref
vllm
0.0162
0.0168
0.0169
0.0752
0.2032
2.62··
qwen3.6-35b-a3b-decodebf161.14×0.00205torch-compile
quack
flashinfer
torch-ref
vllm
0.00234
0.00272
0.00282
0.0138
0.0281
0.321··

FusedAddRMSNormPerTokenQuantFwd

input, residual: [*B, N]weight: [N]

  • llama-8b-prefillinput, residual: [4096, 4096]weight: [4096]dtype=bf16/fp8e4m3
  • llama-8b-prefill-i8input, residual: [4096, 4096]weight: [4096]dtype=bf16/i8
  • llama-8b-decode-b1input, residual: [1, 4096]weight: [4096]dtype=bf16/fp8e4m3
  • llama-8b-decode-b64input, residual: [64, 4096]weight: [4096]dtype=bf16/fp8e4m3
  • llama-8b-decode-b256input, residual: [256, 4096]weight: [4096]dtype=bf16/fp8e4m3
  • llama-70b-prefillinput, residual: [4096, 8192]weight: [8192]dtype=bf16/fp8e4m3
  • llama-70b-prefill-i8input, residual: [4096, 8192]weight: [8192]dtype=f16/i8
  • llama-70b-decode-b1input, residual: [1, 8192]weight: [8192]dtype=bf16/fp8e4m3
  • llama-70b-decode-b64input, residual: [64, 8192]weight: [8192]dtype=bf16/fp8e4m3
  • llama-70b-decode-b256input, residual: [256, 8192]weight: [8192]dtype=bf16/fp8e4m3
  • clamped-amaxinput, residual: [4096, 4096]weight: [4096]scale_ub=2dtype=bf16/fp8e4m3
  • llama-13b-prefillinput, residual: [2048, 5120]weight: [5120]dtype=bf16/fp8e4m3
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
llama-8b-prefillbf16/fp8e4m31.07×0.0268flashinfer
vllm
0.0288
0.1038
5.64··
llama-8b-prefill-i8bf16/i83.03×0.0274vllm0.08316.12··
llama-8b-decode-b1bf16/fp8e4m31.13×0.00224flashinfer
vllm
0.00253
0.00518
0.0165··
llama-8b-decode-b64bf16/fp8e4m31.32×0.00237flashinfer
vllm
0.00314
0.0055
0.996··
llama-8b-decode-b256bf16/fp8e4m31.11×0.00362flashinfer
vllm
0.004
0.00822
2.61··
llama-70b-prefillbf16/fp8e4m31.06×0.0544flashinfer
vllm
0.0576
0.1624
5.55··
llama-70b-prefill-i8f16/i82.12×0.0556vllm0.11806.04··
llama-70b-decode-b1bf16/fp8e4m31.22×0.00262flashinfer
vllm
0.0032
0.00752
0.0281··
llama-70b-decode-b64bf16/fp8e4m31.09×0.00304flashinfer
vllm
0.00333
0.0079
1.55··
llama-70b-decode-b256bf16/fp8e4m31.02×0.00541flashinfer
vllm
0.00554
0.0124
3.49··
clamped-amaxbf16/fp8e4m31.07×0.0268flashinfer
vllm
0.0288
0.1037
5.62··
llama-13b-prefillbf16/fp8e4m31.08×0.0180flashinfer
vllm
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-8b-t64qkv: [64, 6144]q_weight, k_weight: [128]cos_sin_cache: [40960, 128]positions: [64], i64seq_lens=[64]dtype=bf16/bf16
  • qwen3-8b-t8192qkv: [8192, 6144]q_weight, k_weight: [128]cos_sin_cache: [40960, 128]positions: [8192], i64seq_lens=repeat(1024, 8)dtype=bf16/bf16
  • qwen3-235b-t4096qkv: [4096, 9216]q_weight, k_weight: [128]cos_sin_cache: [40960, 128]positions: [4096], i64seq_lens=repeat(1024, 4)dtype=bf16/bf16
  • interleaved-raggedqkv: [1550, 6144]q_weight, k_weight: [128]cos_sin_cache: [40960, 128]positions: [1550], i64seq_lens=[1000,537,13]rope_layout=interleaveddtype=f16/f16

qkv: [N, (num_heads + 2 * num_kv_heads) * D]q_weight, k_weight: [D]cos_sin_cache: [P, R], f32positions: [N], i64

  • qwen3-8b-t64qkv: [64, 6144]q_weight, k_weight: [128]cos_sin_cache: [40960, 128], f32positions: [64], i64seq_lens=[64]dtype=f16/f32
  • glm-4.5-partial-ropeqkv: [4096, 14336]q_weight, k_weight: [128]cos_sin_cache: [131072, 64], f32positions: [4096], i64seq_lens=repeat(1024, 4)dtype=bf16/f32
  • interleaved-raggedqkv: [1550, 6144]q_weight, k_weight: [128]cos_sin_cache: [40960, 128], f32positions: [1550], i64seq_lens=[1000,537,13]rope_layout=interleaveddtype=bf16/f32

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-27b-prefillqkv: [4096, 8192]q_weight, k_weight: [256]cos_sin_cache: [65536, 64]positions: [3, 4096], i64seq_lens=[4096]image=[32,32]
  • qwen3.6-27b-decodeqkv: [64, 8192]q_weight, k_weight: [256]cos_sin_cache: [65536, 64]positions: [3, 64], i64seq_lens=repeat(1, 64)image=[]
  • qwen3.6-35b-a3b-prefillqkv: [4096, 5120]q_weight, k_weight: [256]cos_sin_cache: [65536, 64]positions: [3, 4096], i64seq_lens=[4096]image=[32,32]
  • qwen3.6-35b-a3b-decodeqkv: [64, 5120]q_weight, k_weight: [256]cos_sin_cache: [65536, 64]positions: [3, 64], i64seq_lens=repeat(1, 64)image=[]
  • qwen3.8-flash-prefillqkv: [4096, 7168]q_weight, k_weight: [256]cos_sin_cache: [65536, 64]positions: [3, 4096], i64seq_lens=[4096]image=[32,32]
  • qwen3.8-flash-decodeqkv: [64, 7168]q_weight, k_weight: [256]cos_sin_cache: [65536, 64]positions: [3, 64], i64seq_lens=repeat(1, 64)image=[]
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
qwen3-8b-t64bf16/bf161.56×0.00211vllm
torch-compile
0.0033
0.00752
1.09··
qwen3-8b-t8192bf16/bf162.16×0.0428vllm
torch-compile
0.0922
0.1838
6.86··
qwen3-235b-t4096bf16/bf162.10×0.0390vllm
torch-compile
0.0818
0.1585
6.4··
interleaved-raggedf16/f161.53×0.00909vllm
torch-compile
0.0139
0.0439
6.11··
qwen3-8b-t64f16/f321.56×0.00211vllm
torch-compile
0.0033
0.00698
1.09··
glm-4.5-partial-ropebf16/f323.10×0.0631vllm
torch-compile
0.1957
0.3280
4.76··
interleaved-raggedbf16/f321.35×0.0103vllm
torch-compile
0.0139
0.0458
5.41··
qwen3.6-27b-prefillbf16/bf163.70×0.0465torch-compile
vllm
0.1719
0.5119
3··
qwen3.6-27b-decodebf16/bf165.23×0.00269torch-compile
vllm
0.0140
0.0493
0.811··
qwen3.6-35b-a3b-prefillbf16/bf164.75×0.0317torch-compile
vllm
0.1509
0.3485
2.82··
qwen3.6-35b-a3b-decodebf16/bf165.22×0.00253torch-compile
vllm
0.0132
0.0461
0.554··
qwen3.8-flash-prefillbf16/bf164.85×0.0438torch-compile
vllm
0.2122
0.4831
2.96··
qwen3.8-flash-decodebf16/bf165.39×0.00262torch-compile
vllm
0.0141
0.0484
0.771··

RMSNormGatedFwd

x, z: [*B, N]weight: [N]

bias=Nonedtype=bf16/bf16/bf16

  • qwen3.6-27b-gdn-prefillx, z: [4096, 48, 128]weight: [128]
  • qwen3.6-27b-gdn-decodex, z: [64, 48, 128]weight: [128]
  • qwen3.6-35b-a3b-prefillx, z: [4096, 32, 128]weight: [128]
  • qwen3.6-35b-a3b-decodex, z: [64, 32, 128]weight: [128]
  • qwen3.8-flash-prefillx, z: [4096, 48, 128]weight: [128]activation=sigmoid
  • qwen3.8-flash-decodex, z: [64, 48, 128]weight: [128]activation=sigmoid
  • glm-5.3-flash-prefillx, z: [4096, 64, 128]weight: [128]activation=sigmoid
  • glm-5.3-flash-decodex, z: [64, 64, 128]weight: [128]activation=sigmoid
  • codestral-mamba-7bx, z: [4096, 8192]weight: [8192]group_size=1024norm_before_gate=false

x, z: [*B, N]weight: [N], f32

bias=Nonedtype=bf16/f32/bf16

  • qwen3-next-gdn-prefillx, z: [4096, 32, 128]weight: [128], f32
  • mamba2-2.7bx, z: [4096, 5120]weight: [5120], f32group_size=5120norm_before_gate=false

x: [*B, N]weight, bias: [N]

  • ungated-biasx: [2048, 3000]weight, bias: [3000]eps=1e-05dtype=f32/f32/f32
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
qwen3.6-27b-gdn-prefillbf16/bf16/bf161.08×0.0349torch-compile
fla
vllm
torch-ref
transformers
0.0377
0.0389
0.0437
0.6214
0.6905
7.24··
qwen3.6-27b-gdn-decodebf16/bf16/bf161.18×0.00234fla
vllm
torch-compile
torch-ref
transformers
0.00275
0.00294
0.00518
0.0288
0.0330
1.69··
qwen3.6-35b-a3b-prefillbf16/bf16/bf161.06×0.0236torch-compile
fla
vllm
torch-ref
transformers
0.0251
0.0265
0.0297
0.4229
0.4693
7.14··
qwen3.6-35b-a3b-decodebf16/bf16/bf161.28×0.00208fla
torch-compile
vllm
torch-ref
transformers
0.00266
0.00275
0.00282
0.0270
0.0314
1.26··
qwen3.8-flash-prefillbf16/bf16/bf161.12×0.0340fla
torch-compile
vllm
torch-ref
0.0382
0.0405
0.0425
0.6213
6.69··
qwen3.8-flash-decodebf16/bf16/bf161.18×0.0023fla
vllm
torch-compile
torch-ref
0.00272
0.00294
0.00342
0.0289
1.54··
glm-5.3-flash-prefillbf16/bf16/bf161.05×0.0453torch-compile
fla
vllm
torch-ref
0.0474
0.0506
0.0566
0.8205
6.69··
glm-5.3-flash-decodebf16/bf16/bf161.16×0.00243fla
vllm
torch-compile
torch-ref
0.00282
0.0031
0.00387
0.0305
1.95··
codestral-mamba-7bbf16/bf16/bf161.14×0.0452torch-compile
vllm
torch-ref
0.0516
0.0524
0.7811
7.43··
qwen3-next-gdn-prefillbf16/f32/bf161.09×0.0233torch-compile
fla
vllm
torch-ref
transformers
0.0254
0.0265
0.0297
0.4216
0.4755
7.21··
mamba2-2.7bbf16/f32/bf161.64×0.0348vllm
torch-compile
torch-ref
0.0570
0.0752
0.4970
6.03··
ungated-biasf32/f32/f321.16×0.0123torch-compile
vllm
torch-ref
0.0143
0.0153
0.0931
2.5··

AdaLayerNormFwd

x, scale, shift: [*B, N]

  • dit-xl-2x, scale, shift: [1024, 1152]dtype=bf16, f32
  • llama-8b-prefillx, scale, shift: [2048, 4096]dtype=bf16
  • llama-8b-decodex, scale, shift: [1, 4096]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
dit-xl-2bf161.51×0.00461torch-compile
torch-ref
0.00694
0.0113
1.79··
f321.52×0.00589torch-compile
torch-ref
0.00893
0.0146
1.4··
llama-8b-prefillbf161.51×0.0159torch-compile
torch-ref
0.0240
0.0409
3.68··
llama-8b-decodebf161.56×0.00182torch-compile
torch-ref
0.00285
0.0104
0.0157··

AdaLayerNormZeroFwd

x, scale, shift, gate: [*B, N]

  • dit-xl-2x, scale, shift, gate: [1024, 1152]dtype=bf16, f32
  • llama-8b-prefillx, scale, shift, gate: [2048, 4096]dtype=bf16
  • llama-8b-decodex, scale, shift, gate: [1, 4096]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
dit-xl-2bf161.44×0.00518torch-compile
torch-ref
0.00749
0.0137
1.82··
f321.40×0.00682torch-compile
torch-ref
0.00954
0.0182
1.38··
llama-8b-prefillbf161.30×0.0196torch-compile
torch-ref
0.0254
0.0531
3.43··
llama-8b-decodebf161.46×0.00202torch-compile
torch-ref
0.00294
0.0117
0.0163··

BatchNormFwd

input: [B, C, *L]running_mean, running_var, weight, bias: [C], f32

  • resnet-fcinput: [32, 64]running_mean, running_var, weight, bias: [64], f32training=truedtype=f16
  • resnet-stage1input: [8, 64, 32, 32]running_mean, running_var, weight, bias: [64], f32training=truedtype=bf16
  • resnet-stage2input: [4, 128, 32, 32]running_mean, running_var, weight, bias: [128], f32training=truedtype=f16
  • resnet-stage3input: [4, 256, 28, 28]running_mean, running_var, weight, bias: [256], f32training=truedtype=f16, f32
  • large-spatialinput: [4, 128, 1024, 1024]running_mean, running_var, weight, bias: [128], f32training=truedtype=f16
  • resnet-stage3-evalinput: [4, 256, 28, 28]running_mean, running_var, weight, bias: [256], f32dtype=f16

input: [B, C, *L]

  • resnet-steminput: [8, 64, 56, 56]training=truerunning_mean=Nonerunning_var=Nonedtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
resnet-fcf161.16×0.00176torch-compile
flaggems
torch-cudnn
0.00205
0.00733
0.0145
0.00815··
resnet-stage1bf161.64×0.0025torch-compile
flaggems
torch-cudnn
0.0041
0.0133
0.0149
1.47··
resnet-stage2f161.46×0.00224torch-compile
torch-cudnn
flaggems
0.00327
0.00512
0.0112
1.64··
resnet-stage3f161.68×0.00272torch-compile
torch-cudnn
flaggems
0.00458
0.0057
0.0127
2.07··
f321.59×0.00317torch-compile
torch-cudnn
flaggems
0.00502
0.00682
0.00714
1.77··
large-spatialf161.00×0.7451torch-compile
torch-cudnn
flaggems
0.7439
3.2584
4.5604
5.04··
resnet-stage3-evalf161.68×0.00234torch-cudnn
torch-compile
flaggems
0.00392
0.00458
0.00915
1.37··
resnet-stembf162.14×0.00451torch-compile
torch-cudnn
0.00963
0.0361
1.78··

BatchNormBwd

doutput, input: [B, C, *L]save_mean, save_invstd: [C], f32

  • resnet-fcdoutput, input: [32, 64]save_mean, save_invstd: [64], f32dtype=f16

doutput, input: [B, C, *L]save_mean, save_invstd, weight: [C], f32

  • resnet-stage1doutput, input: [8, 64, 32, 32]save_mean, save_invstd, weight: [64], f32dtype=bf16
  • resnet-stage2doutput, input: [4, 128, 32, 32]save_mean, save_invstd, weight: [128], f32dtype=f16
  • resnet-stage3doutput, input: [4, 256, 28, 28]save_mean, save_invstd, weight: [256], f32dtype=f16, f32
  • large-spatialdoutput, input: [4, 128, 1024, 1024]save_mean, save_invstd, weight: [128], f32dtype=f16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
resnet-fcf167.86×0.00182torch-native-batch-norm
torch-autograd
0.0143
0.0254
0.0101··
resnet-stage1bf166.91×0.00291torch-native-batch-norm
torch-autograd
0.0201
0.0285
1.62··
resnet-stage2f166.49×0.00253torch-native-batch-norm
torch-autograd
0.0164
0.0247
1.87··
resnet-stage3f165.10×0.00358torch-native-batch-norm
torch-autograd
0.0183
0.0266
2.02··
f322.05×0.00451torch-native-batch-norm
torch-autograd
0.00925
0.0175
1.6··
large-spatialf1610.49×1.1960torch-native-batch-norm
torch-autograd
12.5490
14.1794
4.04··

GroupNormFwd

input: [B, C, *L]weight, bias: [C]

  • image-affineinput: [8, 128, 32, 32]weight, bias: [128]num_groups=32dtype=bf16
  • wider-channel-affineinput: [4, 256, 28, 28]weight, bias: [256]num_groups=32dtype=f16, f32
  • tail-spatial-affineinput: [4, 128, 30, 30]weight, bias: [128]num_groups=16dtype=f16

input: [B, C, *L]

  • imageinput: [8, 128, 32, 32]num_groups=32dtype=bf16
  • wider-channelinput: [4, 256, 28, 28]num_groups=32dtype=f16, f32
  • tail-spatialinput: [4, 128, 30, 30]num_groups=16dtype=f16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
image-affinebf161.23×0.00288flaggems
torch-compile
torch
0.00355
0.00467
0.0149
2.55··
wider-channel-affinef161.31×0.00269flaggems
torch-compile
torch
0.00352
0.00387
0.0161
2.09··
f321.19×0.00352flaggems
torch-compile
torch
0.00419
0.00442
0.0158
1.6··
tail-spatial-affinef161.49×0.00269torch-compile
flaggems
torch
0.004
0.00435
0.0152
1.2··
imagebf161.16×0.00281flaggems
torch-compile
torch
0.00326
0.00384
0.0128
1.86··
wider-channelf161.23×0.00259torch-compile
flaggems
torch
0.0032
0.0033
0.0139
1.55··
f321.14×0.00336flaggems
torch-compile
torch
0.00384
0.00397
0.0135
1.19··
tail-spatialf161.38×0.00246torch-compile
flaggems
torch
0.00339
0.00387
0.0135
0.935··

InstanceNormFwd

input: [B, C, *L]weight, bias: [C]

  • image-affineinput: [8, 128, 32, 32]weight, bias: [128]dtype=bf16
  • wider-channel-affineinput: [4, 256, 28, 28]weight, bias: [256]dtype=f16, f32
  • tail-spatial-affineinput: [4, 64, 30, 30]weight, bias: [64]dtype=f16

input: [B, C, *L]

  • imageinput: [8, 128, 32, 32]dtype=bf16
  • wider-channelinput: [4, 256, 28, 28]dtype=f16, f32
  • tail-spatialinput: [4, 64, 30, 30]dtype=f16

input: [B, C, *L]running_mean, running_var: [C], f32

  • image-track-statsinput: [8, 128, 32, 32]running_mean, running_var: [128], f32dtype=f16

input: [B, C, *L]running_mean, running_var: [C], f32weight, bias: [C]

  • image-evalinput: [8, 128, 32, 32]running_mean, running_var: [128], f32weight, bias: [128]use_input_stats=falsedtype=f16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
image-affinebf161.10×0.00246torch-compile
flaggems
torch
0.00272
0.00336
0.0206
2.98··
wider-channel-affinef161.18×0.00227torch-compile
flaggems
torch
0.00269
0.00336
0.0206
2.47··
f321.09×0.00288torch-compile
flaggems
torch
0.00315
0.00371
0.0188
1.95··
tail-spatial-affinef161.08×0.00202torch-compile
flaggems
torch
0.00218
0.00256
0.0114
0.8··
imagebf161.08×0.0024torch-compile
flaggems
torch
0.00259
0.00301
0.0168
2.18··
wider-channelf161.11×0.00224torch-compile
flaggems
torch
0.0025
0.00294
0.0160
1.79··
f321.04×0.00285torch-compile
flaggems
torch
0.00298
0.0033
0.0160
1.41··
tail-spatialf161.05×0.00195torch-compile
flaggems
torch
0.00205
0.0024
0.00816
0.59··
image-track-statsf161.03×0.00246torch-compile
torch
0.00253
0.0376
2.13··
image-evalf161.52×0.0024torch-compile
torch
0.00365
0.0223
1.75··