跳转至

Other

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

12 ops, 72 workloads — FFT 1 · Hyper-Connections 3 · Engram 4 · Other 4.

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.

FFT

FFTC2CFwd

input: [*B, n]

  • latency-4kinput: [4096]dtype=c64
  • throughput-4kinput: [64, 4096]dtype=c64, c128
  • longconv-16kinput: [64, 16384]dtype=c64
  • longconv-64kinput: [8, 65536]dtype=c64
  • spectrogram-1kinput: [256, 1024]dtype=c64
  • fnet-512input: [4096, 512]dtype=c64
  • shortconv-64input: [65536, 64]dtype=c64
  • scientific-1minput: [4, 1048576]dtype=c128
  • spectrogram-1k-b300input: [300, 1024]dtype=c64
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
latency-4kc641.55×0.00355torch-cufft
torch-compile
0.00552
0.00552
0.0692··
throughput-4kc641.34×0.004torch-cufft
torch-compile
0.00534
0.00538
3.93··
c1281.19×0.00656torch-cufft
torch-compile
0.00784
0.00787
2.4··
longconv-16kc641.07×0.0144torch-cufft
torch-compile
0.0155
0.0155
5.1··
longconv-64kc641.28×0.00797torch-cufft
torch-compile
0.0102
0.0102
5.26··
spectrogram-1kc641.20×0.00307torch-cufft
torch-compile
0.00368
0.00368
4.27··
fnet-512c641.25×0.00973torch-cufft
torch-compile
0.0122
0.0122
9.7··
shortconv-64c641.21×0.0171torch-cufft
torch-compile
0.0207
0.0207
7.35··
scientific-1mc1281.40×0.1003torch-compile
torch-cufft
0.1402
0.1403
4.18··
spectrogram-1k-b300c641.15×0.00352torch-compile
torch-cufft
0.00403
0.00403
4.36··

Hyper-Connections

HyperConnectionPreFwd

residual: [*S, n, C], bf16fn: [n * n + 2 * n, n * C]hc_scale: [3]hc_base: [n * n + 2 * n]

hc_pre_eps=1e-06hc_sinkhorn_eps=1e-06hc_post_mult_value=2sinkhorn_repeat=20dtype=f32

  • dsv4-flash-t1residual: [1, 4, 4096], bf16fn: [24, 16384]hc_scale: [3]hc_base: [24]rms_eps=1e-06
  • dsv4-flash-t4096residual: [4096, 4, 4096], bf16fn: [24, 16384]hc_scale: [3]hc_base: [24]rms_eps=1e-06
  • dsv4-flash-t32768residual: [32768, 4, 4096], bf16fn: [24, 16384]hc_scale: [3]hc_base: [24]rms_eps=1e-06
  • glm-5.3-flash-t3000residual: [3000, 4, 4096], bf16fn: [24, 16384]hc_scale: [3]hc_base: [24]rms_eps=1e-05
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
dsv4-flash-t1f321.25×0.00819tilekernels
vllm
torch-compile
torch-ref
0.0102
0.0107
0.0545
0.2300
0.104··
dsv4-flash-t4096f321.03×0.0815tilekernels
vllm
torch-compile
torch-ref
0.0837
0.0893
0.3686
1.4485
42.9··
dsv4-flash-t32768f321.01×0.6108tilekernels
vllm
torch-compile
torch-ref
0.6163
0.6601
2.4491
9.5602
45.8··
glm-5.3-flash-t3000f321.13×0.0638tilekernels
vllm
torch-compile
torch-ref
0.0720
0.0754
0.2895
1.1453
40.2··

HyperConnectionPostFwd

x: [*S, C], bf16residual: [*S, n, C], bf16post_layer_mix: [*S, n, 1]comb_res_mix: [*S, n, n]

dtype=f32

  • dsv4-flash-t1x: [1, 4096], bf16residual: [1, 4, 4096], bf16post_layer_mix: [1, 4, 1]comb_res_mix: [1, 4, 4]
  • dsv4-flash-t4096x: [4096, 4096], bf16residual: [4096, 4, 4096], bf16post_layer_mix: [4096, 4, 1]comb_res_mix: [4096, 4, 4]
  • dsv4-flash-t32768x: [32768, 4096], bf16residual: [32768, 4, 4096], bf16post_layer_mix: [32768, 4, 1]comb_res_mix: [32768, 4, 4]

