Skip to content

Reduction

19 ops, 144 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.

SumFwd

input: [*S]

  • hidden-stateinput: [2048, 4096]dim=-1dtype=bf16, bf16/f32
  • long-seqinput: [64, 32768]dim=-1dtype=bf16
  • hidden-state-dim0input: [2048, 4096]dim=0dtype=bf16
  • hidden-state-keepdiminput: [2048, 4096]dim=-1keepdim=truedtype=bf16
  • 3d-multidiminput: [4, 128, 4096]dim=[0,2]dtype=f16
  • mlp-intermediateinput: [2048, 11008]dim=-1dtype=f32
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-statebf161.31×0.00566flaggems
torch-compile
torch
0.00741
0.00755
0.0110
1.48··
bf16/f321.31×0.00568torch-compile
torch
0.00742
0.0110
1.48··
long-seqbf161.07×0.00294flaggems
torch-compile
torch
0.00314
0.00368
0.00688
0.712··
hidden-state-dim0bf161.12×0.00666torch-compile
flaggems
torch
0.00746
0.0117
0.0123
1.26··
hidden-state-keepdimbf161.29×0.0057flaggems
torch-compile
torch
0.00733
0.00742
0.0110
1.47··
3d-multidimf161.36×0.00282torch-compile
torch
flaggems
0.00384
0.0107
0.0131
0.745··
mlp-intermediatef321.02×0.0211flaggems
torch-compile
torch
0.0214
0.0218
0.0314
1.07··

MeanFwd

input: [*S]

  • hidden-stateinput: [2048, 4096]dim=-1dtype=bf16, bf16/f32
  • long-seqinput: [64, 32768]dim=-1dtype=bf16
  • 3d-multidiminput: [4, 128, 4096]dim=[0,2]dtype=f16
  • mlp-intermediateinput: [2048, 11008]dim=-1dtype=f32
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-statebf161.30×0.0057flaggems
torch-compile
torch
0.00742
0.00746
0.0110
1.47··
bf16/f321.32×0.00566torch-compile
torch
0.00746
0.0110
1.48··
long-seqbf161.18×0.00294flaggems
torch-compile
torch
0.00349
0.00374
0.00691
0.712··
3d-multidimf161.36×0.00282torch-compile
torch
flaggems
0.00384
0.0106
0.0131
0.745··
mlp-intermediatef321.02×0.0212flaggems
torch-compile
torch
0.0215
0.0218
0.0312
1.06··

ProdFwd

input: [*S]

  • hidden-stateinput: [2048, 4096]dim=-1dtype=bf16, bf16/f32
  • long-seqinput: [64, 32768]dim=-1dtype=bf16
  • 3d-non-last-axisinput: [4, 128, 4096]dim=0dtype=f16
  • mlp-intermediateinput: [2048, 11008]dim=-1dtype=f32
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-statebf161.11×0.00563flaggems
torch-compile
torch
0.00624
0.00736
0.0167
1.49··
bf16/f321.31×0.0056torch-compile
torch
0.00736
0.0166
1.5··
long-seqbf161.26×0.00294torch-compile
torch
flaggems
0.00371
0.00986
0.0129
0.712··
3d-non-last-axisf161.02×0.00262torch-compile
torch
flaggems
0.00269
0.00442
0.2859
0.799··
mlp-intermediatef320.99×0.0211torch-compile
flaggems
torch
0.0209
0.0229
0.0311
1.07··

AmaxFwd

input: [*S]

  • hidden-stateinput: [2048, 4096]dim=-1dtype=bf16
  • long-seqinput: [64, 32768]dim=-1dtype=bf16
  • 3d-multidiminput: [4, 128, 4096]dim=[0,2]dtype=f16
  • mlp-intermediateinput: [2048, 11008]dim=-1dtype=f32
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-statebf161.11×0.0057flaggems
torch-compile
torch
0.00634
0.00723
0.0179
1.47··
long-seqbf161.24×0.00298torch-compile
torch
flaggems
0.00368
0.0108
0.0130
0.705··
3d-multidimf161.43×0.00278torch-compile
flaggems
torch
0.00397
0.0121
0.0127
0.753··
mlp-intermediatef320.99×0.0212torch-compile
flaggems
torch
0.0210
0.0229
0.0327
1.07··

