跳转至

Reduction

本页暂无中文版。以下为英文原文。

19 ops, 176 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

x: [*S]

  • hidden-statex: [2048, 4096]dim=-1dtype=f16, bf16, bf16/f32
  • long-seqx: [64, 32768]dim=-1dtype=bf16
  • hidden-state-dim0x: [2048, 4096]dim=0dtype=bf16
  • hidden-state-keepdimx: [2048, 4096]dim=-1keepdim=truedtype=bf16
  • 3d-multidimx: [4, 128, 4096]dim=[0,2]dtype=f16
  • mlp-intermediatex: [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-statef161.20×0.00685torch-compile
flaggems
torch
0.00819
0.00861
0.0504
1.2254%mem
bf161.24×0.00688torch-compile
flaggems
torch
0.00854
0.0089
0.0506
1.2254%mem
bf16/f321.25×0.00685torch-compile
torch
0.00854
0.0495
1.2254%mem
long-seqbf161.06×0.00387flaggems
torch-compile
torch
0.0041
0.00474
0.0172
0.54224%lat
hidden-state-dim0bf161.15×0.00954torch-compile
flaggems
torch
0.0109
0.0140
0.0451
0.8839%mem
hidden-state-keepdimbf161.24×0.00688torch-compile
flaggems
torch
0.00854
0.0089
0.0507
1.2254%mem
3d-multidimf160.98×0.00477torch-compile
flaggems
torch
0.00467
0.0136
0.0196
0.4420%lat
mlp-intermediatef320.98×0.0251torch-compile
flaggems
torch
0.0245
0.0288
0.0383
0.89980%mem

MeanFwd

x: [*S]

  • hidden-statex: [2048, 4096]dim=-1dtype=f16, bf16, bf16/f32
  • long-seqx: [64, 32768]dim=-1dtype=bf16
  • 3d-multidimx: [4, 128, 4096]dim=[0,2]dtype=f16
  • mlp-intermediatex: [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-statef161.24×0.00685torch-compile
flaggems
torch
0.00848
0.00896
0.0504
1.2354%mem
bf161.25×0.00688torch-compile
flaggems
torch
0.00858
0.00899
0.0507
1.2254%mem
bf16/f321.24×0.00688torch-compile
torch
0.00854
0.0496
1.2254%mem
long-seqbf161.06×0.00387flaggems
torch-compile
torch
0.0041
0.0047
0.0172
0.54224%lat
3d-multidimf160.99×0.0048torch-compile
flaggems
torch
0.00475
0.0136
0.0195
0.43719%lat
mlp-intermediatef320.98×0.0251torch-compile
flaggems
torch
0.0245
0.0288
0.0381
0.89880%mem

ProdFwd

x: [*S]

  • hidden-statex: [2048, 4096]dim=-1dtype=f16, bf16, bf16/f32
  • long-seqx: [64, 32768]dim=-1dtype=bf16
  • 3d-non-last-axisx: [4, 128, 4096]dim=0dtype=f16
  • mlp-intermediatex: [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-statef161.13×0.00688flaggems
torch-compile
torch
0.00778
0.00829
0.0501
1.2254%mem
bf161.13×0.00688flaggems
torch-compile
torch
0.00774
0.00835
0.0503
1.2254%mem
bf16/f321.21×0.00688torch-compile
torch
0.00835
0.0494
1.2254%mem
long-seqbf161.20×0.0039torch-compile
flaggems
torch
0.0047
0.0141
0.0171
0.53724%lat
3d-non-last-axisf161.01×0.00349torch-compile
torch
flaggems
0.00352
0.0153
0.2858
0.60133%lat
mlp-intermediatef320.98×0.0252torch-compile
flaggems
torch
0.0247
0.0307
0.0380
0.89680%mem

AmaxFwd

x: [*S]

  • hidden-statex: [2048, 4096]dim=-1dtype=f16, bf16
  • long-seqx: [64, 32768]dim=-1dtype=bf16
  • 3d-multidimx: [4, 128, 4096]dim=[0,2]dtype=f16
  • mlp-intermediatex: [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-statef161.11×0.00688flaggems
torch-compile
torch
0.00762
0.0103
0.0505
1.2254%mem
bf161.14×0.00688flaggems
torch-compile
torch
0.00787
0.0102
0.0508
1.2254%mem
long-seqbf161.29×0.00387torch-compile
flaggems
torch
0.00499
0.0142
0.0173
0.54224%lat
3d-multidimf161.11×0.00477torch-compile
flaggems
torch
0.00528
0.0125
0.0194
0.4420%lat
mlp-intermediatef320.99×0.0251torch-compile
flaggems
torch
0.0250
0.0307
0.0396
0.89980%mem

AminFwd

x: [*S]

  • hidden-statex: [2048, 4096]dim=-1dtype=f16, bf16
  • long-seqx: [64, 32768]dim=-1dtype=bf16
  • 3d-multidimx: [4, 128, 4096]dim=[0,2]dtype=f16
  • mlp-intermediatex: [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-statef161.49×0.00688torch-compile
torch
0.0103
0.0505
1.2254%mem
bf161.49×0.00688torch-compile
torch
0.0103
0.0509
1.2254%mem
long-seqbf161.28×0.00384torch-compile
torch
0.00493
0.0173
0.54624%lat
3d-multidimf161.11×0.00477torch-compile
torch
0.00528
0.0194
0.4420%lat
mlp-intermediatef321.00×0.0251torch-compile
torch
0.0250
0.0396
0.980%mem

VarFwd

x: [*S]

  • hidden-statex: [2048, 4096]dim=-1dtype=f16, bf16
  • long-seqx: [64, 32768]dim=-1dtype=bf16
  • 3d-multidimx: [4, 128, 4096]dim=[0,2]dtype=f16
  • mlp-intermediatex: [2048, 11008]dim=-1dtype=f32
  • hidden-state-biasedx: [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-statef161.79×0.00842flaggems
torch-compile
torch
0.0150
0.0183
0.0687
3.9944%mem
bf161.82×0.00848flaggems
torch-compile
torch
0.0155
0.0188
0.0691
3.9644%mem
long-seqbf161.19×0.00525torch-compile
flaggems
torch
0.00624
0.0116
0.0252
1.618%lat
3d-multidimf161.22×0.00534torch-compile
flaggems
torch
0.0065
0.0142
0.0271
1.5717%lat
mlp-intermediatef321.16×0.0298torch-compile
flaggems
torch
0.0344
0.0366
0.0565
3.0367%mem
hidden-state-biasedbf161.86×0.00832flaggems
torch-compile
torch
0.0155
0.0188
0.0691
4.0345%mem

VarMeanFwd

x: [*S]

  • hidden-statex: [2048, 4096]dim=-1dtype=f16, bf16
  • long-seqx: [64, 32768]dim=-1dtype=bf16
  • 3d-multidimx: [4, 128, 4096]dim=[0,2]dtype=f16
  • mlp-intermediatex: [2048, 11008]dim=-1dtype=f32
  • hidden-state-biasedx: [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-statef161.79×0.00848flaggems
torch-compile
torch
0.0152
0.0189
0.0698
3.9644%mem
bf161.82×0.00854flaggems
torch-compile
torch
0.0156
0.0194
0.0702
3.9344%mem
long-seqbf161.21×0.00525torch-compile
flaggems
torch
0.00637
0.0116
0.0264
1.618%lat
3d-multidimf161.16×0.00534torch-compile
flaggems
torch
0.00618
0.0143
0.0284
1.5717%lat
mlp-intermediatef321.16×0.0298torch-compile
flaggems
torch
0.0347
0.0367
0.0566
3.0267%mem
hidden-state-biasedbf161.86×0.00838flaggems
torch-compile
torch
0.0156
0.0194
0.0702
444%mem

StdFwd

x: [*S]

  • hidden-statex: [2048, 4096]dim=-1dtype=f16, bf16
  • long-seqx: [64, 32768]dim=-1dtype=bf16
  • 3d-multidimx: [4, 128, 4096]dim=[0,2]dtype=f16
  • mlp-intermediatex: [2048, 11008]dim=-1dtype=f32
  • hidden-state-biasedx: [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-statef161.25×0.00854flaggems
torch-compile
torch
0.0107
0.0188
0.0688
3.9344%mem
bf161.29×0.00861flaggems
torch-compile
torch
0.0111
0.0193
0.0692
3.943%mem
long-seqbf161.20×0.00528torch-compile
flaggems
torch
0.00634
0.0138
0.0252
1.5918%lat
3d-multidimf161.17×0.00536torch-compile
flaggems
torch
0.00627
0.0144
0.0271
1.5717%lat
mlp-intermediatef321.17×0.0300torch-compile
flaggems
torch
0.0350
0.0499
0.0566
3.0167%mem
hidden-state-biasedbf161.31×0.00848flaggems
torch-compile
torch
0.0111
0.0194
0.0691
3.9644%mem

ArgmaxFwd

x: [*S]

  • lm-headx: [4, 102400]dim=-1dtype=f16, bf16
  • hidden-statex: [2048, 4096]dim=-1dtype=f16, bf16
  • 3d-non-last-axisx: [4, 128, 4096]dim=0dtype=f16
  • llama-8b-lm-headx: [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.25×0.004torch-compile
flaggems
torch
0.0290
0.0305
0.0358
0.1025%lat
bf166.94×0.004flaggems
torch-compile
torch
0.0277
0.0295
0.0364
0.1025%lat
hidden-statef161.34×0.00925flaggems
torch-compile
torch
0.0124
0.0191
0.0251
0.90740%mem
bf161.21×0.0097flaggems
torch-compile
torch
0.0117
0.0194
0.0253
0.86538%mem
3d-non-last-axisf161.00×0.00381flaggems
torch-compile
torch
0.00381
0.00464
0.0113
0.55149%lat
llama-8b-lm-headf324.78×0.00771flaggems
torch-compile
torch
0.0368
0.0379
0.0444
0.06656%lat

ArgminFwd

x: [*S]

  • lm-headx: [4, 102400]dim=-1dtype=f16, bf16
  • hidden-statex: [2048, 4096]dim=-1dtype=f16, bf16
  • 3d-non-last-axisx: [4, 128, 4096]dim=0dtype=f16
  • llama-8b-lm-headx: [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.21×0.00403torch-compile
torch
flaggems
0.0291
0.0358
0.1157
0.1025%lat
bf164.36×0.00675torch-compile
torch
flaggems
0.0295
0.0363
0.1013
0.06073%lat
hidden-statef161.03×0.0097flaggems
torch-compile
torch
0.0100
0.0191
0.0252
0.86538%mem
bf161.00×0.00989flaggems
torch-compile
torch
0.00992
0.0195
0.0253
0.84838%mem
3d-non-last-axisf161.00×0.00384torch-compile
torch
0.00384
0.0112
0.54649%lat
llama-8b-lm-headf324.89×0.00774torch-compile
torch
flaggems
0.0379
0.0445
0.2003
0.06626%lat

SoftmaxFwd

x: [*S]

dim=-1

  • attn-weights-4kx: [32, 32, 4096]dtype=f16, bf16, f32
  • attn-weights-32kx: [32, 32, 32768]dtype=bf16
  • lm-headx: [4, 102400]dtype=f16, bf16, f32
  • llama-8b-lm-headx: [4, 128256]dtype=bf16/f32
  • quack-throughput-256x: [32768, 256]dtype=f16, bf16, f32
  • quack-throughput-512x: [32768, 512]dtype=f16, bf16, f32
  • quack-throughput-1024x: [32768, 1024]dtype=f16, bf16, f32
  • quack-throughput-2048x: [32768, 2048]dtype=f16, bf16, f32
  • quack-throughput-4096x: [32768, 4096]dtype=f16, bf16, f32
  • quack-throughput-8192x: [32768, 8192]dtype=f16, bf16, f32
  • quack-throughput-16384x: [32768, 16384]dtype=f16, bf16, f32
  • quack-throughput-32768x: [32768, 32768]dtype=f16, bf16, f32
  • quack-throughput-65536x: [32768, 65536]dtype=f16, bf16, f32
  • quack-throughput-131072x: [16384, 131072]dtype=f16, bf16, f32
  • quack-throughput-262144x: [8192, 262144]dtype=f16, 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-4kf161.13×0.00634quack
flaggems
torch-compile
torch
0.00717
0.00867
0.0161
0.0396
3.3159%mem
bf161.14×0.0063quack
flaggems
torch-compile
torch
0.0072
0.00883
0.0166
0.0396
3.3359%mem
f321.17×0.00931quack
flaggems
torch-compile
torch
0.0109
0.0111
0.0186
0.0200
2.2580%mem
attn-weights-32kbf161.08×0.0351quack
flaggems
torch-compile
torch
0.0379
0.0645
0.0945
0.2794
4.7785%mem
lm-headf160.96×0.00448quack
torch-compile
flaggems
torch
0.00429
0.00925
0.0284
0.0402
0.4578%lat
bf160.99×0.00451quack
torch-compile
flaggems
torch
0.00445
0.00973
0.0300
0.0402
0.4548%lat
f321.63×0.00499quack
torch-compile
flaggems
torch
0.00813
0.0095
0.0316
0.0398
0.4115%lat
llama-8b-lm-headbf16/f321.76×0.00531torch-compile
quack
torch
0.00936
0.0131
0.0471
0.48313%lat
quack-throughput-256f161.10×0.00992quack
torch-compile
flaggems
torch
0.0109
0.0127
0.0275
0.0616
4.2375%mem
bf161.10×0.0100quack
torch-compile
flaggems
torch
0.0110
0.0134
0.0277
0.0621
4.1774%mem
f321.06×0.0171torch-compile
quack
torch
flaggems
0.0182
0.0184
0.0204
0.0295
2.4587%mem
quack-throughput-512f161.04×0.0177quack
torch-compile
flaggems
torch
0.0185
0.0225
0.0320
0.1226
4.7384%mem
bf161.00×0.0185quack
torch-compile
flaggems
torch
0.0186
0.0236
0.0324
0.1234
4.5380%mem
f321.04×0.0323quack
torch-compile
flaggems
torch
0.0335
0.0340
0.0386
0.0388
2.692%mem
quack-throughput-1024f161.04×0.0331quack
torch-compile
flaggems
torch
0.0345
0.0372
0.0422
0.2319
5.0790%mem
bf161.03×0.0334quack
torch-compile
flaggems
torch
0.0345
0.0402
0.0439
0.2342
5.0289%mem
f321.02×0.0641flaggems
quack
torch-compile
torch
0.0656
0.0658
0.0670
0.0705
2.6293%mem
quack-throughput-2048f161.04×0.0643quack
flaggems
torch-compile
torch
0.0670
0.0879
0.2042
0.4724
5.2293%mem
bf161.01×0.0658quack
flaggems
torch-compile
torch
0.0668
0.0895
0.2117
0.4758
5.191%mem
f321.05×0.1256flaggems
quack
torch
torch-compile
0.1321
0.1400
0.1572
0.2356
2.6795%mem
quack-throughput-4096f161.01×0.1290quack
flaggems
torch-compile
torch
0.1308
0.1904
0.4047
1.1616
5.292%mem
bf161.03×0.1255quack
flaggems
torch-compile
torch
0.1293
0.1919
0.4164
1.1701
5.3595%mem
f321.04×0.2510flaggems
quack
torch-compile
torch
0.2604
0.2821
0.4136
0.5376
2.6795%mem
quack-throughput-8192f161.04×0.2501quack
flaggems
torch-compile
torch
0.2612
0.2789
0.7872
2.6301
5.3795%mem
bf161.05×0.2500quack
flaggems
torch-compile
torch
0.2625
0.2866
0.7956
2.6438
5.3795%mem
f321.04×0.4980flaggems
quack
torch-compile
torch
0.5191
0.5609
0.7229
1.3855
2.796%mem
quack-throughput-16384f161.04×0.4991quack
flaggems
torch-compile
torch
0.5173
0.6724
1.3988
3.9435
5.3896%mem
bf161.05×0.5015quack
flaggems
torch-compile
torch
0.5276
0.6727
1.4761
3.9686
5.3595%mem
f321.05×0.9959quack
flaggems
torch-compile
torch
1.0482
1.0787
1.3605
1.4597
2.796%mem
quack-throughput-32768f161.01×1.0130quack
flaggems
torch-compile
torch
1.0271
1.8375
2.6446
8.2614
5.394%mem
bf161.07×0.9969quack
flaggems
torch-compile
torch
1.0667
1.9683
2.7911
8.3184
5.3996%mem
f321.08×1.9855quack
flaggems
torch-compile
torch
2.1450
2.2304
3.0248
3.2975
2.796%mem
quack-throughput-65536f161.10×1.9873quack
flaggems
torch-compile
torch
2.1782
3.3289
5.2408
17.9628
5.496%mem
bf161.13×1.9885quack
flaggems
torch-compile
torch
2.2475
3.4418
5.4473
18.0840
5.496%mem
f321.06×4.1362quack
flaggems
torch-compile
torch
4.3984
5.7127
6.1339
8.0287
2.692%mem
quack-throughput-131072f161.10×2.0571quack
flaggems
torch-compile
torch
2.2554
3.3157
5.1956
18.0238
5.2293%mem
bf161.07×2.1626quack
flaggems
torch-compile
torch
2.3186
3.4269
5.3917
18.1373
4.9788%mem
f321.19×4.0337quack
flaggems
torch-compile
torch
4.8113
5.9786
6.1635
8.0797
2.6695%mem
quack-throughput-262144f161.12×2.1757quack
flaggems
torch-compile
torch
2.4282
3.3956
5.2081
18.0531
4.9488%mem
bf161.11×2.2773quack
flaggems
torch-compile
torch
2.5258
3.4779
5.4074
18.1721
4.7184%mem
f321.09×4.5364quack
flaggems
torch-compile
torch
4.9370
6.1701
6.2321
8.1077
2.3784%mem
qwen3-8b-lm-head-b1f321.30×0.00454quack
torch-compile
flaggems
torch
0.00592
0.00951
0.0461
0.0568
0.1676%lat

LogSoftmaxFwd

x: [*S]

dim=-1

  • attn-weights-4kx: [32, 32, 4096]dtype=f16, bf16, f32
  • attn-weights-32kx: [32, 32, 32768]dtype=bf16
  • lm-headx: [4, 102400]dtype=f16, bf16, f32
  • llama-8b-lm-headx: [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-4kf162.01×0.00734torch-compile
flaggems
torch
0.0148
0.0202
0.0368
2.8651%mem
bf162.01×0.00771torch-compile
flaggems
torch
0.0155
0.0207
0.0371
2.7248%mem
f321.53×0.0104torch-compile
torch
flaggems
0.0158
0.0182
0.0207
2.0272%mem
attn-weights-32kbf162.11×0.0341torch-compile
flaggems
torch
0.0721
0.2570
0.2725
4.9287%mem
lm-headf162.18×0.00448torch-compile
torch
flaggems
0.00976
0.0358
0.4264
0.4578%lat
bf162.15×0.00454torch-compile
torch
flaggems
0.00979
0.0358
0.4275
0.4518%lat
f322.03×0.00499torch-compile
torch
flaggems
0.0101
0.0355
0.4101
0.4115%lat
llama-8b-lm-headbf16/f321.88×0.00536torch-compile
torch
0.0101
0.0419
0.47913%lat

LogSumExpFwd

x: [*S]

  • attn-weights-4kx: [32, 32, 4096]dim=-1dtype=f16, bf16
  • attn-weights-32kx: [32, 32, 32768]dim=-1dtype=bf16
  • lm-headx: [4, 102400]dim=-1dtype=f16, bf16
  • 3d-multidimx: [4, 128, 4096]dim=[0,2]dtype=f16
  • llama-8b-lm-headx: [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-4kf161.55×0.00627torch-compile
torch
0.0097
0.0657
2.6730%lat
bf161.52×0.00656torch-compile
torch
0.00995
0.0660
2.5628%lat
attn-weights-32kbf161.52×0.0272torch-compile
torch
0.0413
0.3889
4.9355%mem
lm-headf162.65×0.00416torch-compile
torch
0.0110
0.0457
0.3944%lat
bf162.58×0.00413torch-compile
torch
0.0107
0.0459
0.3974%lat
3d-multidimf161.62×0.00624torch-compile
torch
0.0101
0.0489
1.3415%lat
llama-8b-lm-headf321.63×0.0047torch-compile
torch
0.00765
0.0606
0.43610%lat

VectorNormFwd

x: [*S]

  • l1-hidden-statex: [2048, 4096]ord=1dim=-1dtype=f16, 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=f16, 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=f16, 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-statef161.20×0.00685torch-compile
flaggems
torch
0.00822
0.0150
0.0504
2.4554%mem
bf161.24×0.00688torch-compile
flaggems
torch
0.00854
0.0153
0.0508
2.4454%mem
l1-long-seqbf161.23×0.00387torch-compile
torch
flaggems
0.00477
0.0172
0.0376
1.0824%lat
l1-3d-multidimf161.03×0.0047torch-compile
torch
flaggems
0.00483
0.0195
0.0246
0.89220%lat
l1-mlp-intermediatef320.99×0.0252torch-compile
flaggems
torch
0.0249
0.0381
0.0384
1.7980%mem
l1-hidden-state-fp32bf16/f321.24×0.00688torch-compile
torch
0.00854
0.0495
2.4454%mem
l2-hidden-statef161.14×0.00694flaggems
torch-compile
torch
0.0079
0.0088
0.0505
2.4254%mem
bf161.13×0.00694flaggems
torch-compile
torch
0.00787
0.0089
0.0510
2.4254%mem
l2-long-seqbf161.20×0.00397torch-compile
flaggems
torch
0.00477
0.0143
0.0172
1.0623%lat
l2-3d-multidimf160.99×0.0048torch-compile
flaggems
torch
0.00474
0.0136
0.0195
0.87419%lat
l2-mlp-intermediatef320.98×0.0252torch-compile
flaggems
torch
0.0246
0.0307
0.0385
1.7980%mem
l2-hidden-state-fp32bf16/f321.28×0.00698torch-compile
torch
0.00893
0.0497
2.4153%mem
inf-hidden-statef161.11×0.00688flaggems
torch-compile
torch
0.00765
0.0107
0.0507
2.4454%mem
bf161.14×0.00691flaggems
torch-compile
torch
0.0079
0.0111
0.0511
2.4354%mem
inf-long-seqbf161.28×0.00413torch-compile
flaggems
torch
0.00528
0.0144
0.0176
1.0223%lat
inf-3d-multidimf161.13×0.0047torch-compile
flaggems
torch
0.0053
0.0128
0.0196
0.89220%lat
inf-mlp-intermediatef321.05×0.0252torch-compile
flaggems
torch
0.0265
0.0305
0.0397
1.7980%mem
inf-hidden-state-fp32bf16/f321.61×0.00691torch-compile
torch
0.0111
0.0499
2.4354%mem

CumsumFwd

x: [*S]

  • hidden-statex: [2048, 4096]dtype=f16, bf16
  • long-seqx: [64, 32768]dtype=bf16
  • llama-13b-hiddenx: [4096, 5120]dtype=f32
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-statef161.04×0.0100flaggems
torch-compile
torch
0.0104
0.0245
0.1476
0.83874%mem
bf161.03×0.0100flaggems
torch-compile
torch
0.0104
0.0246
0.1480
0.83574%mem
long-seqbf161.27×0.0063flaggems
torch-compile
torch
0.008
0.0122
0.0679
0.33330%lat
llama-13b-hiddenf321.05×0.0427flaggems
torch-compile
torch
0.0446
0.0657
0.1608
0.49187%mem

CumprodFwd

x: [*S]

  • hidden-statex: [2048, 4096]dtype=f16, bf16
  • long-seqx: [64, 32768]dtype=bf16
  • llama-13b-hiddenx: [4096, 5120]dtype=f32
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
hidden-statef162.45×0.00999torch-compile
torch
0.0244
0.1476
0.8475%mem
bf162.45×0.0100torch-compile
torch
0.0246
0.1480
0.83574%mem
long-seqbf161.94×0.0063torch-compile
torch
0.0122
0.0679
0.33330%lat
llama-13b-hiddenf321.54×0.0427torch-compile
torch
0.0658
0.1607
0.49187%mem

AllFwd

x: [*S]

  • mask-validation-4kx: [32, 4096]dim=-1dtype=bool, f16, bf16, f32
  • mask-validation-32kx: [32, 32768]dim=-1dtype=bool, i32, i64
  • 3d-multidimx: [4, 128, 4096]dim=[0,2]dtype=bool, c64, c128
  • mlp-intermediatex: [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.08×0.0017torch-compile
flaggems
torch
0.00182
0.00189
0.0180
0.07732%lat
f161.04×0.00179torch-compile
flaggems
torch
0.00186
0.00563
0.0159
0.1463%lat
bf161.04×0.00179torch-compile
flaggems
torch
0.00186
0.00562
0.0160
0.1463%lat
f321.02×0.00202torch-compile
flaggems
torch
0.00205
0.00579
0.0159
0.136%lat
mask-validation-32kbool1.40×0.0024torch-compile
flaggems
torch
0.00336
0.00669
0.0105
0.43710%lat
i321.29×0.00362torch-compile
flaggems
torch
0.00467
0.00982
0.0127
0.5826%lat
i641.28×0.00515torch-compile
flaggems
torch
0.00659
0.0106
0.0135
0.40736%lat
3d-multidimbool1.55×0.00275torch-compile
torch
flaggems
0.00426
0.0105
0.0118
0.76217%lat
c642.02×0.00704torch-compile
torch
flaggems
0.0142
0.0194
0.0214
0.59653%mem
c1281.62×0.0111torch-compile
torch
flaggems
0.0180
0.0233
0.0251
0.37767%mem
mlp-intermediatebool1.30×0.00822flaggems
torch-compile
torch
0.0107
0.0151
0.0281
2.7461%mem

AnyFwd

x: [*S]

  • mask-validation-4kx: [32, 4096]dim=-1dtype=bool, f16, bf16, f32
  • mask-validation-32kx: [32, 32768]dim=-1dtype=bool, i32, i64
  • 3d-multidimx: [4, 128, 4096]dim=[0,2]dtype=bool, c64, c128
  • mlp-intermediatex: [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.04×0.0017torch-compile
flaggems
torch
0.00176
0.00192
0.0181
0.07732%lat
f161.02×0.00179torch-compile
flaggems
torch
0.00182
0.00563
0.0164
0.1463%lat
bf161.03×0.00178torch-compile
flaggems
torch
0.00182
0.00566
0.0165
0.1483%lat
f321.02×0.00198torch-compile
flaggems
torch
0.00202
0.00579
0.0164
0.1326%lat
mask-validation-32kbool1.41×0.00237torch-compile
flaggems
torch
0.00333
0.00672
0.0108
0.44310%lat
i321.26×0.00358torch-compile
flaggems
torch
0.00453
0.00986
0.0133
0.58526%lat
i641.18×0.00502torch-compile
flaggems
torch
0.00595
0.0106
0.0140
0.41737%lat
3d-multidimbool1.42×0.00272torch-compile
flaggems
torch
0.00387
0.0119
0.0192
0.77117%lat
c641.91×0.00704torch-compile
flaggems
torch
0.0134
0.0214
0.0241
0.59653%mem
c1281.55×0.0111torch-compile
flaggems
torch
0.0173
0.0251
0.0279
0.37767%mem
mlp-intermediatebool1.32×0.00826flaggems
torch-compile
torch
0.0109
0.0118
0.0300
2.7361%mem

CountNonzeroFwd

x: [*S]

  • sparsity-hiddenx: [2048, 4096]dim=-1dtype=f16, bf16, f32
  • sparsity-seqx: [32, 32768]dim=-1dtype=f16, bool, i32, i64
  • 3d-multidimx: [4, 128, 4096]dim=[0,2]dtype=f16, c64, c128
  • sparsity-mlpx: [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-hiddenf161.33×0.00688torch-compile
torch
0.00918
0.0651
2.4454%mem
bf161.33×0.00688torch-compile
torch
0.00918
0.0651
2.4454%mem
f321.06×0.0108torch-compile
torch
0.0114
0.0697
1.5669%mem
sparsity-seqf161.24×0.00304torch-compile
torch
0.00378
0.0152
0.6915%lat
bool1.42×0.00243torch-compile
torch
0.00346
0.0134
0.86210%lat
i321.27×0.00368torch-compile
torch
0.00467
0.0161
0.5725%lat
i641.25×0.00522torch-compile
torch
0.0065
0.0175
0.40236%lat
3d-multidimf161.29×0.00371torch-compile
torch
0.00478
0.0219
1.1325%lat
c641.58×0.00701torch-compile
torch
0.0111
0.0256
0.59953%mem
c1281.91×0.0112torch-compile
torch
0.0213
0.0358
0.37667%mem
sparsity-mlpf161.21×0.0141torch-compile
torch
0.0172
0.1584
3.1971%mem