x: [*S, C]residual: [*S, n, C]post_layer_mix: [*S, n, 1]comb_res_mix: [*S, n, n]

  • glm-5.3-flash-t3000x: [3000, 4096]residual: [3000, 4, 4096]post_layer_mix: [3000, 4, 1]comb_res_mix: [3000, 4, 4]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
dsv4-flash-t1f322.24×0.00167tilekernels
vllm
torch-compile
torch-ref
0.00373
0.00419
0.00579
0.0150
0.0984··
dsv4-flash-t4096f321.03×0.0710vllm
tilekernels
torch-compile
torch-ref
0.0728
0.0747
1.3674
1.9630
9.45··
dsv4-flash-t32768f321.01×0.5657vllm
tilekernels
torch-compile
torch-ref
0.5728
0.5750
10.8751
15.5884
9.49··
glm-5.3-flash-t3000bf161.02×0.0515vllm
tilekernels
torch-compile
torch-ref
0.0527
0.0555
1.0040
1.4488
9.55··

HyperConnectionHeadFwd

hidden_states: [*S, n, C], bf16hc_fn: [n, n * C]hc_scale: [1]hc_base: [n]

hc_eps=1e-06dtype=f32

  • dsv4-flash-t1hidden_states: [1, 4, 4096], bf16hc_fn: [4, 16384]hc_scale: [1]hc_base: [4]rms_norm_eps=1e-06
  • dsv4-flash-b64hidden_states: [64, 4, 4096], bf16hc_fn: [4, 16384]hc_scale: [1]hc_base: [4]rms_norm_eps=1e-06
  • dsv4-flash-t4096hidden_states: [4096, 4, 4096], bf16hc_fn: [4, 16384]hc_scale: [1]hc_base: [4]rms_norm_eps=1e-06
  • glm-5.3-flash-t3000hidden_states: [3000, 4, 4096], bf16hc_fn: [4, 16384]hc_scale: [1]hc_base: [4]rms_norm_eps=1e-05
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
dsv4-flash-t1f321.43×0.00563tilekernels
vllm
torch-compile
torch-ref
0.00803
0.00842
0.00963
0.0331
0.0349··
dsv4-flash-b64f321.48×0.00563vllm
tilekernels
torch-compile
torch-ref
0.00832
0.0108
0.0229
0.0563
2.23··
dsv4-flash-t4096f321.25×0.0670tilekernels
vllm
torch-compile
torch-ref
0.0836
0.1447
0.3105
1.1908
12··
glm-5.3-flash-t3000f321.46×0.0495tilekernels
vllm
torch-compile
torch-ref
0.0721
0.1114
0.2313
0.8863
11.9··

Engram

NGramHashFwd

input_ids: [B, L]context: [B, W]multipliers: [N]primes, offsets: [Hd]

  • qwen3.8-flash-prefillinput_ids: [1, 4096]context: [1, 2]multipliers: [3]primes, offsets: [16]eos_token_id=248044dtype=i64

input_ids: [Tt]context: [S, W]multipliers: [N]primes, offsets: [Hd]cu_seqlens: [B + 1], i32context_indices: [B], i32

  • qwen3.8-flash-varleninput_ids: [8192]context: [64, 2]multipliers: [3]primes, offsets: [16]cu_seqlens: [3], i32context_indices: [2], i32seq_lens=[3000,5192]eos_token_id=248044dtype=i64

input_ids: [B, L]context: [S, W]multipliers: [N]primes, offsets: [Hd]context_indices: [B], i32

  • qwen3.8-flash-decodeinput_ids: [64, 1]context: [256, 2]multipliers: [3]primes, offsets: [16]context_indices: [64], i32eos_token_id=248044dtype=i64

input_ids: [B, L]context: [S, W]multipliers: [N]primes, offsets: [Hd]context_indices, num_accepted_tokens: [B], i32

  • qwen3.8-flash-verifyinput_ids: [64, 4]context: [256, 5]multipliers: [3]primes, offsets: [16]context_indices, num_accepted_tokens: [64], i32eos_token_id=248044dtype=i64
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
qwen3.8-flash-prefilli648.46×0.00422torch-compile
torch
0.0357
0.1840
···
qwen3.8-flash-varleni649.49×0.0057torch-compile
torch
0.0541
0.2071
···
qwen3.8-flash-decodei643.31×0.00499torch-compile
torch
0.0165
0.1385
···
qwen3.8-flash-verifyi643.45×0.00523torch-compile
torch
0.0180
0.1497
···