AminFwd

input: [*S]

  • hidden-stateinput: [2048, 4096]dim=-1dtype=bf16
  • long-seqinput: [64, 32768]dim=-1dtype=bf16
  • 3d-multidiminput: [4, 128, 4096]dim=[0,2]dtype=f16
  • mlp-intermediateinput: [2048, 11008]dim=-1dtype=f32
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-statebf161.28×0.0057torch-compile
torch
0.00726
0.0179
1.47··
long-seqbf161.26×0.00298torch-compile
torch
0.00374
0.0108
0.705··
3d-multidimf161.35×0.00278torch-compile
torch
0.00375
0.0127
0.753··
mlp-intermediatef320.99×0.0211torch-compile
torch
0.0210
0.0327
1.07··

VarFwd

input: [*S]

  • hidden-stateinput: [2048, 4096]dim=-1dtype=bf16
  • long-seqinput: [64, 32768]dim=-1dtype=bf16
  • 3d-multidiminput: [4, 128, 4096]dim=[0,2]dtype=f16
  • mlp-intermediateinput: [2048, 11008]dim=-1dtype=f32
  • hidden-state-biasedinput: [2048, 4096]dim=-1correction=0dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-statebf161.32×0.00778torch-compile
flaggems
torch
0.0103
0.0153
0.0370
4.32··
long-seqbf161.28×0.00438torch-compile
flaggems
torch
0.0056
0.0108
0.0211
1.91··
3d-multidimf161.25×0.00435torch-compile
flaggems
torch
0.00544
0.0138
0.0179
1.93··
mlp-intermediatef321.29×0.0236torch-compile
flaggems
torch
0.0305
0.0340
0.0517
3.83··
hidden-state-biasedbf161.36×0.00755torch-compile
flaggems
torch
0.0103
0.0152
0.0370
4.44··

VarMeanFwd

input: [*S]

  • hidden-stateinput: [2048, 4096]dim=-1dtype=bf16
  • long-seqinput: [64, 32768]dim=-1dtype=bf16
  • 3d-multidiminput: [4, 128, 4096]dim=[0,2]dtype=f16
  • mlp-intermediateinput: [2048, 11008]dim=-1dtype=f32
  • hidden-state-biasedinput: [2048, 4096]dim=-1correction=0dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-statebf161.35×0.00784torch-compile
flaggems
torch
0.0106
0.0154
0.0370
4.28··
long-seqbf161.26×0.00438torch-compile
flaggems
torch
0.00554
0.0108
0.0211
1.91··
3d-multidimf161.26×0.00435torch-compile
flaggems
torch
0.0055
0.0138
0.0179
1.93··
mlp-intermediatef321.31×0.0234torch-compile
flaggems
torch
0.0307
0.0336
0.0518
3.86··
hidden-state-biasedbf161.38×0.00765torch-compile
flaggems
torch
0.0106
0.0154
0.0370
4.39··

StdFwd

input: [*S]

  • hidden-stateinput: [2048, 4096]dim=-1dtype=bf16
  • long-seqinput: [64, 32768]dim=-1dtype=bf16
  • 3d-multidiminput: [4, 128, 4096]dim=[0,2]dtype=f16
  • mlp-intermediateinput: [2048, 11008]dim=-1dtype=f32
  • hidden-state-biasedinput: [2048, 4096]dim=-1correction=0dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-statebf161.23×0.00803flaggems
