MoE¶
14 ops, 153 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.
FusedMoEFwd¶
hidden_states: [T, H]gating_output: [T, E], f32w_gate_up: [E, 2 * F, H]w_down: [E, H, F]
top_k=8renormalize=truedtype=bf16
qwen3-hidden_states: [512, 4096]gating_output: [512, 128], f32w_gate_up: [128, 3072, 4096]w_down: [128, 4096, 1536]235b- decode qwen3-hidden_states: [4096, 4096]gating_output: [4096, 128], f32w_gate_up: [128, 3072, 4096]w_down: [128, 4096, 1536]235b- prefill qwen3-hidden_states: [1, 2048]gating_output: [1, 128], f32w_gate_up: [128, 1536, 2048]w_down: [128, 2048, 768]30b- decode- b1 qwen3-hidden_states: [32, 2048]gating_output: [32, 128], f32w_gate_up: [128, 1536, 2048]w_down: [128, 2048, 768]30b- decode- b32
hidden_states: [T, H]gating_output: [T, E], f32w_gate_up: [E, 2 * F, H]w_down: [E, H, F]correction_bias: [E], f32
top_k=8scoring_func=sigmoidrenormalize=truedtype=bf16
ds-hidden_states: [512, 7168]gating_output: [512, 256], f32w_gate_up: [256, 4096, 7168]w_down: [256, 7168, 2048]correction_bias: [256], f32num_expert_group=8topk_group=4routed_scaling_factor=2.5v3- grouped- decode ds-hidden_states: [4096, 7168]gating_output: [4096, 256], f32w_gate_up: [256, 4096, 7168]w_down: [256, 7168, 2048]correction_bias: [256], f32num_expert_group=8topk_group=4routed_scaling_factor=2.5v3- grouped- prefill kimi-hidden_states: [512, 7168]gating_output: [512, 256], f32w_gate_up: [256, 4096, 7168]w_down: [256, 7168, 2048]correction_bias: [256], f32routed_scaling_factor=2.827k2- decode kimi-hidden_states: [4096, 7168]gating_output: [4096, 256], f32w_gate_up: [256, 4096, 7168]w_down: [256, 7168, 2048]correction_bias: [256], f32routed_scaling_factor=2.827k2- prefill
hidden_states: [T, H]gating_output: [T, E], f32w_gate_up: [E, 2 * F, H]w_down: [E, H, F]b_gate_up: [E, 2 * F]b_down: [E, H]
top_k=4renormalize=trueactivation=swigluoaidtype=bf16
gpt-hidden_states: [64, 2880]gating_output: [64, 128], f32w_gate_up: [128, 5760, 2880]w_down: [128, 2880, 2880]b_gate_up: [128, 5760]b_down: [128, 2880]oss- 120b- decode gpt-hidden_states: [4096, 2880]gating_output: [4096, 128], f32w_gate_up: [128, 5760, 2880]w_down: [128, 2880, 2880]b_gate_up: [128, 5760]b_down: [128, 2880]oss- 120b- prefill gpt-hidden_states: [1024, 2880]gating_output: [1024, 32], f32w_gate_up: [32, 5760, 2880]w_down: [32, 2880, 2880]b_gate_up: [32, 5760]b_down: [32, 2880]oss- 20b- prefill
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
qwen3- | bf16 | 1.03× | 1.1792 | vllmflashinfer-cutlass | 1.2127 1.2488 | 131 | · | · |
qwen3- | bf16 | 1.06× | 2.4454 | flashinfer-cutlassvllm | 2.5923 3.0634 | 506 | · | · |
qwen3- | bf16 | 1.11× | 0.0314 | vllmflashinfer-cutlass | 0.0350 0.0472 | 2.41 | · | · |
qwen3- | bf16 | 1.04× | 0.2553 | vllmflashinfer-cutlass | 0.2644 0.2711 | 9.47 | · | · |
ds- | bf16 | 1.04× | 3.6063 | vllmflashinfer-cutlass | 3.7495 4.4183 | 100 | · | · |
ds- | bf16 | 1.01× | 7.2715 | flashinfer-cutlassvllm | 7.3441 8.6737 | 397 | · | · |
kimi- | bf16 | 1.04× | 3.5114 | vllmflashinfer-cutlass | 3.6675 4.3639 | 103 | · | · |
kimi- | bf16 | 1.04× | 6.9516 | flashinfer-cutlassvllm | 7.2285 8.4064 | 415 | · | · |
gpt- | bf16 | 1.04× | 1.1907 | flashinfer-cutlassvllm | 1.2354 1.2383 | 10.7 | · | · |
gpt- | bf16 | 1.15× | 2.0257 | flashinfer-cutlassvllm | 2.3307 3.0164 | 403 | · | · |
gpt- | bf16 | 1.22× | 0.5167 | flashinfer-cutlassvllm | 0.6278 0.8160 | 395 | · | · |
FusedMoESharedExpertFwd¶
hidden_states: [T, H]gating_output: [T, E], f32w_gate_up: [E, 2 * F, H]w_down: [E, H, F]correction_bias: [E], f32shared_w_gate_up: [2 * S, H]shared_w_down: [H, S]
top_k=8scoring_func=sigmoidrenormalize=truedtype=bf16
kimi-hidden_states: [1, 7168]gating_output: [1, 384], f32w_gate_up: [384, 4096, 7168]w_down: [384, 7168, 2048]correction_bias: [384], f32shared_w_gate_up: [36864, 7168]shared_w_down: [7168, 18432]routed_scaling_factor=2.827k2- t1 kimi-hidden_states: [32, 7168]gating_output: [32, 384], f32w_gate_up: [384, 4096, 7168]w_down: [384, 7168, 2048]correction_bias: [384], f32shared_w_gate_up: [36864, 7168]shared_w_down: [7168, 18432]routed_scaling_factor=2.827k2- t32 kimi-hidden_states: [64, 7168]gating_output: [64, 384], f32w_gate_up: [384, 4096, 7168]w_down: [384, 7168, 2048]correction_bias: [384], f32shared_w_gate_up: [36864, 7168]shared_w_down: [7168, 18432]routed_scaling_factor=2.827k2- t64 kimi-hidden_states: [128, 7168]gating_output: [128, 384], f32w_gate_up: [384, 4096, 7168]w_down: [384, 7168, 2048]correction_bias: [384], f32shared_w_gate_up: [36864, 7168]shared_w_down: [7168, 18432]routed_scaling_factor=2.827k2- t128 kimi-hidden_states: [512, 7168]gating_output: [512, 384], f32w_gate_up: [384, 4096, 7168]w_down: [384, 7168, 2048]correction_bias: [384], f32shared_w_gate_up: [36864, 7168]shared_w_down: [7168, 18432]routed_scaling_factor=2.827k2- t512 kimi-hidden_states: [2048, 7168]gating_output: [2048, 384], f32w_gate_up: [384, 4096, 7168]w_down: [384, 7168, 2048]correction_bias: [384], f32shared_w_gate_up: [36864, 7168]shared_w_down: [7168, 18432]routed_scaling_factor=2.827k2- t2048 kimi-hidden_states: [4096, 7168]gating_output: [4096, 384], f32w_gate_up: [384, 4096, 7168]w_down: [384, 7168, 2048]correction_bias: [384], f32shared_w_gate_up: [36864, 7168]shared_w_down: [7168, 18432]routed_scaling_factor=2.827k2- t4096 ds-hidden_states: [1, 7168]gating_output: [1, 256], f32w_gate_up: [256, 4096, 7168]w_down: [256, 7168, 2048]correction_bias: [256], f32shared_w_gate_up: [4096, 7168]shared_w_down: [7168, 2048]num_expert_group=8topk_group=4routed_scaling_factor=2.5v3- grouped- t1 ds-hidden_states: [32, 7168]gating_output: [32, 256], f32w_gate_up: [256, 4096, 7168]w_down: [256, 7168, 2048]correction_bias: [256], f32shared_w_gate_up: [4096, 7168]shared_w_down: [7168, 2048]num_expert_group=8topk_group=4routed_scaling_factor=2.5v3- grouped- t32 ds-hidden_states: [64, 7168]gating_output: [64, 256], f32w_gate_up: [256, 4096, 7168]w_down: [256, 7168, 2048]correction_bias: [256], f32shared_w_gate_up: [4096, 7168]shared_w_down: [7168, 2048]num_expert_group=8topk_group=4routed_scaling_factor=2.5v3- grouped- t64 ds-hidden_states: [128, 7168]gating_output: [128, 256], f32w_gate_up: [256, 4096, 7168]w_down: [256, 7168, 2048]correction_bias: [256], f32shared_w_gate_up: [4096, 7168]shared_w_down: [7168, 2048]num_expert_group=8topk_group=4routed_scaling_factor=2.5v3- grouped- t128 ds-hidden_states: [512, 7168]gating_output: [512, 256], f32w_gate_up: [256, 4096, 7168]w_down: [256, 7168, 2048]correction_bias: [256], f32shared_w_gate_up: [4096, 7168]shared_w_down: [7168, 2048]num_expert_group=8topk_group=4routed_scaling_factor=2.5v3- grouped- t512 ds-hidden_states: [2048, 7168]gating_output: [2048, 256], f32w_gate_up: [256, 4096, 7168]w_down: [256, 7168, 2048]correction_bias: [256], f32shared_w_gate_up: [4096, 7168]shared_w_down: [7168, 2048]num_expert_group=8topk_group=4routed_scaling_factor=2.5v3- grouped- t2048 ds-hidden_states, shared_w_gate_up: [4096, 7168]gating_output: [4096, 256], f32w_gate_up: [256, 4096, 7168]w_down: [256, 7168, 2048]correction_bias: [256], f32shared_w_down: [7168, 2048]num_expert_group=8topk_group=4routed_scaling_factor=2.5v3- grouped- t4096 glm45-hidden_states: [1, 5120]gating_output: [1, 160], f32w_gate_up: [160, 3072, 5120]w_down: [160, 5120, 1536]correction_bias: [160], f32shared_w_gate_up: [3072, 5120]shared_w_down: [5120, 1536]routed_scaling_factor=2.5t1 glm45-hidden_states: [32, 5120]gating_output: [32, 160], f32w_gate_up: [160, 3072, 5120]w_down: [160, 5120, 1536]correction_bias: [160], f32shared_w_gate_up: [3072, 5120]shared_w_down: [5120, 1536]routed_scaling_factor=2.5t32 glm45-hidden_states: [64, 5120]gating_output: [64, 160], f32w_gate_up: [160, 3072, 5120]w_down: [160, 5120, 1536]correction_bias: [160], f32shared_w_gate_up: [3072, 5120]shared_w_down: [5120, 1536]routed_scaling_factor=2.5t64 glm45-hidden_states: [128, 5120]gating_output: [128, 160], f32w_gate_up: [160, 3072, 5120]w_down: [160, 5120, 1536]correction_bias: [160], f32shared_w_gate_up: [3072, 5120]shared_w_down: [5120, 1536]routed_scaling_factor=2.5t128 glm45-hidden_states: [512, 5120]gating_output: [512, 160], f32w_gate_up: [160, 3072, 5120]w_down: [160, 5120, 1536]correction_bias: [160], f32shared_w_gate_up: [3072, 5120]shared_w_down: [5120, 1536]routed_scaling_factor=2.5t512 glm45-hidden_states: [2048, 5120]gating_output: [2048, 160], f32w_gate_up: [160, 3072, 5120]w_down: [160, 5120, 1536]correction_bias: [160], f32shared_w_gate_up: [3072, 5120]shared_w_down: [5120, 1536]routed_scaling_factor=2.5t2048 glm45-hidden_states: [4096, 5120]gating_output: [4096, 160], f32w_gate_up: [160, 3072, 5120]w_down: [160, 5120, 1536]correction_bias: [160], f32shared_w_gate_up: [3072, 5120]shared_w_down: [5120, 1536]routed_scaling_factor=2.5t4096
hidden_states: [T, H]gating_output: [T, E], f32w_gate_up: [E, 2 * F, H]w_down: [E, H, F]
qwen3-hidden_states: [512, 4096]gating_output: [512, 128], f32w_gate_up: [128, 3072, 4096]w_down: [128, 4096, 1536]top_k=8renormalize=truedtype=bf16235b- t512
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
kimi- | bf16 | 1.10× | 0.3579 | flashinfer-cutlassvllm | 0.3925 0.3968 | 4.19 | · | · |
kimi- | bf16 | 1.01× | 2.2730 | vllmflashinfer-cutlass | 2.3046 2.3647 | 21.1 | · | · |
kimi- | bf16 | 1.01× | 2.8823 | vllmflashinfer-cutlass | 2.9098 2.9476 | 33.3 | · | · |
kimi- | bf16 | 1.03× | 3.4115 | vllmflashinfer-cutlass | 3.5286 3.5492 | 56.2 | · | · |
kimi- | bf16 | 1.05× | 4.9049 | vllmflashinfer-cutlass | 5.1326 5.4595 | 156 | · | · |
kimi- | bf16 | 1.04× | 8.2481 | flashinfer-cutlassvllm | 8.5878 9.1738 | 372 | · | · |
kimi- | bf16 | 1.05× | 13.1613 | flashinfer-cutlassvllm | 13.7565 15.2377 | 466 | · | · |
ds- | bf16 | 1.13× | 0.1995 | flashinfer-cutlassvllm | 0.2261 0.2285 | 3.97 | · | · |
ds- | bf16 | 1.00× | 2.1041 | vllmflashinfer-cutlass | 2.1135 2.1536 | 12.1 | · | · |
ds- | bf16 | 1.00× | 2.4803 | vllmflashinfer-cutlass | 2.4876 2.5571 | 20.5 | · | · |
ds- | bf16 | 1.03× | 2.9193 | vllmflashinfer-cutlass | 3.0112 3.0520 | 34.8 | · | · |
ds- | bf16 | 1.05× | 3.8531 | vllmflashinfer-cutlass | 4.0353 4.5962 | 105 | · | · |
ds- | bf16 | 1.04× | 5.5828 | flashinfer-cutlassvllm | 5.7798 6.3247 | 291 | · | · |
ds- | bf16 | 1.02× | 7.9990 | flashinfer-cutlassvllm | 8.1591 9.3255 | 406 | · | · |
glm45- | bf16 | 1.15× | 0.1186 | vllmflashinfer-cutlass | 0.1362 0.1477 | 3.58 | · | · |
glm45- | bf16 | 1.02× | 0.8298 | vllmflashinfer-cutlass | 0.8470 0.8626 | 16.4 | · | · |
glm45- | bf16 | 1.04× | 0.9567 | vllmflashinfer-cutlass | 0.9915 1.0079 | 28.4 | · | · |
glm45- | bf16 | 1.06× | 1.1490 | flashinfer-cutlassvllm | 1.2184 1.2400 | 47.3 | · | · |
glm45- | bf16 | 1.05× | 1.5328 | vllmflashinfer-cutlass | 1.6149 1.6819 | 142 | · | · |
glm45- | bf16 | 1.07× | 2.3867 | flashinfer-cutlassvllm | 2.5543 2.9020 | 365 | · | · |
glm45- | bf16 | 1.25× | 3.6367 | vllmflashinfer-cutlass | 4.5523 4.6850 | 479 | · | · |
qwen3- | bf16 | 1.02× | 1.1842 | vllmflashinfer-cutlass | 1.2112 1.2536 | 131 | · | · |
FusedTopKFwd¶
gating_output: [T, E]
top_k=8renormalize=true
kimi-gating_output: [32, 384]scoring_func=sigmoiddtype=bf16k2- t32 kimi-gating_output: [512, 384]scoring_func=sigmoiddtype=bf16k2- t512 kimi-gating_output: [4096, 384]scoring_func=sigmoiddtype=bf16k2- t4096 qwen3-gating_output: [32, 128]dtype=bf16235b- t32 qwen3-gating_output: [512, 128]dtype=bf16, f32235b- t512 qwen3-gating_output: [4096, 128]dtype=bf16235b- t4096
gating_output: [T, E]correction_bias: [E], f32
top_k=8scoring_func=sigmoidrenormalize=true
kimi-gating_output: [512, 384]correction_bias: [384], f32dtype=bf16, f32k2- t512- bias ds-gating_output: [1, 256]correction_bias: [256], f32num_expert_group=8topk_group=4routed_scaling_factor=2.5dtype=bf16v3- grouped- t1 ds-gating_output: [32, 256]correction_bias: [256], f32num_expert_group=8topk_group=4routed_scaling_factor=2.5dtype=bf16v3- grouped- t32 ds-gating_output: [64, 256]correction_bias: [256], f32num_expert_group=8topk_group=4routed_scaling_factor=2.5dtype=bf16, f32v3- grouped- t64 ds-gating_output: [4096, 256]correction_bias: [256], f32num_expert_group=8topk_group=4routed_scaling_factor=2.5dtype=bf16v3- grouped- t4096
gating_output: [T, E]correction_bias: [E]
top_k=6scoring_func=sqrtsoftplusrenormalize=truerouted_scaling_factor=1.5dtype=f32
dsv4-gating_output: [1, 256]correction_bias: [256]flash- t1 dsv4-gating_output: [64, 256]correction_bias: [256]flash- t64 dsv4-gating_output: [4096, 256]correction_bias: [256]flash- t4096 dsv4-gating_output: [32768, 256]correction_bias: [256]flash- t32768
gating_output: [T, E]expert_ids: [T, top_k], i32
scoring_func=sqrtsoftplusrenormalize=truerouted_scaling_factor=1.5dtype=f32
dsv4-gating_output: [1, 256]expert_ids: [1, 6], i32flash- hash- t1 dsv4-gating_output: [4096, 256]expert_ids: [4096, 6], i32flash- hash- t4096
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
kimi- | bf16 | 3.32× | 0.00294 | vllm | 0.00976 | 0.0503 | · | · |
kimi- | bf16 | 3.37× | 0.00314 | vllm | 0.0106 | 0.755 | · | · |
kimi- | bf16 | 2.69× | 0.00861 | vllm | 0.0232 | 2.2 | · | · |
qwen3- | bf16 | 3.57× | 0.00237 | vllm | 0.00846 | 0.0192 | · | · |
qwen3- | bf16 | 3.56× | 0.00259 | vllm | 0.00922 | 0.281 | · | · |
| f32 | 2.12× | 0.00259 | vllm | 0.0055 | 0.281 | · | · | |
qwen3- | bf16 | 3.43× | 0.00461 | vllm | 0.0158 | 1.27 | · | · |
kimi- | bf16 | 3.20× | 0.00339 | vllm | 0.0108 | 0.756 | · | · |
| f32 | 2.07× | 0.00342 | vllm | 0.0071 | 0.749 | · | · | |
ds- | bf16 | 1.45× | 0.00279 | vllm | 0.00403 | 0.00149 | · | · |
ds- | bf16 | 1.41× | 0.00307 | vllm | 0.00432 | 0.0433 | · | · |
ds- | bf16 | 1.44× | 0.00307 | vllm | 0.00442 | 0.0866 | · | · |
| f32 | 1.43× | 0.0031 | vllm | 0.00445 | 0.0858 | · | · | |
ds- | bf16 | 2.13× | 0.00838 | vllm | 0.0178 | 2.03 | · | · |
dsv4- | f32 | 1.23× | 0.00234 | vllm | 0.00288 | 0.00121 | · | · |
dsv4- | f32 | 1.22× | 0.00262 | vllm | 0.0032 | 0.0691 | · | · |
dsv4- | f32 | 1.36× | 0.00669 | vllm | 0.00909 | 1.74 | · | · |
dsv4- | f32 | 1.38× | 0.0369 | vllm | 0.0511 | 2.51 | · | · |
dsv4- | f32 | 1.36× | 0.0017 | vllm | 0.00231 | 2.48e-05 | · | · |
dsv4- | f32 | 1.91× | 0.00259 | vllm | 0.00496 | 0.0664 | · | · |
MoEPrePermuteFwd¶
hidden_states: [T, H]local_expert_ids: [T, K], i32
layout=contiguous(packing=tight,metadata_kind=physical_psum,alignment=1)dtype=bf16
decode-hidden_states: [32, 128]local_expert_ids: [32, 2], i32num_local_experts=4t32 prefill-hidden_states: [512, 128]local_expert_ids: [512, 2], i32num_local_experts=4t512 ds-hidden_states: [100, 7168]local_expert_ids: [100, 8], i32num_local_experts=32v3- ep8- t100 qwen3-hidden_states: [1, 2048]local_expert_ids: [1, 8], i32num_local_experts=1630b- ep8- b1
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
decode- | bf16 | 4.15× | 0.00275 | vllmtorch-ref | 0.0114 0.0258 | · | · | · |
prefill- | bf16 | 4.07× | 0.00326 | vllmtorch-ref | 0.0133 0.0665 | · | · | · |
ds- | bf16 | 3.02× | 0.00637 | vllmtorch-ref | 0.0192 0.0650 | · | · | · |
qwen3- | bf16 | 3.89× | 0.00278 | vllmtorch-ref | 0.0108 0.0233 | · | · | · |
MoEPermuteAlignFwd¶
topk_ids: [T, K]
dtype=i32
kimi-topk_ids: [1, 8]num_experts=384k2- t1 kimi-topk_ids: [32, 8]num_experts=384k2- t32 kimi-topk_ids: [512, 8]num_experts=384k2- t512 kimi-topk_ids: [4096, 8]num_experts=384k2- t4096 ds-topk_ids: [1, 8]num_experts=256v3- t1 ds-topk_ids: [32, 8]num_experts=256v3- t32 ds-topk_ids: [512, 8]num_experts=256v3- t512 ds-topk_ids: [4096, 8]num_experts=256v3- t4096 qwen3-topk_ids: [1, 8]num_experts=128235b- t1 qwen3-topk_ids: [32, 8]num_experts=128235b- t32 qwen3-topk_ids: [512, 8]num_experts=128235b- t512 qwen3-topk_ids: [4096, 8]num_experts=128235b- t4096
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
kimi- | i32 | 2.89× | 0.00176 | vllmtriton | 0.00509 0.0460 | · | · | · |
kimi- | i32 | 2.55× | 0.00216 | vllmtriton | 0.0055 0.0470 | · | · | · |
kimi- | i32 | 1.43× | 0.00541 | vllmtriton | 0.00771 0.0539 | · | · | · |
kimi- | i32 | 2.90× | 0.00893 | vllmtriton | 0.0259 0.0839 | · | · | · |
ds- | i32 | 2.96× | 0.00173 | vllmtriton | 0.00512 0.0328 | · | · | · |
ds- | i32 | 2.58× | 0.00211 | vllmtriton | 0.00544 0.0335 | · | · | · |
ds- | i32 | 1.43× | 0.00518 | vllmtriton | 0.00742 0.0420 | · | · | · |
ds- | i32 | 2.67× | 0.00883 | vllmtriton | 0.0236 0.0744 | · | · | · |
qwen3- | i32 | 3.06× | 0.00166 | vllmtriton | 0.00509 0.0160 | · | · | · |
qwen3- | i32 | 2.53× | 0.00211 | vllmtriton | 0.00534 0.0177 | · | · | · |
qwen3- | i32 | 1.77× | 0.00426 | vllmtriton | 0.00752 0.0282 | · | · | · |
qwen3- | i32 | 3.32× | 0.00771 | vllmtriton | 0.0256 0.0784 | · | · | · |
MoEPostPermuteFwd¶
expert_output: [P, H]topk_weights: [T, K], f32inverse_indices: [T * K], i32
layout=contiguous(packing=tight,metadata_kind=physical_psum,alignment=1)
decode-expert_output: [64, 128]topk_weights: [32, 2], f32inverse_indices: [64], i32dtype=bf16, bf16/bf16t32 prefill-expert_output: [1024, 128]topk_weights: [512, 2], f32inverse_indices: [1024], i32dtype=bf16t512 ds-expert_output: [800, 7168]topk_weights: [100, 8], f32inverse_indices: [800], i32dtype=bf16v3- ep8- t100 qwen3-expert_output: [8, 2048]topk_weights: [1, 8], f32inverse_indices: [8], i32dtype=bf1630b- ep8- b1
expert_output: [P, H]topk_weights: [T, K], f32inverse_indices: [T * K], i32residual: [T, H]
layout=contiguous(packing=tight,metadata_kind=physical_psum,alignment=1)dtype=bf16
dsv4-expert_output: [6, 4096]topk_weights: [1, 6], f32inverse_indices: [6], i32residual: [1, 4096]flash- t1 dsv4-expert_output: [24576, 4096]topk_weights: [4096, 6], f32inverse_indices: [24576], i32residual: [4096, 4096]flash- t4096 dsv4-expert_output: [196608, 4096]topk_weights: [32768, 6], f32inverse_indices: [196608], i32residual: [32768, 4096]flash- t32768
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
decode- | bf16 | 1.38× | 0.00179 | vllmtorch-ref | 0.00246 0.0142 | 0.00915 | · | · |
| bf16/bf16 | 1.37× | 0.00179 | vllmtorch-ref | 0.00246 0.0142 | 0.00914 | · | · | |
prefill- | bf16 | 1.35× | 0.00208 | vllmtorch-ref | 0.00282 0.0183 | 0.126 | · | · |
ds- | bf16 | 3.44× | 0.00522 | vllmtorch-ref | 0.0180 0.0602 | 2.2 | · | · |
qwen3- | bf16 | 2.62× | 0.00202 | vllmtorch-ref | 0.00528 0.0142 | 0.0163 | · | · |
dsv4- | bf16 | 1.24× | 0.00218 | torch-compilevllmtorch-ref | 0.00269 0.00861 0.0189 | 0.0245 | · | · |
dsv4- | bf16 | 1.04× | 0.0622 | torch-compilevllmtorch-ref | 0.0647 0.0825 1.0629 | 3.51 | · | · |
dsv4- | bf16 | 1.03× | 0.4827 | torch-compilevllmtorch-ref | 0.4977 0.6242 8.3333 | 3.62 | · | · |
MoEGroupedGEMMFwd¶
a: [P, K]b: [E, N, K]layout_metadata: [E], i32
layout=contiguous(packing=tight,metadata_kind=physical_psum,alignment=1)
ds-a: [4096, 7168]b: [256, 4096, 7168]layout_metadata: [256], i32dtype=bf16v3- decode- mlp- up ds-a: [32768, 7168]b: [256, 4096, 7168]layout_metadata: [256], i32dtype=bf16v3- prefill- mlp- up ds-a: [4096, 2048]b: [256, 7168, 2048]layout_metadata: [256], i32dtype=bf16, bf16/f32v3- decode- down ds-a: [32768, 2048]b: [256, 7168, 2048]layout_metadata: [256], i32dtype=bf16v3- prefill- down qwen3-a: [8, 2048]b: [16, 1536, 2048]layout_metadata: [16], i32dtype=bf1630b- ep8- decode qwen3-a: [256, 2048]b: [16, 1536, 2048]layout_metadata: [16], i32dtype=bf1630b- ep8- routed256
a: [P, K]b: [E, 2 * N, K]layout_metadata: [E], i32
activation=silu_and_mullayout=contiguous(packing=tight,metadata_kind=physical_psum,alignment=1)dtype=bf16
ds-a: [4096, 7168]b: [256, 4096, 7168]layout_metadata: [256], i32v3- decode- swiglu ds-a: [32768, 7168]b: [256, 4096, 7168]layout_metadata: [256], i32v3- prefill- swiglu
a: [E, layout.max_m, K]b: [E, N, K]layout_metadata: [E], i32
ds-a: [32, 128, 7168]b: [32, 4096, 7168]layout_metadata: [32], i32dtype=bf16v3- ep8- masked
a: [P, K]b: [E, 2 * N, K]layout_metadata: [E], i32bias: [E, 2 * N]
activation=swigluoailayout=contiguous(packing=tight,metadata_kind=physical_psum,alignment=1)dtype=bf16
gpt-a: [256, 2880]b: [128, 5760, 2880]layout_metadata: [128], i32bias: [128, 5760]oss- 120b- t64- up gpt-a: [16384, 2880]b: [128, 5760, 2880]layout_metadata: [128], i32bias: [128, 5760]oss- 120b- t4096- up gpt-a: [4096, 2880]b: [32, 5760, 2880]layout_metadata: [32], i32bias: [32, 5760]oss- 20b- t1024- up
a: [P, K]b: [E, N, K]layout_metadata: [E], i32bias: [E, N]
layout=contiguous(packing=tight,metadata_kind=physical_psum,alignment=1)dtype=bf16
gpt-a: [256, 2880]b: [128, 2880, 2880]layout_metadata: [128], i32bias: [128, 2880]oss- 120b- t64- down gpt-a: [16384, 2880]b: [128, 2880, 2880]layout_metadata: [128], i32bias: [128, 2880]oss- 120b- t4096- down gpt-a: [4096, 2880]b: [32, 2880, 2880]layout_metadata: [32], i32bias: [32, 2880]oss- 20b- t1024- down
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
ds- | bf16 | 1.40× | 3.3497 | torch-grouped-mm | 4.7016 | 71.8 | · | · |
ds- | bf16 | 1.09× | 3.9847 | torch-grouped-mm | 4.3479 | 483 | · | · |
ds- | bf16 | 1.31× | 1.7477 | torch-grouped-mm | 2.2884 | 68.8 | · | · |
| bf16/f32 | — | 1.7913 | · | · | 67.1 | · | · | |
ds- | bf16 | 1.16× | 2.0144 | torch-grouped-mm | 2.3449 | 478 | · | · |
qwen3- | bf16 | 1.85× | 0.0170 | torch-grouped-mm | 0.0314 | 2.96 | · | · |
qwen3- | bf16 | 1.61× | 0.0264 | torch-grouped-mm | 0.0426 | 61.1 | · | · |
ds- | bf16 | 1.41× | 3.3412 | torch-grouped-mm | 4.7242 | 72 | · | · |
ds- | bf16 | 1.27× | 3.7429 | torch-grouped-mm | 4.7362 | 514 | · | · |
ds- | bf16 | — | 0.4776 | · | · | 378 | · | · |
gpt- | bf16 | 1.64× | 0.9314 | torch-grouped-mm | 1.5238 | 9.13 | · | · |
gpt- | bf16 | 2.93× | 1.0874 | torch-grouped-mm | 3.1905 | 500 | · | · |
gpt- | bf16 | 2.88× | 0.2856 | torch-grouped-mm | 0.8233 | 476 | · | · |
gpt- | bf16 | 1.63× | 0.4749 | torch-grouped-mm | 0.7742 | 8.94 | · | · |
gpt- | bf16 | 1.72× | 0.6083 | torch-grouped-mm | 1.0467 | 447 | · | · |
gpt- | bf16 | 1.86× | 0.1494 | torch-grouped-mm | 0.2780 | 455 | · | · |
MoEGroupedGEMMFP8Fwd¶
a: [E, layout.max_m, K]a_scale: [E, layout.max_m, ceil_div(K, 128)], f32b: [E, N, K]b_scale: [E, ceil_div(N, 128), ceil_div(K, 128)], f32layout_metadata: [E], i32
dtype=fp8e4m3
ds-a: [8, 128, 7168]a_scale: [8, 128, 56], f32b: [8, 4096, 7168]b_scale: [8, 32, 56], f32layout_metadata: [8], i32T=768v3- e8- up- masked ds-a: [8, 128, 2048]a_scale: [8, 128, 16], f32b: [8, 7168, 2048]b_scale: [8, 56, 16], f32layout_metadata: [8], i32T=768v3- e8- down- masked ds-a: [32, 64, 7168]a_scale: [32, 64, 56], f32b: [32, 4096, 7168]b_scale: [32, 32, 56], f32layout_metadata: [32], i32T=64v3- dec- b64- up ds-a: [32, 64, 2048]a_scale: [32, 64, 16], f32b: [32, 7168, 2048]b_scale: [32, 56, 16], f32layout_metadata: [32], i32T=64v3- dec- b64- down ds-a: [32, 256, 7168]a_scale: [32, 256, 56], f32b: [32, 4096, 7168]b_scale: [32, 32, 56], f32layout_metadata: [32], i32T=256v3- dec- b256- up ds-a: [32, 256, 2048]a_scale: [32, 256, 16], f32b: [32, 7168, 2048]b_scale: [32, 56, 16], f32layout_metadata: [32], i32T=256v3- dec- b256- down qwen3-a: [16, 64, 4096]a_scale: [16, 64, 32], f32b: [16, 3072, 4096]b_scale: [16, 24, 32], f32layout_metadata: [16], i32T=64235b- dec- b64- up qwen3-a: [16, 64, 1536]a_scale: [16, 64, 12], f32b: [16, 4096, 1536]b_scale: [16, 32, 12], f32layout_metadata: [16], i32T=64235b- dec- b64- down qwen3-a: [16, 256, 4096]a_scale: [16, 256, 32], f32b: [16, 3072, 4096]b_scale: [16, 24, 32], f32layout_metadata: [16], i32T=256235b- dec- b256- up qwen3-a: [16, 256, 1536]a_scale: [16, 256, 12], f32b: [16, 4096, 1536]b_scale: [16, 32, 12], f32layout_metadata: [16], i32T=256235b- dec- b256- down kimi-a: [48, 64, 7168]a_scale: [48, 64, 56], f32b: [48, 4096, 7168]b_scale: [48, 32, 56], f32layout_metadata: [48], i32T=64k2- dec- b64- up kimi-a: [48, 64, 2048]a_scale: [48, 64, 16], f32b: [48, 7168, 2048]b_scale: [48, 56, 16], f32layout_metadata: [48], i32T=64k2- dec- b64- down kimi-a: [48, 256, 7168]a_scale: [48, 256, 56], f32b: [48, 4096, 7168]b_scale: [48, 32, 56], f32layout_metadata: [48], i32T=256k2- dec- b256- up kimi-a: [48, 256, 2048]a_scale: [48, 256, 16], f32b: [48, 7168, 2048]b_scale: [48, 56, 16], f32layout_metadata: [48], i32T=256k2- dec- b256- down
a: [P, K]a_scale: [P, ceil_div(K, 128)], f32b: [E, N, K]b_scale: [E, ceil_div(N, 128), ceil_div(K, 128)], f32layout_metadata: [P], i32
layout=contiguous(packing=aligned,metadata_kind=per_row,alignment=128)dtype=fp8e4m3
qwen3-a: [7808, 2048]a_scale: [7808, 16], f32b: [16, 1536, 2048]b_scale: [16, 12, 16], f32layout_metadata: [7808], i32sizes=[360,34,103,889…]30b- ep8- skew- up qwen3-a: [7808, 768]a_scale: [7808, 6], f32b: [16, 2048, 768]b_scale: [16, 16, 6], f32layout_metadata: [7808], i32sizes=[360,34,103,889…]30b- ep8- skew- down ds-a: [4096, 7168]a_scale: [4096, 56], f32b: [32, 4096, 7168]b_scale: [32, 32, 56], f32layout_metadata: [4096], i32sizes=balanced_sizes(4096, 32)v3- ep8- prefill- up ds-a: [4096, 2048]a_scale: [4096, 16], f32b: [32, 7168, 2048]b_scale: [32, 56, 16], f32layout_metadata: [4096], i32sizes=balanced_sizes(4096, 32)v3- ep8- prefill- down
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
ds- | fp8e4m3 | 1.02× | 0.0661 | deepgemm | 0.0675 | 682 | · | · |
ds- | fp8e4m3 | 1.14× | 0.0376 | deepgemm | 0.0428 | 600 | · | · |
ds- | fp8e4m3 | 1.02× | 0.2058 | deepgemm | 0.2096 | 18.3 | · | · |
ds- | fp8e4m3 | 1.08× | 0.1073 | deepgemm | 0.1157 | 17.5 | · | · |
ds- | fp8e4m3 | 1.01× | 0.2358 | deepgemm | 0.2385 | 63.7 | · | · |
ds- | fp8e4m3 | 1.07× | 0.1219 | deepgemm | 0.1306 | 61.7 | · | · |
qwen3- | fp8e4m3 | 1.04× | 0.0540 | deepgemm | 0.0561 | 29.8 | · | · |
qwen3- | fp8e4m3 | 1.02× | 0.0303 | deepgemm | 0.0309 | 26.6 | · | · |
qwen3- | fp8e4m3 | 1.03× | 0.0546 | deepgemm | 0.0563 | 118 | · | · |
qwen3- | fp8e4m3 | 1.01× | 0.0308 | deepgemm | 0.0310 | 104 | · | · |
kimi- | fp8e4m3 | 1.05× | 0.2559 | deepgemm | 0.2695 | 14.7 | · | · |
kimi- | fp8e4m3 | 1.08× | 0.1322 | deepgemm | 0.1422 | 14.2 | · | · |
kimi- | fp8e4m3 | 1.04× | 0.3488 | deepgemm | 0.3634 | 43.1 | · | · |
kimi- | fp8e4m3 | 1.02× | 0.1829 | deepgemm | 0.1867 | 41.1 | · | · |
qwen3- | fp8e4m3 | 1.01× | 0.0466 | deepgemm | 0.0472 | 1,054 | · | · |
qwen3- | fp8e4m3 | 1.10× | 0.0320 | deepgemm | 0.0352 | 768 | · | · |
ds- | fp8e4m3 | 1.16× | 0.2579 | deepgemm | 0.2996 | 933 | · | · |
ds- | fp8e4m3 | 1.19× | 0.1345 | deepgemm | 0.1598 | 894 | · | · |
MoEGroupedGEMMMXFP4Fwd¶
a: [E, layout.max_m, K], fp8e4m3a_scale: [E, layout.max_m, K // 128]b: [E, N, K // 2], u8b_scale: [E, N, K // 32]layout_metadata: [E], i32
dsv4-a: [32, 64, 4096], fp8e4m3a_scale: [32, 64, 32]b: [32, 4096, 2048], u8b_scale: [32, 4096, 128]layout_metadata: [32], i32T=64dtype=float8_e8m0fnudec- b64- up dsv4-a: [32, 64, 2048], fp8e4m3a_scale: [32, 64, 16]b: [32, 4096, 1024], u8b_scale: [32, 4096, 64]layout_metadata: [32], i32T=64dtype=float8_e8m0fnudec- b64- down dsv4-a: [32, 256, 4096], fp8e4m3a_scale: [32, 256, 32]b: [32, 4096, 2048], u8b_scale: [32, 4096, 128]layout_metadata: [32], i32T=256dtype=float8_e8m0fnudec- b256- up dsv4-a: [32, 256, 4096], fp8e4m3a_scale: [32, 256, 32]b: [32, 4096, 2048], u8b_scale: [32, 4096, 128]layout_metadata: [32], i32T=256dtype=f32dec- b256- up dsv4-a: [32, 256, 2048], fp8e4m3a_scale: [32, 256, 16]b: [32, 4096, 1024], u8b_scale: [32, 4096, 64]layout_metadata: [32], i32T=256dtype=float8_e8m0fnudec- b256- down
a: [P, K], fp8e4m3a_scale: [P, K // 128]b: [E, N, K // 2], u8b_scale: [E, N, K // 32]layout_metadata: [P], i32
layout=contiguous(packing=aligned,metadata_kind=per_row,alignment=128)dtype=float8_e8m0fnu
dsv4-a: [4096, 4096], fp8e4m3a_scale: [4096, 32]b: [32, 4096, 2048], u8b_scale: [32, 4096, 128]layout_metadata: [4096], i32sizes=balanced_sizes(3072, 32)ep8- 4k- up dsv4-a: [4096, 2048], fp8e4m3a_scale: [4096, 16]b: [32, 4096, 1024], u8b_scale: [32, 4096, 64]layout_metadata: [4096], i32sizes=balanced_sizes(3072, 32)ep8- 4k- down dsv4-a: [24576, 4096], fp8e4m3a_scale: [24576, 32]b: [32, 4096, 2048], u8b_scale: [32, 4096, 128]layout_metadata: [24576], i32sizes=balanced_sizes(24576, 32)ep8- 32k- up dsv4-a: [24576, 2048], fp8e4m3a_scale: [24576, 16]b: [32, 4096, 1024], u8b_scale: [32, 4096, 64]layout_metadata: [24576], i32sizes=balanced_sizes(24576, 32)ep8- 32k- down
a: [P, K], fp8e4m3a_scale: [P, K // 128]b: [E, N, K // 2], u8b_scale: [E, N, K // 32]layout_metadata: [E], i32
layout=contiguous(packing=tight,metadata_kind=physical_psum,alignment=1)dtype=float8_e8m0fnu
dsv4-a: [6, 4096], fp8e4m3a_scale: [6, 32]b: [256, 4096, 2048], u8b_scale: [256, 4096, 128]layout_metadata: [256], i32sizes=balanced_sizes(6, 256)b1- dec- e256- up dsv4-a: [6, 2048], fp8e4m3a_scale: [6, 16]b: [256, 4096, 1024], u8b_scale: [256, 4096, 64]layout_metadata: [256], i32sizes=balanced_sizes(6, 256)b1- dec- e256- down dsv4-a: [3072, 4096], fp8e4m3a_scale: [3072, 32]b: [256, 4096, 2048], u8b_scale: [256, 4096, 128]layout_metadata: [256], i32sizes=balanced_sizes(3072, 256)b1- pre512- up dsv4-a: [3072, 2048], fp8e4m3a_scale: [3072, 16]b: [256, 4096, 1024], u8b_scale: [256, 4096, 64]layout_metadata: [256], i32sizes=balanced_sizes(3072, 256)b1- pre512- down dsv4-a: [24576, 4096], fp8e4m3a_scale: [24576, 32]b: [256, 4096, 2048], u8b_scale: [256, 4096, 128]layout_metadata: [256], i32sizes=balanced_sizes(24576, 256)b1- pre4k- up dsv4-a: [24576, 2048], fp8e4m3a_scale: [24576, 16]b: [256, 4096, 1024], u8b_scale: [256, 4096, 64]layout_metadata: [256], i32sizes=balanced_sizes(24576, 256)b1- pre4k- down
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
dsv4- | float8_e8m0fnu | 1.11× | 0.1038 | vllmmoe-grouped-gemm-fp8vllm-tritontorch | 0.1157 0.1206 0.4390 17.6712 | 20.7 | · | · |
dsv4- | float8_e8m0fnu | 1.07× | 0.0599 | vllmmoe-grouped-gemm-fp8vllm-tritontorch | 0.0641 0.0645 0.2304 8.9194 | 17.9 | · | · |
dsv4- | float8_e8m0fnu | 1.08× | 0.1277 | moe-grouped-gemm-fp8vllmvllm-tritontorch | 0.1383 0.1435 1.7104 18.7654 | 67.3 | · | · |
dsv4- | f32 | 0.78× | 0.1785 | moe-grouped-gemm-fp8torch | 0.1387 18.6854 | 48.1 | · | · |
dsv4- | float8_e8m0fnu | 0.98× | 0.0750 | moe-grouped-gemm-fp8vllmvllm-tritontorch | 0.0737 0.0788 0.8916 9.4984 | 57.2 | · | · |
dsv4- | float8_e8m0fnu | 0.75× | 0.2036 | moe-grouped-gemm-fp8vllm-tritonvllmtorch-compiletorch | 0.1532 0.3083 0.6104 5.8629 21.4448 | 675 | · | · |
dsv4- | float8_e8m0fnu | 0.74× | 0.1102 | moe-grouped-gemm-fp8vllm-tritonvllmtorch-compiletorch | 0.0818 0.1688 0.3290 3.6547 11.4911 | 624 | · | · |
dsv4- | float8_e8m0fnu | 0.62× | 1.1088 | moe-grouped-gemm-fp8vllm-tritonvllmtorch-compiletorch | 0.6904 1.8205 3.5455 25.5253 41.8101 | 744 | · | · |
dsv4- | float8_e8m0fnu | 0.59× | 0.5890 | moe-grouped-gemm-fp8vllm-tritonvllmtorch-compiletorch | 0.3450 0.9944 1.8802 14.2677 22.4125 | 700 | · | · |
dsv4- | float8_e8m0fnu | 1.27× | 0.0253 | vllmvllm-tritonmoe-grouped-gemm-fp8torch-compiletorch | 0.0323 0.0374 0.0915 7.8873 129.7030 | 7.95 | · | · |
dsv4- | float8_e8m0fnu | 1.32× | 0.0152 | vllm-tritonvllmmoe-grouped-gemm-fp8torch-compiletorch | 0.0201 0.0208 0.0629 3.9579 64.8444 | 6.64 | · | · |
dsv4- | float8_e8m0fnu | 1.31× | 0.8266 | vllmvllm-tritonmoe-grouped-gemm-fp8torch-compiletorch | 1.0805 1.1302 1.1430 23.0195 144.3600 | 125 | · | · |
dsv4- | float8_e8m0fnu | 1.02× | 0.4517 | vllm-tritonvllmmoe-grouped-gemm-fp8torch-compiletorch | 0.4600 0.5637 0.6050 13.4186 74.1282 | 114 | · | · |
dsv4- | float8_e8m0fnu | 0.80× | 1.5027 | moe-grouped-gemm-fp8vllm-tritonvllmtorch-compiletorch | 1.1985 2.4383 4.7359 40.5684 162.8610 | 549 | · | · |
dsv4- | float8_e8m0fnu | 0.78× | 0.8300 | moe-grouped-gemm-fp8vllm-tritonvllmtorch-compiletorch | 0.6498 1.3109 2.5090 22.9571 84.2617 | 497 | · | · |
MoEExpertMLPFwd¶
expert_input: [P, H]w_gate_up: [E, 2 * F, H]w_down: [E, H, F]layout_metadata: [E], i32
layout=contiguous(packing=tight,metadata_kind=physical_psum,alignment=1)dtype=bf16
qwen3-expert_input: [4096, 4096]w_gate_up: [128, 3072, 4096]w_down: [128, 4096, 1536]layout_metadata: [128], i32235b- decode qwen3-expert_input: [32768, 4096]w_gate_up: [128, 3072, 4096]w_down: [128, 4096, 1536]layout_metadata: [128], i32235b- prefill ds-expert_input: [4096, 7168]w_gate_up: [256, 4096, 7168]w_down: [256, 7168, 2048]layout_metadata: [256], i32v3- decode ds-expert_input: [32768, 7168]w_gate_up: [256, 4096, 7168]w_down: [256, 7168, 2048]layout_metadata: [256], i32v3- prefill
expert_input: [P, H]w_gate_up: [E, 2 * F, H]w_down: [E, H, F]layout_metadata: [E], i32b_gate_up: [E, 2 * F]b_down: [E, H]
activation=swigluoailayout=contiguous(packing=tight,metadata_kind=physical_psum,alignment=1)dtype=bf16
gpt-expert_input: [256, 2880]w_gate_up: [128, 5760, 2880]w_down: [128, 2880, 2880]layout_metadata: [128], i32b_gate_up: [128, 5760]b_down: [128, 2880]oss- 120b- decode gpt-expert_input: [16384, 2880]w_gate_up: [128, 5760, 2880]w_down: [128, 2880, 2880]layout_metadata: [128], i32b_gate_up: [128, 5760]b_down: [128, 2880]oss- 120b- prefill gpt-expert_input: [4096, 2880]w_gate_up: [32, 5760, 2880]w_down: [32, 2880, 2880]layout_metadata: [32], i32b_gate_up: [32, 5760]b_down: [32, 2880]oss- 20b- prefill
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
qwen3- | bf16 | 1.46× | 1.1420 | torch-grouped-mmflashinfer-segment-mlp | 1.6692 2.8473 | 135 | · | · |
qwen3- | bf16 | 1.10× | 1.9890 | torch-grouped-mmflashinfer-segment-mlp | 2.1923 3.0830 | 622 | · | · |
ds- | bf16 | 1.38× | 5.0887 | torch-grouped-mmflashinfer-segment-mlp | 7.0187 11.8113 | 70.9 | · | · |
ds- | bf16 | 1.25× | 5.7230 | torch-grouped-mmflashinfer-segment-mlp | 7.1785 12.8969 | 504 | · | · |
gpt- | bf16 | 1.64× | 1.4069 | torch-grouped-mm | 2.3089 | 9.06 | · | · |
gpt- | bf16 | 2.50× | 1.6982 | torch-grouped-mm | 4.2393 | 480 | · | · |
gpt- | bf16 | 2.52× | 0.4389 | torch-grouped-mm | 1.1051 | 465 | · | · |
FusedMoEExpertsFwd¶
hidden_states: [T, H]w_gate_up: [E, 2 * F, H]w_down: [E, H, F]topk_weights: [T, K], f32topk_ids: [T, K], i32
dtype=bf16
qwen3-hidden_states: [512, 4096]w_gate_up: [128, 3072, 4096]w_down: [128, 4096, 1536]topk_weights: [512, 8], f32topk_ids: [512, 8], i32235b- decode qwen3-hidden_states: [4096, 4096]w_gate_up: [128, 3072, 4096]w_down: [128, 4096, 1536]topk_weights: [4096, 8], f32topk_ids: [4096, 8], i32235b- prefill ds-hidden_states: [512, 7168]w_gate_up: [256, 4096, 7168]w_down: [256, 7168, 2048]topk_weights: [512, 8], f32topk_ids: [512, 8], i32v3- decode ds-hidden_states: [4096, 7168]w_gate_up: [256, 4096, 7168]w_down: [256, 7168, 2048]topk_weights: [4096, 8], f32topk_ids: [4096, 8], i32v3- prefill
hidden_states: [T, H]w_gate_up: [E, 2 * F, H]w_down: [E, H, F]topk_weights: [T, K], f32topk_ids: [T, K], i32b_gate_up: [E, 2 * F]b_down: [E, H]
activation=swigluoaidtype=bf16
gpt-hidden_states: [64, 2880]w_gate_up: [128, 5760, 2880]w_down: [128, 2880, 2880]topk_weights: [64, 4], f32topk_ids: [64, 4], i32b_gate_up: [128, 5760]b_down: [128, 2880]oss- 120b- decode gpt-hidden_states: [4096, 2880]w_gate_up: [128, 5760, 2880]w_down: [128, 2880, 2880]topk_weights: [4096, 4], f32topk_ids: [4096, 4], i32b_gate_up: [128, 5760]b_down: [128, 2880]oss- 120b- prefill gpt-hidden_states: [1024, 2880]w_gate_up: [32, 5760, 2880]w_down: [32, 2880, 2880]topk_weights: [1024, 4], f32topk_ids: [1024, 4], i32b_gate_up: [32, 5760]b_down: [32, 2880]oss- 20b- prefill
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
qwen3- | bf16 | 1.02× | 1.1846 | vllm-tritonflashinfer-cutlass | 1.2069 1.2378 | 131 | · | · |
qwen3- | bf16 | 1.06× | 2.4550 | flashinfer-cutlassvllm-triton | 2.5999 3.1054 | 504 | · | · |
ds- | bf16 | 1.03× | 5.1518 | vllm-tritonflashinfer-cutlass | 5.3021 5.3292 | 70.1 | · | · |
ds- | bf16 | 1.06× | 6.9292 | flashinfer-cutlassvllm-triton | 7.3128 8.6863 | 417 | · | · |
gpt- | bf16 | 1.03× | 1.2434 | vllm-tritonflashinfer-cutlass | 1.2833 1.2924 | 10.3 | · | · |
gpt- | bf16 | 1.15× | 2.0253 | flashinfer-cutlassvllm-triton | 2.3224 3.0485 | 403 | · | · |
gpt- | bf16 | 1.22× | 0.5182 | flashinfer-cutlassvllm-triton | 0.6341 0.8067 | 394 | · | · |
IndexedExpertMLPFwd¶
hidden_states: [T, H]w_gate_up: [E, 2 * F, H]w_down: [E, H, F]topk_weights: [T, K], f32topk_ids: [T, K], i32
dtype=bf16
ds-hidden_states: [1, 7168]w_gate_up: [256, 4096, 7168]w_down: [256, 7168, 2048]topk_weights: [1, 8], f32topk_ids: [1, 8], i32v3- t1 ds-hidden_states: [32, 7168]w_gate_up: [256, 4096, 7168]w_down: [256, 7168, 2048]topk_weights: [32, 8], f32topk_ids: [32, 8], i32v3- t32 ds-hidden_states: [64, 7168]w_gate_up: [256, 4096, 7168]w_down: [256, 7168, 2048]topk_weights: [64, 8], f32topk_ids: [64, 8], i32v3- t64 qwen3-hidden_states: [32, 4096]w_gate_up: [128, 3072, 4096]w_down: [128, 4096, 1536]topk_weights: [32, 8], f32topk_ids: [32, 8], i32235b- t32
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
ds- | bf16 | 1.09× | 0.1700 | flashinfer-cutlassstagedvllm-triton | 0.1856 0.1890 0.1907 | 4.15 | · | · |
ds- | bf16 | 1.00× | 3.0499 | vllm-tritonstagedflashinfer-cutlass | 3.0561 3.0874 3.1621 | 7.4 | · | · |
ds- | bf16 | 1.01× | 4.2191 | vllm-tritonstagedflashinfer-cutlass | 4.2481 4.2729 4.3546 | 10.7 | · | · |
qwen3- | bf16 | 1.00× | 0.9620 | stagedvllm-tritonflashinfer-cutlass | 0.9615 0.9690 0.9971 | 10 | · | · |
SharedExpertMLPFwd¶
hidden_states: [T, H]w_gate_up: [2 * S, H]w_down: [H, S]
dtype=bf16
kimi-hidden_states: [1, 7168]w_gate_up: [36864, 7168]w_down: [7168, 18432]k2- t1 kimi-hidden_states: [512, 7168]w_gate_up: [36864, 7168]w_down: [7168, 18432]k2- t512 ds-hidden_states: [32, 7168]w_gate_up: [4096, 7168]w_down: [7168, 2048]v3- t32 ds-hidden_states, w_gate_up: [4096, 7168]w_down: [7168, 2048]v3- t4096 glm45-hidden_states: [32, 5120]w_gate_up: [3072, 5120]w_down: [5120, 1536]t32
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
kimi- | bf16 | 1.08× | 0.1838 | torch-cublasquack | 0.1983 0.2881 | 4.31 | · | · |
kimi- | bf16 | 1.02× | 0.5316 | quacktorch-cublas | 0.5447 0.6228 | 764 | · | · |
ds- | bf16 | 1.31× | 0.0274 | torch-cublasquack | 0.0358 0.0589 | 103 | · | · |
ds- | bf16 | 1.03× | 0.4844 | quacktorch-cublas | 0.5004 0.5543 | 745 | · | · |
glm45- | bf16 | 1.43× | 0.0188 | torch-cublasquack | 0.0269 0.0446 | 80.3 | · | · |
MoEPrePermuteWithScalesFwd¶
hidden_states: [T, H]local_expert_ids: [T, K], i32topk_weights: [T, K], f32
decode-hidden_states: [32, 128]local_expert_ids: [32, 2], i32topk_weights: [32, 2], f32num_local_experts=4layout=contiguous(packing=tight,metadata_kind=physical_psum,alignment=1)dtype=bf16t32
hidden_states: [T, H]local_expert_ids: [T, K], i32hidden_scales: [T, G], f32
prefill-hidden_states: [512, 128]local_expert_ids: [512, 2], i32hidden_scales: [512, 1], f32num_local_experts=4layout=contiguous(packing=tight,metadata_kind=physical_psum,alignment=1)dtype=fp8e4m3/f32t512
hidden_states: [T, H]local_expert_ids: [T, K], i32hidden_scales: [T, G], float8_e8m0fnutopk_weights: [T, K], f32
num_local_experts=256layout=contiguous(packing=tight,metadata_kind=physical_psum,alignment=1)dtype=fp8e4m3/float8_e8m0fnu
dsv4-hidden_states: [1, 4096]local_expert_ids: [1, 6], i32hidden_scales: [1, 32], float8_e8m0fnutopk_weights: [1, 6], f32flash- t1 dsv4-hidden_states: [4096, 4096]local_expert_ids: [4096, 6], i32hidden_scales: [4096, 32], float8_e8m0fnutopk_weights: [4096, 6], f32flash- t4096
| Workload | dtype | Ratio | Device time | Alternatives | Throughput | SOL | Bound | |
|---|---|---|---|---|---|---|---|---|
| alt / ours | ms | name | ms | TFLOP/s | of ceiling | by | ||
decode- | bf16 | 11.71× | 0.00301 | torch-ref | 0.0352 | · | · | · |
prefill- | fp8e4m3/f32 | 32.72× | 0.00342 | torch-ref | 0.1120 | · | · | · |
dsv4- | fp8e4m3/float8_e8m0fnu | 8.62× | 0.00419 | torch-ref | 0.0361 | · | · | · |
dsv4- | fp8e4m3/float8_e8m0fnu | 6.60× | 0.0369 | torch-ref | 0.2433 | · | · | · |