EngramGateConvFwd

H, k, v: [M, seq_len, d]rms_w_h, rms_w_v: [d]conv_w: [4, d]

  • train-s32H, k, v: [1, 32, 256]rms_w_h, rms_w_v: [256]conv_w: [4, 256]dtype=f16
  • train-s64H, k, v: [2, 64, 512]rms_w_h, rms_w_v: [512]conv_w: [4, 512]dtype=f16
  • train-s128H, k, v: [1, 128, 256]rms_w_h, rms_w_v: [256]conv_w: [4, 256]dtype=bf16
  • train-s96H, k, v: [3, 96, 768]rms_w_h, rms_w_v: [768]conv_w: [4, 768]dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
train-s32f162.92×0.00403torch-compile
torch-ref
0.0118
0.0748
0.0583··
train-s64f162.49×0.0048torch-compile
torch-ref
0.0120
0.0862
0.394··
train-s128bf162.89×0.00451torch-compile
torch-ref
0.0130
0.0791
0.21··
train-s96bf162.82×0.00666torch-compile
torch-ref
0.0188
0.0992
0.96··

EngramGateConvBwd

dY, H, k, v, vhat: [M, seq_len, d]rms_w_h, rms_w_v: [d]conv_w: [4, d]alpha, rrms_h, rrms_k, rrms_v: [M, seq_len], f32

  • train-s32dY, H, k, v, vhat: [1, 32, 256]rms_w_h, rms_w_v: [256]conv_w: [4, 256]alpha, rrms_h, rrms_k, rrms_v: [1, 32], f32dtype=f16
  • train-s64dY, H, k, v, vhat: [2, 64, 512]rms_w_h, rms_w_v: [512]conv_w: [4, 512]alpha, rrms_h, rrms_k, rrms_v: [2, 64], f32dtype=f16
  • train-s128dY, H, k, v, vhat: [1, 128, 256]rms_w_h, rms_w_v: [256]conv_w: [4, 256]alpha, rrms_h, rrms_k, rrms_v: [1, 128], f32dtype=bf16
  • train-s96dY, H, k, v, vhat: [3, 96, 768]rms_w_h, rms_w_v: [768]conv_w: [4, 768]alpha, rrms_h, rrms_k, rrms_v: [3, 96], f32dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
train-s32f1623.68×0.00709torch0.16790.0785··
train-s64f1618.32×0.0109torch0.20050.41··
train-s128bf1618.11×0.0101torch0.18260.224··
train-s96bf1611.41×0.0216torch0.24650.703··

EngramDecodeFwd

e_t: [batch, d_mem]h_t: [batch, d]conv_state: [batch, L, d]W_K, W_V: [d_mem, d]rms_w_h, rms_w_v: [d]conv_w: [conv_kernel_size, d]

  • serving-b1e_t: [1, 512]h_t: [1, 256]conv_state: [1, 12, 256]W_K, W_V: [512, 256]rms_w_h, rms_w_v: [256]conv_w: [4, 256]max_conv_len=12dilation=3dtype=f16
  • serving-b4e_t: [4, 1024]h_t, conv_w: [4, 512]conv_state: [4, 20, 512]W_K, W_V: [1024, 512]rms_w_h, rms_w_v: [512]max_conv_len=20dilation=5dtype=f16
  • serving-b8e_t: [8, 512]h_t: [8, 256]conv_state: [8, 18, 256]W_K, W_V: [512, 256]rms_w_h, rms_w_v: [256]conv_w: [4, 256]max_conv_len=18dilation=3dtype=bf16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
serving-b1f163.01×0.00429torch-compile
torch-ref
0.0129
0.0879
0.124··
serving-b4f162.78×0.00906torch-compile
torch-ref
0.0252
0.1162
0.932··
serving-b8bf163.41×0.00618torch-compile
torch-ref
0.0211
0.1037
0.687··

Other

HadamardTransformFwd

x: [*B, n]