torch-compile
torch
0.00989
0.0187
0.0370
4.18··
long-seqbf161.28×0.00442torch-compile
flaggems
torch
0.00563
0.0192
0.0211
1.9··
3d-multidimf161.30×0.00438torch-compile
flaggems
torch
0.0057
0.0158
0.0180
1.91··
mlp-intermediatef321.31×0.0236torch-compile
flaggems
torch
0.0309
0.0415
0.0520
3.82··
hidden-state-biasedbf161.27×0.00778flaggems
torch-compile
torch
0.00989
0.0187
0.0371
4.31··

ArgmaxFwd

input: [*S]

  • lm-headinput: [4, 102400]dim=-1dtype=bf16
  • hidden-stateinput: [2048, 4096]dim=-1dtype=bf16
  • 3d-non-last-axisinput: [4, 128, 4096]dim=0dtype=f16
  • llama-8b-lm-headinput: [4, 128256]dim=-1dtype=f32
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
lm-headbf167.24×0.00362flaggems
torch-compile
torch
0.0262
0.0292
0.0362
0.113··
hidden-statebf161.39×0.00746flaggems
torch-compile
torch
0.0104
0.0189
0.0240
1.13··
3d-non-last-axisf161.01×0.0032flaggems
torch-compile
torch
0.00323
0.0033
0.0113
0.655··
llama-8b-lm-headf324.86×0.00707flaggems
torch-compile
torch
0.0344
0.0369
0.0441
0.0725··

ArgminFwd

input: [*S]

  • lm-headinput: [4, 102400]dim=-1dtype=f16, bf16
  • hidden-stateinput: [2048, 4096]dim=-1dtype=bf16
  • 3d-non-last-axisinput: [4, 128, 4096]dim=0dtype=f16
  • llama-8b-lm-headinput: [4, 128256]dim=-1dtype=f32
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
lm-headf167.86×0.00365torch-compile
torch
flaggems
0.0287
0.0355
0.1028
0.112··
bf164.55×0.0064torch-compile
torch
flaggems
0.0291
0.0363
0.0825
0.064··
hidden-statebf161.00×0.00752flaggems
torch-compile
torch
0.00752
0.0189
0.0239
1.12··
3d-non-last-axisf161.02×0.00323torch-compile
torch
0.0033
0.0112
0.649··
llama-8b-lm-headf325.19×0.0071torch-compile
torch
flaggems
0.0369
0.0440
0.0824
0.0722··

SoftmaxFwd

x: [*S]

dim=-1

  • attn-weights-4kx: [32, 32, 4096]dtype=bf16, f32
  • attn-weights-32kx: [32, 32, 32768]dtype=bf16
  • lm-headx: [4, 102400]dtype=bf16, f32
  • llama-8b-lm-headx: [4, 128256]dtype=bf16/f32
  • quack-throughput-256x: [32768, 256]dtype=bf16, f32
  • quack-throughput-512x: [32768, 512]dtype=bf16, f32
  • quack-throughput-1024x: [32768, 1024]dtype=bf16, f32
  • quack-throughput-2048x: [32768, 2048]dtype=bf16, f32
  • quack-throughput-4096x: [32768, 4096]dtype=bf16, f32
  • quack-throughput-8192x: [32768, 8192]dtype=bf16, f32
  • quack-throughput-16384x: [32768, 16384]dtype=bf16, f32
  • quack-throughput-32768x: [32768, 32768]dtype=bf16, f32
  • quack-throughput-65536x: [32768, 65536]dtype=bf16, f32
  • quack-throughput-131072x: [16384, 131072]dtype=bf16, f32
  • quack-throughput-262144x: [8192, 262144]dtype=bf16, f32
  • qwen3-8b-lm-head-b1x: [1, 151936]dtype=f32
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
attn-weights-4kbf161.13×0.00554quack
flaggems
torch-compile
torch
0.00624
0.00726
0.0151
0.0192
3.79··
f321.12×0.00845flaggems
quack
torch-compile
torch
0.0095
0.00966
0.0151
0.0191
2.48··
attn-weights-32kbf161.07×0.0332quack
flaggems
torch
torch-compile
0.0356
0.0540
0.0812
0.0839
5.05··
lm-headbf161.17×0.00365quack
torch-compile
flaggems
torch
0.00426
0.00838
0.0299
0.0337
0.561··
f321.63×0.00474quack
torch-compile
flaggems
torch
0.00771
0.0117
0.0314
0.0395
0.432··
llama-8b-lm-headbf16/f321.56×0.00515torch-compile
quack
torch
0.00803
0.0123
0.0467
0.498··
quack-throughput-256bf161.05×0.00877quack
torch-compile
torch
flaggems
0.00925
0.0114
0.0191
0.0246
4.78··
f321.04×0.0155torch-compile
quack
torch
flaggems
0.0161
0.0161
0.0187
0.0259
2.7··
quack-throughput-512bf161.02×0.0161quack
torch-compile
flaggems
torch
0.0164
0.0197
0.0292
0.0345
5.2··
f321.02×0.0297quack
torch-compile
flaggems
torch
0.0304
0.0314
0.0341
0.0353
2.83··
quack-throughput-1024bf161.02×0.0303quack
torch-compile
flaggems
torch
0.0309
0.0366
0.0402
0.0676
5.54··
f321.01×0.0615flaggems
quack
torch-compile
torch
0.0624
0.0625
0.0645
0.0680
2.73··
quack-throughput-2048bf161.03×0.0614quack
flaggems
torch
torch-compile
0.0631
0.0851
0.1731
0.1952
5.47··
f321.05×0.1229flaggems
quack
torch
torch-compile
0.1288
0.1358
0.1525
0.2150
2.73··
quack-throughput-4096bf161.04×0.1221quack
flaggems
torch-compile
torch
0.1272
0.1829
0.3867
0.5449
5.5··
f321.03×0.2476flaggems
quack
torch-compile
torch
0.2545
0.2784
0.3790
0.5362
2.71··
quack-throughput-8192bf161.05×0.2475quack
flaggems
torch-compile
torch
0.2588
0.2796
0.6980
1.2940
5.42··
f321.04×0.4954flaggems
quack
torch-compile
torch
0.5149
0.5569
0.6323
1.3816
2.71··
quack-throughput-16384bf161.05×0.4959quack
flaggems
torch-compile
torch
0.5223
0.6036
1.2748
1.2948
5.41··
f321.03×0.9950flaggems
quack
torch-compile
torch
1.0288
1.0470
1.2629
1.4598
2.7··
quack-throughput-32768bf160.99×1.0624quack
flaggems
torch
torch-compile
1.0562
1.5541
2.3677
2.4300
5.05··
f321.04×2.0583quack
flaggems
torch-compile
torch
2.1422
2.2370
2.8954
3.2912
2.61··
quack-throughput-65536bf161.04×2.1454quack
flaggems
torch
torch-compile
2.2328
3.4311
4.5683
5.0342
5··
f321.05×4.1965quack
flaggems
torch-compile
torch
4.4005
5.8544
6.0977
8.0235
2.56··
quack-throughput-131072bf161.09×2.1033quack
flaggems
torch
torch-compile
2.2902
3.4087
4.8970
4.9937
5.11··
f321.17×4.1366quack
flaggems
torch-compile
torch
4.8248
6.0894
6.1395
8.0754
2.6··
quack-throughput-262144bf161.11×2.2323quack
flaggems
torch
torch-compile
2.4881
3.4672
4.7424
5.0169
4.81··
f321.11×4.4384quack
flaggems
torch-compile
torch
4.9350
6.1977
6.2046
8.1007
2.42··
qwen3-8b-lm-head-b1f321.38×0.00416quack
torch-compile
flaggems
torch
0.00576
0.0107
0.0461
0.0567
0.183··

LogSoftmaxFwd

input: [*S]