dtype=bf16

  • llama-8b-prefillx: [4096, 4096]
  • llama-8b-decodex: [64, 4096]
  • llama-70b-prefillx: [4096, 8192]
  • llama-70b-decodex: [64, 8192]
  • llama3-head-dimx: [262144, 128]
  • non-pow2-order20x: [2048, 2560]base_order=20
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
llama-8b-prefillbf161.31×0.0177hadacore
fast-hadamard-transform
0.0232
0.0400
12.3··
llama-8b-decodebf161.03×0.00237hadacore
fast-hadamard-transform
0.00243
0.00275
1.44··
llama-70b-prefillbf161.71×0.0362hadacore
fast-hadamard-transform
0.0620
0.0800
13··
llama-70b-decodebf161.17×0.00307hadacore
fast-hadamard-transform
0.00358
0.00429
2.39··
llama3-head-dimbf161.23×0.0343hadacore
fast-hadamard-transform
0.0420
0.1622
7.83··
non-pow2-order20bf161.87×0.00845fast-hadamard-transform0.015829.8··

EmbeddingFwd

input: [*S]weight: [V, D], bf16

dtype=i64/bf16

  • qwen3.6-27b-prefillinput: [1, 4096]weight: [248320, 5120], bf16
  • qwen3.6-27b-prefill-32kinput: [1, 32768]weight: [248320, 5120], bf16
  • qwen3.6-27b-decode-b64input: [64, 1]weight: [248320, 5120], bf16
  • llama3-8b-prefillinput: [1, 4096]weight: [128256, 4096], bf16
  • qwen3.6-35b-a3b-prefillinput: [1, 4096]weight: [248320, 2048], bf16
  • dsv4-flash-prefillinput: [1, 4096]weight: [129280, 4096], bf16
  • glm-5.3-flash-prefillinput: [1, 4096]weight: [154880, 4096], bf16
  • qwen3.8-flash-prefillinput: [1, 4096]weight: [248320, 2560], bf16
  • ngram-table-64bitinput: [1, 4096]weight: [16777216, 160], bf16

input: [*S]weight: [V, D], f16

  • llama3-8b-prefillinput: [1, 4096]weight: [128256, 4096], f16dtype=i32/f16

input: [*S]weight: [V, D], f32

  • qwen3.6-vision-posinput: [4, 4096]weight: [2304, 1152], f32dtype=i64/f32

input: [*S]weight: [V, D]

  • dsv4-flash-tid2eidinput: [1, 4096]weight: [129280, 6]dtype=i64/i64
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
qwen3.6-27b-prefilli64/bf161.08×0.0202torch-compile
torch
0.0219
0.0226
···
qwen3.6-27b-prefill-32ki64/bf161.13×0.1581torch-compile
torch
0.1789
0.1951
···
qwen3.6-27b-decode-b64i64/bf161.00×0.0023torch-compile
torch
0.0023
0.00233
···
llama3-8b-prefilli64/bf161.04×0.0165torch-compile
torch
0.0172
0.0176
···
qwen3.6-35b-a3b-prefilli64/bf161.02×0.00918torch-compile
torch
0.00934
0.00957
···
dsv4-flash-prefilli64/bf161.04×0.0165torch-compile
torch
0.0172
0.0177
···
glm-5.3-flash-prefilli64/bf161.05×0.0166torch-compile
torch
0.0173
0.0177
···
qwen3.8-flash-prefilli64/bf161.02×0.0110torch-compile
torch
0.0113
0.0134
···
ngram-table-64biti64/bf161.00×0.00253torch-compile
torch
0.00253
0.00439
···
llama3-8b-prefilli32/f161.06×0.0165torch-compile
torch
0.0174
0.0177
···
qwen3.6-vision-posi64/f321.10×0.0227torch-compile
torch
0.0250
0.0416
···
dsv4-flash-tid2eidi64/i641.03×0.00218torch-compile
torch
0.00224
0.00435
···

ConcatFwd

dim=-1

  • qwen36-mtp-prefilltensors[0], tensors[1]: [4096, 5120], bf16S=[[4096, 5120], [4096, 5120]]dtype=bfloat16.bfloat16
  • qwen36-mtp-prefilltensors[0], tensors[1]: [4096, 5120], f32S=[[4096, 5120], [4096, 5120]]dtype=float32.float32
  • qwen36-mtp-drafttensors[0], tensors[1]: [64, 5120], bf16S=[[64, 5120], [64, 5120]]dtype=bfloat16.bfloat16
  • qwen36-mtp-decode-4tensors[0], tensors[1]: [4, 5120], bf16S=[[4, 5120], [4, 5120]]dtype=bfloat16.bfloat16
  • qwen36-mtp-decodetensors[0], tensors[1]: [1, 5120], bf16S=[[1, 5120], [1, 5120]]dtype=bfloat16.bfloat16
  • narrow-rowstensors[0], tensors[1]: [300000, 8], f16S=[[300000, 8], [300000, 8]]dtype=float16.float16