dim=-1

  • attn-weights-4kinput: [32, 32, 4096]dtype=bf16, f32
  • attn-weights-32kinput: [32, 32, 32768]dtype=bf16
  • lm-headinput: [4, 102400]dtype=bf16, f32
  • llama-8b-lm-headinput: [4, 128256]dtype=bf16/f32
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
attn-weights-4kbf161.94×0.00682torch-compile
torch
flaggems
0.0132
0.0166
0.0193
3.08··
f321.42×0.00915torch-compile
torch
flaggems
0.0130
0.0167
0.0196
2.29··
attn-weights-32kbf161.82×0.0319torch
torch-compile
flaggems
0.0582
0.0650
0.2464
5.25··
lm-headbf161.90×0.00438torch-compile
torch
flaggems
0.00832
0.0227
0.4285
0.467··
f322.48×0.00474torch-compile
torch
flaggems
0.0117
0.0352
0.4079
0.432··
llama-8b-lm-headbf16/f321.65×0.00515torch-compile
torch
0.00851
0.0415
0.498··

LogSumExpFwd

input: [*S]

  • attn-weights-4kinput: [32, 32, 4096]dim=-1dtype=bf16
  • attn-weights-32kinput: [32, 32, 32768]dim=-1dtype=bf16
  • lm-headinput: [4, 102400]dim=-1dtype=bf16
  • 3d-multidiminput: [4, 128, 4096]dim=[0,2]dtype=f16
  • llama-8b-lm-headinput: [4, 128256]dim=-1dtype=f32
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
attn-weights-4kbf161.47×0.0057torch-compile
torch
0.00838
0.0486
2.95··
attn-weights-32kbf161.48×0.0249torch-compile
torch
0.0369
0.1952
5.39··
lm-headbf162.53×0.00371torch-compile
torch
0.00941
0.0468
0.441··
3d-multidimf161.62×0.0055torch-compile
torch
0.00893
0.0408
1.52··
llama-8b-lm-headf321.64×0.00403torch-compile
torch
0.00662
0.0596
0.509··

VectorNormFwd

x: [*S]

  • l1-hidden-statex: [2048, 4096]ord=1dim=-1dtype=bf16
  • l1-long-seqx: [64, 32768]ord=1dim=-1dtype=bf16
  • l1-3d-multidimx: [4, 128, 4096]ord=1dim=[0,2]dtype=f16
  • l1-mlp-intermediatex: [2048, 11008]ord=1dim=-1dtype=f32
  • l1-hidden-state-fp32x: [2048, 4096]ord=1dim=-1dtype=bf16/f32
  • l2-hidden-statex: [2048, 4096]dim=-1dtype=bf16
  • l2-long-seqx: [64, 32768]dim=-1dtype=bf16
  • l2-3d-multidimx: [4, 128, 4096]dim=[0,2]dtype=f16
  • l2-mlp-intermediatex: [2048, 11008]dim=-1dtype=f32
  • l2-hidden-state-fp32x: [2048, 4096]dim=-1dtype=bf16/f32
  • inf-hidden-statex: [2048, 4096]ord=infdim=-1dtype=bf16
  • inf-long-seqx: [64, 32768]ord=infdim=-1dtype=bf16
  • inf-3d-multidimx: [4, 128, 4096]ord=infdim=[0,2]dtype=f16
  • inf-mlp-intermediatex: [2048, 11008]ord=infdim=-1dtype=f32
  • inf-hidden-state-fp32x: [2048, 4096]ord=infdim=-1dtype=bf16/f32
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
l1-hidden-statebf161.34×0.00566torch-compile
flaggems
torch
0.00758
0.0143
0.0168
2.96··
l1-long-seqbf161.28×0.00294torch-compile
torch
flaggems
0.00378
0.00989
0.0369
1.42··
l1-3d-multidimf161.33×0.00282torch-compile
torch
flaggems
0.00374
0.0105
0.0241
1.49··
l1-mlp-intermediatef321.05×0.0211torch-compile
torch
flaggems
0.0221
0.0315
0.0356
2.14··
l1-hidden-state-fp32bf16/f321.32×0.00566torch-compile
torch
0.00749
0.0167
2.96··
l2-hidden-statebf161.10×0.00576flaggems
torch-compile
torch
0.00634
0.00787
0.0168
2.91··
l2-long-seqbf161.26×0.00301torch-compile
torch
flaggems
0.00378
0.00992
0.0129
1.39··
l2-3d-multidimf161.38×0.00285torch-compile
torch
flaggems
0.00394
0.0106
0.0132
1.47··
l2-mlp-intermediatef321.01×0.0212torch-compile
flaggems
torch
0.0214
0.0228
0.0315
2.13··
l2-hidden-state-fp32bf16/f321.36×0.00576torch-compile
torch
0.00784
0.0168
2.91··
inf-hidden-statebf161.10×0.00579flaggems
torch-compile
torch
0.0064
0.00733
0.0172
2.9··
inf-long-seqbf161.18×0.0031torch-compile
torch
flaggems
0.00365
0.0102
0.0131
1.35··
inf-3d-multidimf161.35×0.00282torch-compile
torch
flaggems
0.00381
0.0108
0.0124
1.49··
inf-mlp-intermediatef321.06×0.0212torch-compile
flaggems
torch
0.0224
0.0232
0.0328
2.13··
inf-hidden-state-fp32bf16/f321.26×0.00579torch-compile
torch
0.0073
0.0173
2.9··

CumsumFwd

input: [*S]

dim=-1

  • hidden-stateinput: [2048, 4096]dtype=bf16
  • hidden-state-f32input: [2048, 4096]dtype=bf16/f32
  • long-seqinput: [64, 32768]dtype=bf16
  • llama-13b-hiddeninput: [4096, 5120]dtype=f32
  • few-long-seqinput: [8, 65536]dtype=f32
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-statebf161.00×0.0088flaggems
torch-compile
torch
0.00877
0.0236
0.1017
0.953··
hidden-state-f32bf16/f321.03×0.0130flaggems
torch-compile
torch
0.0135
0.0245
0.1347
0.644··
long-seqbf161.29×0.00557flaggems
torch-compile
torch
0.00717
0.0117
0.0642
0.377··
llama-13b-hiddenf321.06×0.0393flaggems
torch-compile
torch
0.0416
0.0588
0.1584
0.533··
few-long-seqf321.56×0.00365flaggems
torch-compile
torch
0.0057
0.00755
0.1270
0.144··

CumprodFwd

input: [*S]

dim=-1

  • hidden-stateinput: [2048, 4096]dtype=bf16
  • hidden-state-f32input: [2048, 4096]dtype=bf16/f32
  • long-seqinput: [64, 32768]dtype=bf16
  • llama-13b-hiddeninput: [4096, 5120]dtype=f32
  • few-long-seqinput: [8, 65536]dtype=f32
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-statebf162.71×0.00874torch-compile
torch
0.0237
0.1016
0.96··
hidden-state-f32bf16/f321.89×0.0130torch-compile
torch
0.0246
0.1346
0.646··
long-seqbf162.12×0.00554torch-compile
torch
0.0117
0.0642
0.379··
llama-13b-hiddenf321.50×0.0393torch-compile
torch
0.0589
0.1583
0.534··
few-long-seqf321.63×0.00461torch-compile
torch
0.00752
0.1270
0.114··

AllFwd