S=[[2048, 1024], [2048, 4096], [2048, 3000]]dim=1

  • uneven-colstensors[0]: [2048, 1024], bf16tensors[1]: [2048, 4096], bf16tensors[2]: [2048, 3000], bf16dtype=bfloat16.bfloat16.bfloat16
  • uneven-colstensors[0]: [2048, 1024], bf16tensors[1]: [2048, 4096], f16tensors[2]: [2048, 3000], bf16dtype=bfloat16.float16.bfloat16

S=[[512, 4096], [1000, 4096], [512, 4096], [24, 4096]]

  • uneven-rowstensors[0], tensors[2]: [512, 4096], bf16tensors[1]: [1000, 4096], bf16tensors[3]: [24, 4096], bf16dtype=bfloat16.bfloat16.bfloat16.bfloat16
  • uneven-rowstensors[0], tensors[2]: [512, 4096], f16tensors[1]: [1000, 4096], f32tensors[3]: [24, 4096], f16dtype=float16.float32.float16.float16
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
qwen36-mtp-prefillbfloat16.bfloat161.00×0.0375torch-compile
torch
0.0375
0.0408
···
qwen36-mtp-prefillfloat32.float321.01×0.0765torch-compile
torch
0.0770
0.0829
···
qwen36-mtp-draftbfloat16.bfloat160.97×0.00195torch-compile
torch
0.00189
0.00227
···
qwen36-mtp-decode-4bfloat16.bfloat161.00×0.00147torch-compile
torch
0.00147
0.00173
···
qwen36-mtp-decodebfloat16.bfloat161.02×0.00138torch-compile
torch
0.00141
0.00163
···
narrow-rowsfloat16.float161.01×0.00557torch-compile
torch
0.0056
0.0088
···
uneven-colsbfloat16.bfloat16.bfloat161.00×0.0159torch-compile
torch
0.0159
0.0171
···
uneven-colsbfloat16.float16.bfloat161.01×0.0236torch-compile
torch
0.0237
0.0725
···
uneven-rowsbfloat16.bfloat16.bfloat16.bfloat160.99×0.00893torch-compile
torch
0.00883
0.0121
···
uneven-rowsfloat16.float32.float16.float160.99×0.0142torch-compile
torch
0.0141
0.0213
···

MaskedScatterFwd

input: [*A]mask: [*M], boolsource: [*R]

  • qwen3.6-27b-image-4kinput, source: [4096, 5120]mask: [4096, 1], booldtype=bf16
  • qwen3.6-27b-image-16kinput, source: [16384, 5120]mask: [16384, 1], booldtype=bf16
  • qwen3.6-35b-a3b-imageinput, source: [4096, 2048]mask: [4096, 1], booldtype=bf16
  • glm-5.3-flash-imageinput, source: [4096, 4096]mask: [4096, 1], booldtype=bf16
  • qwen3.8-flash-imageinput, source: [4096, 2560]mask: [4096, 1], booldtype=bf16
  • llava-image-3kinput, source: [3000, 4096]mask: [3000, 1], booldtype=f16, f32
Workload dtype Ratio Device time Alternatives Throughput SOL Bound
alt / ours ms name ms TFLOP/s of ceiling by
qwen3.6-27b-image-4kbf163.01×0.0213vllm
torch
torch-compile
0.0640
0.2343
0.4483
···
qwen3.6-27b-image-16kbf162.85×0.0837vllm
torch
torch-compile
0.2382
0.8992
1.7706
···
qwen3.6-35b-a3b-imagebf162.96×0.0105vllm
torch
torch-compile
0.0312
0.1002
0.1853
···
glm-5.3-flash-imagebf163.04×0.0177vllm
torch
torch-compile
0.0537
0.1901
0.3607
···
qwen3.8-flash-imagebf162.96×0.0122vllm
torch
torch-compile
0.0361
0.1228
0.2295
···
llava-image-3kf163.02×0.0142vllm
torch
torch-compile
0.0429
0.1422
0.2666
···
f321.73×0.0251vllm
torch
torch-compile
0.0435
0.1544
0.2717
···