input: [*S]

  • mask-validation-4kinput: [32, 4096]dim=-1dtype=bool, bf16, f32
  • mask-validation-32kinput: [32, 32768]dim=-1dtype=bool, i32, i64
  • 3d-multidiminput: [4, 128, 4096]dim=[0,2]dtype=bool, c64, c128
  • mlp-intermediateinput: [2048, 11008]dim=-1dtype=bool
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
mask-validation-4kbool1.15×0.00154torch-compile
flaggems
torch
0.00176
0.00186
0.0177
0.0853··
bf161.08×0.00157torch-compile
flaggems
torch
0.0017
0.0055
0.0157
0.167··
f321.08×0.00166torch-compile
flaggems
torch
0.00179
0.00557
0.0160
0.158··
mask-validation-32kbool1.67×0.00186torch-compile
flaggems
torch
0.00311
0.00634
0.0102
0.565··
i321.35×0.00278torch-compile
flaggems
torch
0.00375
0.00915
0.0121
0.753··
i641.19×0.00413torch-compile
flaggems
torch
0.00493
0.0095
0.0124
0.508··
3d-multidimbool1.83×0.00211torch-compile
torch
flaggems
0.00387
0.0102
0.0116
0.993··
c642.29×0.00544torch-compile
torch
flaggems
0.0125
0.0179
0.0197
0.771··
c1281.66×0.00893torch-compile
torch
flaggems
0.0148
0.0203
0.0221
0.47··
mlp-intermediatebool1.50×0.0067flaggems
torch-compile
torch
0.0101
0.0143
0.0274
3.36··

AnyFwd

input: [*S]

  • mask-validation-4kinput: [32, 4096]dim=-1dtype=bool, bf16, f32
  • mask-validation-32kinput: [32, 32768]dim=-1dtype=bool, i32, i64
  • 3d-multidiminput: [4, 128, 4096]dim=[0,2]dtype=bool, c64, c128
  • mlp-intermediateinput: [2048, 11008]dim=-1dtype=bool
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
mask-validation-4kbool1.09×0.00152torch-compile
flaggems
torch
0.00166
0.00189
0.0181
0.0862··
bf161.08×0.00157torch-compile
flaggems
torch
0.0017
0.00554
0.0162
0.167··
f321.08×0.00163torch-compile
flaggems
torch
0.00176
0.00563
0.0164
0.161··
mask-validation-32kbool1.61×0.00182torch-compile
flaggems
torch
0.00295
0.00637
0.0105
0.575··
i321.38×0.00269torch-compile
flaggems
torch
0.00371
0.00925
0.0125
0.78··
i641.34×0.00381torch-compile
flaggems
torch
0.00509
0.00957
0.0129
0.551··
3d-multidimbool1.62×0.00211torch-compile
flaggems
torch
0.00342
0.0116
0.0190
0.993··
c642.21×0.00544torch-compile
flaggems
torch
0.0120
0.0198
0.0225
0.771··
c1281.61×0.00893torch-compile
flaggems
torch
0.0143
0.0222
0.0248
0.47··
mlp-intermediatebool1.55×0.00669flaggems
torch-compile
torch
0.0104
0.0125
0.0296
3.37··

CountNonzeroFwd

input: [*S]

  • sparsity-hiddeninput: [2048, 4096]dim=-1dtype=bf16, f32
  • sparsity-seqinput: [32, 32768]dim=-1dtype=f16, bool, i32, i64
  • 3d-multidiminput: [4, 128, 4096]dim=[0,2]dtype=f16, c64, c128
  • sparsity-mlpinput: [2048, 11008]dim=-1dtype=f16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
sparsity-hiddenbf161.47×0.0056torch-compile
torch
0.00826
0.0634
3··
f321.15×0.00902torch-compile
torch
0.0104
0.0674
1.86··
sparsity-seqf161.24×0.00272torch-compile
torch
0.00336
0.0147
0.771··
bool1.46×0.00224torch-compile
torch
0.00326
0.0129
0.936··
i321.22×0.00322torch-compile
torch
0.00394
0.0152
0.652··
i641.14×0.00442torch-compile
torch
0.00506
0.0165
0.475··
3d-multidimf161.37×0.00301torch-compile
torch
0.00413
0.0209
1.39··
c641.74×0.0057torch-compile
torch
0.00989
0.0242
0.736··
c1281.94×0.00915torch-compile
torch
0.0177
0.0321
0.458··
sparsity-mlpf161.10×0.0120torch-compile
torch
0.0132
0.1550
3.77··