Dataset Viewer
Auto-converted to Parquet Duplicate
Search is not available for this dataset
N
int64
K
int64
M
int64
BLOCK_SIZE_M
int64
BLOCK_SIZE_N
int64
BLOCK_SIZE_K
int64
GROUP_SIZE_M
int64
num_warps
int64
num_stages
int64
graph_us_median
float64
graph_us_min
float64
is_default
bool
n_sets
int64
128
7,168
1
64
128
128
32
4
3
45.309
45.295
true
48
128
7,168
1
16
32
128
1
4
5
12.097
12.09
false
48
128
7,168
1
16
32
128
1
4
4
12.099
12.096
false
48
128
7,168
1
16
32
128
1
4
3
12.22
12.219
false
48
128
7,168
1
16
64
128
1
4
4
14.175
14.171
false
48
128
7,168
1
16
64
128
1
4
5
14.333
14.324
false
48
128
7,168
2
64
128
128
32
4
3
43.48
43.476
true
48
128
7,168
2
16
32
128
1
4
4
11.45
11.447
false
48
128
7,168
2
16
32
128
1
4
5
11.522
11.516
false
48
128
7,168
2
16
32
128
1
4
3
11.535
11.521
false
48
128
7,168
2
32
32
128
1
4
4
13.692
13.684
false
48
128
7,168
2
32
32
128
1
4
3
13.721
13.717
false
48
128
7,168
4
64
128
128
32
4
3
43.528
43.526
true
48
128
7,168
4
16
32
128
1
4
4
11.462
11.452
false
48
128
7,168
4
16
32
128
1
4
5
11.476
11.475
false
48
128
7,168
4
16
32
128
1
4
3
11.519
11.513
false
48
128
7,168
4
32
32
128
1
4
4
13.639
13.63
false
48
128
7,168
4
32
32
128
1
4
3
13.649
13.647
false
48
128
7,168
8
64
128
128
32
4
3
44.034
44.033
true
48
128
7,168
8
16
32
128
1
4
4
11.532
11.531
false
48
128
7,168
8
16
32
128
1
4
3
11.578
11.575
false
48
128
7,168
8
16
32
128
1
4
5
11.586
11.574
false
48
128
7,168
8
32
32
128
1
4
4
13.684
13.68
false
48
128
7,168
8
32
32
128
1
4
3
13.701
13.699
false
48
128
7,168
16
64
128
128
32
4
3
43.98
43.979
true
48
128
7,168
16
16
32
128
1
4
4
11.545
11.54
false
48
128
7,168
16
16
32
128
1
4
3
11.599
11.598
false
48
128
7,168
16
16
32
128
1
4
5
11.602
11.602
false
48
128
7,168
16
32
32
128
1
4
4
13.723
13.717
false
48
128
7,168
16
32
32
128
1
4
3
13.735
13.733
false
48
128
7,168
24
64
128
128
32
4
3
44.02
44.017
true
48
128
7,168
24
16
32
128
1
4
4
11.607
11.597
false
48
128
7,168
24
16
32
128
32
4
4
11.613
11.607
false
48
128
7,168
24
16
32
128
64
4
4
11.621
11.609
false
48
128
7,168
24
16
32
128
16
4
4
11.619
11.615
false
48
128
7,168
24
16
32
128
16
4
5
11.666
11.665
false
48
128
7,168
32
64
128
128
32
4
3
44.049
44.042
true
48
128
7,168
32
16
32
128
1
4
4
11.62
11.615
false
48
128
7,168
32
16
32
128
32
4
4
11.623
11.618
false
48
128
7,168
32
16
32
128
64
4
4
11.622
11.62
false
48
128
7,168
32
16
32
128
16
4
4
11.621
11.619
false
48
128
7,168
32
16
32
128
1
4
5
11.663
11.662
false
48
128
7,168
40
64
128
128
32
4
3
44.088
44.081
true
48
128
7,168
40
16
32
128
1
4
4
11.636
11.631
false
48
128
7,168
40
16
32
128
32
4
4
11.632
11.63
false
48
128
7,168
40
16
32
128
64
4
4
11.639
11.635
false
48
128
7,168
40
16
32
128
16
4
4
11.645
11.643
false
48
128
7,168
40
16
32
128
1
4
5
11.682
11.68
false
48
128
7,168
48
64
128
128
32
4
3
44.132
44.11
true
48
128
7,168
48
16
32
128
16
4
4
11.636
11.631
false
48
128
7,168
48
16
32
128
32
4
4
11.641
11.639
false
48
128
7,168
48
16
32
128
64
4
4
11.637
11.636
false
48
128
7,168
48
16
32
128
1
4
4
11.638
11.631
false
48
128
7,168
48
16
32
128
1
4
5
11.681
11.671
false
48
128
7,168
64
64
128
128
32
4
3
44.204
44.198
true
48
128
7,168
64
16
32
128
32
4
4
11.646
11.644
false
48
128
7,168
64
16
32
128
64
4
4
11.651
11.644
false
48
128
7,168
64
16
32
128
1
4
4
11.647
11.646
false
48
128
7,168
64
16
32
128
16
4
4
11.645
11.64
false
48
128
7,168
64
16
32
128
1
4
5
11.691
11.691
false
48
128
7,168
80
64
128
128
32
4
3
44.218
44.201
true
48
128
7,168
80
16
32
128
32
4
4
11.674
11.668
false
48
128
7,168
80
16
32
128
64
4
4
11.667
11.665
false
48
128
7,168
80
16
32
128
1
4
4
11.661
11.66
false
48
128
7,168
80
16
32
128
16
4
4
11.677
11.666
false
48
128
7,168
80
16
32
128
1
4
5
11.703
11.699
false
48
128
7,168
96
64
128
128
32
4
3
44.248
44.24
true
48
128
7,168
96
16
32
128
32
4
4
11.675
11.675
false
48
128
7,168
96
16
32
128
16
4
4
11.683
11.678
false
48
128
7,168
96
16
32
128
1
4
4
11.672
11.665
false
48
128
7,168
96
16
32
128
64
4
4
11.684
11.67
false
48
128
7,168
96
16
32
128
1
4
5
11.712
11.707
false
48
128
7,168
128
64
128
128
32
4
3
44.363
44.348
true
48
128
7,168
128
16
32
128
64
4
4
11.707
11.7
false
48
128
7,168
128
16
32
128
16
4
4
11.711
11.709
false
48
128
7,168
128
16
32
128
16
4
5
11.741
11.731
false
48
128
7,168
128
16
32
128
32
4
4
11.712
11.71
false
48
128
7,168
128
16
32
128
1
4
5
11.72
11.72
false
48
128
7,168
192
64
128
128
32
4
3
44.888
44.881
true
48
128
7,168
192
16
32
128
64
4
4
13.409
13.4
false
48
128
7,168
192
16
32
128
16
4
4
13.399
13.39
false
48
128
7,168
192
16
32
128
16
4
5
12.983
12.983
false
48
128
7,168
192
16
32
128
32
4
4
13.406
13.389
false
48
128
7,168
192
16
32
128
1
4
5
12.979
12.974
false
48
128
7,168
256
64
128
128
32
4
3
45.581
45.576
true
48
128
7,168
256
16
32
128
16
4
5
13.548
13.546
false
48
128
7,168
256
16
32
128
1
4
5
13.588
13.566
false
48
128
7,168
256
16
32
128
16
4
4
14.077
14.076
false
48
128
7,168
256
16
32
128
64
4
4
14.086
14.071
false
48
128
7,168
256
16
32
128
32
4
4
14.094
14.074
false
48
128
7,168
384
64
128
128
32
4
3
46.337
46.322
true
48
128
7,168
384
16
32
128
16
4
5
14.095
14.081
false
48
128
7,168
384
16
32
128
1
4
5
14.113
14.099
false
48
128
7,168
384
16
32
128
16
4
4
14.67
14.661
false
48
128
7,168
384
16
32
128
64
4
4
14.658
14.651
false
48
128
7,168
384
16
32
128
32
4
4
14.671
14.663
false
48
128
7,168
384
16
32
128
32
4
5
14.063
14.061
false
48
128
7,168
384
16
32
128
64
4
5
14.081
14.071
false
48
128
7,168
512
64
128
128
32
4
3
46.368
46.35
true
48
128
7,168
512
16
32
128
32
4
5
14.301
14.296
false
48
End of preview. Expand in Data Studio

Block-FP8 (128x128) Triton GEMM sweep on RTX PRO 6000 Blackwell Max-Q (SM120)

This dataset holds every tile configuration of sglang's block-wise FP8 W8A8 Triton GEMM (_w8a8_block_fp8_matmul, DeepSeek-style 128x128 weight blocks and 1x128 activation groups) timed on one NVIDIA RTX PRO 6000 Blackwell Max-Q Workstation Edition. It covers 47 weight shapes from DeepSeek-V3/V3.2, Kimi-K2, GLM-5, GLM-4.7-Flash, Qwen3 (30B-A3B, 32B, 235B-A22B), Qwen3.5/3.6/Next and MiniMax-M2 at the TP degrees that fit one 8-GPU node, at 18 batch sizes.

It contains the losing candidates and out-of-resource failures as well as the winners. The data comes with a three-stage re-timing, an independent A/B against the untuned default and against the SM120 CUTLASS block-FP8 kernel, a layer-level check through sglang's own dispatch, the resulting config tables, and the scripts that produced all of it.

Upstream use: the two shapes that reach this kernel in sglang's default SM120 serving path were submitted in sgl-project/sglang#53059. The other 45 tables are here for anyone who runs the Triton path on this card.

Hardware and software (all numbers measured on this exact setup)

GPU NVIDIA RTX PRO 6000 Blackwell Max-Q Workstation Edition, 96 GB, 300 W power limit (max 325 W), 188 SMs, cc 12.0 (SM120), 101,376 B opt-in shared memory per block, 128 MiB L2
Driver / CUDA 590.48.01 / 13.1 (torch built with CUDA 13.0)
Software Python 3.12.16, torch 2.14.1+cu130, triton 3.8.0, sglang at commit 8fdaa8787b264d09eee3b7e1dd64edaff1b9674b (main, 2026-11-25)
Host Linux 5.15, glibc 2.35. Shared 8-GPU node; this card was dedicated to the run, while other cards on the node ran other jobs.
Date 2026-11-25

data/environment.txt is the captured nvidia-smi and torch output.

Max-Q caveat: the Max-Q card runs at 300 W. The 600 W "Workstation Edition" and the "Server Edition" have different device names in sglang/vLLM, so their config files are looked up separately, and their absolute timings will differ. Do not copy these tables to those cards without re-measuring.

What is in it

file rows what
data/sweep.parquet 623,183 Stage 1: every (N, K, M, config) attempted. status is ok (timed 3 reps x 3-10 calls), ok_single_slow (first timed call was > 2x the running best, so only that one call is recorded) or oor:... (Triton OutOfResources; the message gives required vs 101,376 B smem). 62,232 rows are oor.
data/refine.parquet 9,097 Stage 2: top-10 per (N, K, M) plus the default config, re-timed in a cold-L2 CUDA graph (48 rotating input sets)
data/final.parquet 7,263 Stage 3: default + top-5 per M re-timed on serving-like inputs (see Method); also covers the off-grid M = 40, 80, 192, 384, 768
data/final_selection.json 1,081 Per (N, K, M): default us, shipped us, and whether the default config was kept
configs/*.json 47 files Resulting sglang config tables (file names exactly as get_w8a8_block_fp8_configs looks them up)
data/ab_final.jsonl 1,175 Verification: per (N, K, M) at 25 M values, w8a8_block_fp8_matmul_triton without and with the table, CUTLASS fp8_blockwise_scaled_mm where N % 128 == 0, plus max relative error of both Triton arms vs an FP32 dequant reference
data/ab_final_rep2.jsonl, data/ab_final_rep3.jsonl 1,175 each Two repeats of the verification A/B (same inputs/seed), for run-to-run noise
data/ab.jsonl 1,175 Same A/B for the stage-2 tables (before the keep-default rule)
data/layer.jsonl 112 Layer level through dispatch_w8a8_block_fp8_linear([128,128]) (bf16 in, activation quant included), main vs tuned, for the 4 shapes that hit Triton by default on SM120
data/correctness_{main,patch}.jsonl 28 + 28 Mean relative error vs native_w8a8_block_fp8_matmul (the repo's test reference), fresh process per point, without/with the config files
scripts/ shapes.py (shape list with sources), tune_all.py, refine.py, finalize.py, ab_bench.py, layer_bench.py, correctness.py, run_all.sh

Columns: N, K (weight is N x K), M (tokens), the six Triton meta-parameters (BLOCK_SIZE_M/N/K, GROUP_SIZE_M, num_warps, num_stages), timings in microseconds, is_default (the config sglang uses when no table exists: 64/128/128/32, 4 warps, 3 stages).

Method

  • Search space: the same as benchmark/kernels/quantization/tuning_block_wise_kernel.py (stages 2-5 x BM 16-256 x BK 64/128 x BN 32-256 x warps 4/8 x GROUP_M 1/16/32/64 = 1,280 per point). There are two exact prunes. GROUP_SIZE_M variants are skipped when the grid has a single M tile, because they launch an identical schedule. BLOCK_SIZE_M is capped at 2 x next_pow2(max(M, 16)).
  • Cold L2: every timed call reads a different copy of A/B/scales, rotated over at least 384 MB (3x the L2).
  • Stage 1 (sweep) times eagerly with a torch.cuda._sleep queued ahead, so launches run back to back. Use these numbers for ranking. At the smallest sizes they read about 2-4 us high against CUDA-graph timing; we measured 20.7 vs 17.0 us at 576x7168, M=1.
  • Stages 2-3 and the A/B use one CUDA graph holding 48 (or fewer, for huge shapes) launches over rotating inputs, and report the median of 3 replays.
  • Stage 3 selection uses bf16 randn activations quantized with sglang's per_token_group_quant_fp8 and 0.05 x randn weights quantized to 128x128 blocks (seed 1). A non-default config is shipped only when it beats the default by >= 2% at that M; otherwise the default config is written for that M (205 of 1,081 keys).
  • Verification (ab_final.jsonl) uses a different seed (0) from selection.

Results (from the files above)

  • Tuned vs default Triton, all 47 shapes x 25 M (1,175 points): geometric mean 1.47x. By M range, from the sweep best vs default: 1.91x at M 1-64, 1.35x at M 96-512, 1.05x at M 1024-4096.
  • Noise floor: the A/B was run three times (ab_final.jsonl, _rep2, _rep3). Default-vs-default spread (max/min over 3 runs) has p50 1.003 and p95 1.041 for M <= 256, and p50 1.015 and p95 1.085 for M > 256. With the median of 3 runs, the tuned/default geo-mean is 1.97x at M 1-64, 1.44x at M 65-256, 1.09x at M 257-1024 and 1.02x at M > 1024. 84 of 1,175 points have a median below 0.97x, all at M >= 128 and mostly at M >= 384 between grid points or at the off-grid M=8192. Three regressions reproduce in all three runs: 7168x256 @ M=128 (0.82x), 128x7168 @ M=8192 (0.87x, served by the M=4096 entry) and 1024x3072 @ M=8192 (0.88x). If you use those tables, replace those entries with the default config. The other points that fell below 0.90x in one run (9216x2048 @ 1536, 7168x18432 @ 768, 1152x4096 @ 4096) came back at 0.92-0.98x in the repeats.
  • Harness order bias at large M: the A/B always times the tuned arm right after the default arm. At the 205 keys where the table holds the default config itself (identical kernel in both arms), the median "speedup" is 1.000 (p5 0.989) for M <= 256 but 0.982 (p5 0.926) for M 257-1024 and 0.975 (p5 0.922) for M > 1024. Most sub-0.97x points at M > 256 are therefore within the bias of this method, not real regressions; a fair large-M comparison would interleave the arms. The three regressions listed above are outside that band.
  • Correctness: every shipped entry keeps BLOCK_SIZE_K=128 without split-K, so the K-reduction order is the default's. Relative error vs the FP32 reference is identical between the arms at every A/B point (max 0.0037). The repo-test metric is identical to every printed digit at all 28 correctness points.
  • Triton vs CUTLASS on SM120 (43 shapes with N % 128 == 0): CUTLASS time / tuned Triton time has geo-mean 1.13 at M <= 64 (tuned Triton faster at 81% of points), 1.02 at M 65-256, 0.93 at M 257-1024 and 0.80 at M > 1024. CUTLASS, sglang's SM120 default, wins at prefill sizes. Untuned Triton loses everywhere.
  • The best tiles on this card follow a clear pattern: BM=16, BN=32, 4 warps, 5 stages for M <= 64; BM=32-64, BN=64, 3 stages up to M=1024; 128x128 beyond (most common winner per M bucket in sweep.parquet). 62,232 candidate runs (10% of the sweep) fail to compile for this card's 101,376 B per-block shared-memory limit; the status column records the required size for each.

Per-shape summary (from ab_final.jsonl; the last column gives the first measured M at which CUTLASS beats the tuned Triton kernel):

N x K source layer(s) tuned/default geo-mean (25 M) geo-mean M in {1,8,32,64} worst M M=1 default / tuned / CUTLASS (us) CUTLASS first beats tuned Triton at
576x7168 dsv3 kv_a_proj_with_mqa (replicated; SM120 default path) 2.30x 3.27x 0.90x 46.8 / 14.8 / - n/a (N%128!=0 -> Triton)
2112x7168 dsv3/v3.2/kimi-k2 fused_qkv_a_proj_with_mqa (replicated; SM120 default path) 1.74x 2.65x 0.95x 49.3 / 18.4 / - n/a (N%128!=0 -> Triton)
1344x2048 glm-4.7-flash fused_qkv_a_proj_with_mqa (replicated; SM120 default path) 1.85x 2.56x 0.92x 15.3 / 6.0 / - n/a (N%128!=0 -> Triton)
2624x6144 glm-5 fused_qkv_a_proj_with_mqa (replicated; SM120 default path) 1.66x 2.51x 0.97x 44.9 / 16.6 / - n/a (N%128!=0 -> Triton)
128x7168 dsv3.2 indexer wk (replicated) 3.01x 3.79x 0.87x 44.7 / 11.9 / 17.9 M>=8192
512x3072 qwen3.5-122b shared-expert gate_up TP4 2.35x 3.40x 0.97x 20.4 / 6.2 / 9.2 M>=3072
512x7168 dsv3 shared-expert gate_up TP8 2.32x 3.29x 0.94x 46.9 / 14.7 / 18.6 M>=1536
1024x2048 qwen3.5-35b / qwen3-next shared-expert gate_up TP1 2.05x 3.11x 0.91x 14.5 / 5.3 / 7.0 M>=1536
1152x4096 qwen3-235b qkv TP8 2.00x 2.95x 0.90x 28.1 / 10.8 / 12.2 M>=768
1024x3072 minimax-m2 qkv TP8 1.90x 2.80x 0.88x 21.6 / 8.3 / 9.5 M>=1536
2048x4096 qwen3-30b-a3b o_proj TP1; qwen3.5/next o_proj TP1 1.74x 2.68x 0.95x 31.1 / 11.2 / 12.3 M>=96
2304x4096 qwen3-235b qkv TP4 1.70x 2.64x 0.95x 32.2 / 11.3 / 12.3 M>=80
2048x3072 minimax-m2 qkv TP4 1.67x 2.54x 0.94x 24.1 / 9.0 / 10.1 M>=96
2048x2048 qwen3-30b-a3b o_proj TP2 1.64x 2.47x 0.91x 18.1 / 6.7 / 7.8 M>=768
2560x2048 qwen3-30b-a3b qkv TP2 1.59x 2.40x 0.94x 20.0 / 6.8 / 7.9 M>=80
3072x7168 dsv3 get_weight_shapes n_tp[1]/8 1.55x 2.35x 0.98x 53.6 / 19.8 / 20.8 M>=40
3072x768 minimax-m2 o_proj TP8 1.53x 2.34x 0.99x 11.1 / 3.0 / 4.5 M>=96
3072x2048 qwen3.5-122b o_proj TP4 1.50x 2.29x 0.94x 21.7 / 7.1 / 8.0 M>=80
3072x1536 dsv3 q_b_proj TP8 1.47x 2.15x 0.95x 17.6 / 6.1 / 6.9 M>=64
4096x512 dsv3 kv_b_proj TP8 1.44x 2.08x 0.94x 9.9 / 2.7 / 4.2 M>=192
4096x2048 qwen3-235b o_proj TP4 1.39x 2.04x 0.94x 23.8 / 7.9 / 9.0 M>=64
2048x512 qwen3.5-35b / qwen3-next shared-expert down TP1 1.50x 2.03x 1.00x 6.7 / 2.6 / 3.9 M>=1024
5120x4096 qwen3-32b o_proj TP2 1.35x 1.96x 0.94x 43.8 / 15.9 / 16.8 M>=24
5120x8192 qwen3-32b o_proj TP1 1.36x 1.95x 0.97x 74.6 / 30.0 / 29.8 M>=1
4352x3072 qwen3.5-122b full-attn qkv(+gate) TP4 1.35x 1.94x 0.92x 32.1 / 11.7 / 12.4 M>=24
7168x256 dsv3 shared-expert down TP8 1.39x 1.94x 0.83x 9.8 / 2.2 / 3.2 M>=64
5120x2048 qwen3-30b-a3b qkv TP1 1.32x 1.92x 0.92x 27.6 / 8.9 / 9.9 M>=40
4096x1024 qwen3-235b o_proj TP8 1.35x 1.91x 0.97x 15.2 / 5.1 / 6.1 M>=80
4608x7168 dsv3 dense gate_up TP8 1.34x 1.88x 0.94x 60.9 / 25.3 / 25.5 M>=24
5120x3072 qwen3.5-122b in_proj_qkvz TP4 1.30x 1.81x 0.92x 35.7 / 13.1 / 13.8 M>=40
5120x12800 qwen3-32b down TP2 1.34x 1.79x 0.99x 105.1 / 48.3 / 47.2 M>=1
3072x256 qwen3.5-122b shared-expert down TP4 1.40x 1.77x 1.03x 5.9 / 2.0 / 3.2 M>=768
5120x5120 qwen3-32b qkv TP2 1.31x 1.76x 0.98x 50.6 / 20.6 / 21.2 M>=24
32768x512 dsv3 kv_b_proj TP1 / DP-attn 1.27x 1.72x 0.98x 55.3 / 12.3 / 13.4 M>=40
7168x2304 dsv3 dense down_proj TP8 1.26x 1.70x 0.97x 38.9 / 13.4 / 13.5 M>=24
5120x25600 qwen3-32b down TP1 1.29x 1.68x 0.97x 185.4 / 92.4 / 92.6 M>=24
7168x2048 dsv3 o_proj TP8 1.24x 1.67x 0.97x 35.5 / 11.6 / 12.2 M>=40
8192x1536 dsv3.2 indexer wq_b (replicated) 1.20x 1.61x 0.97x 32.4 / 10.3 / 11.0 M>=40
9216x2048 qwen3.5-35b / qwen3-next full-attn qkv(+gate) TP1 1.16x 1.53x 0.89x 48.3 / 14.2 / 14.7 M>=40
7168x16384 dsv3 o_proj TP1 / DP-attn 1.19x 1.48x 0.95x 143.7 / 75.9 / 75.7 M>=1
12288x2048 qwen3.5-35b / qwen3-next in_proj_qkvz TP1 1.16x 1.46x 0.93x 61.1 / 18.1 / 18.4 M>=192
24576x1536 dsv3 q_b_proj TP1 / DP-attn 1.13x 1.46x 0.95x 88.2 / 25.7 / 28.6 M>=40
7168x18432 dsv3 dense down_proj TP1 1.18x 1.42x 0.89x 154.4 / 88.0 / 88.4 M>=8
51200x5120 qwen3-32b gate_up TP1 1.13x 1.41x 0.94x 381.4 / 166.4 / 173.5 M>=40
10240x5120 qwen3-32b qkv TP1 1.13x 1.36x 0.95x 83.5 / 36.5 / 36.9 M>=24
25600x5120 qwen3-32b gate_up TP2 1.11x 1.31x 0.98x 198.7 / 86.1 / 93.5 M>=80
24576x7168 dsv3 get_weight_shapes total[1] 1.07x 1.26x 0.92x 220.8 / 111.9 / 126.4 M>=80

Layer level (bf16 in, sglang dispatch_w8a8_block_fp8_linear, default SM120 backend): the MLA fused-A projection goes from ~47 us flat (M=1-256) to 17.8-20.7 us at M <= 64 for 2112x7168, and to 16.4-19.9 us for 2624x6144. The tuned arm is never slower at any of the 14 measured M. See data/layer.jsonl.

Which tables matter for default sglang on SM120

sglang resolves --fp8-gemm-backend auto to CUTLASS on SM120. CUTLASS falls back to this Triton kernel only for weights with N or K not divisible by 128: the four "SM120 default path" shapes above. The other 43 tables apply when the Triton block-FP8 path runs explicitly (--fp8-gemm-backend triton, sglang's diffusion runtime multimodal_gen, which calls this kernel directly, and other Triton callers). The CUTLASS columns show where switching would pay off.

Limitations

  • Single card, single day. The sweep itself was run once; the verification A/B was run three times (see Results). Rankings among configs within ~2% of each other are not meaningful.
  • Synthetic inputs (uniform random FP8 for stage 1; randn quantized for stages 3 and later). FP8 GEMM time barely depends on values, but power and clock behaviour on a 300 W card can vary with them.
  • Clocks were not locked (the shared node has no root access). The Max-Q card boosts up to 3,090 MHz under its 300 W cap.
  • Kernel and layer level only. No end-to-end serving throughput was measured: the DeepSeek/GLM-5/Qwen3-235B shapes come from models that need several cards, and the run used one.
  • The "first M where CUTLASS beats tuned Triton" column is a single crossing point and can flip back at larger M.
  • The ok_single_slow rows are one-call timings of configs that were already > 2x slower than the best. They are good for "clearly bad" and not for precise ranking.
  • sglang's own tuner (tuning_block_wise_kernel.py) reuses the same inputs for every call (warm L2) and times eagerly. Its absolute numbers are therefore lower and not comparable to these.

Reproduce

scripts/run_all.sh lists the exact commands, in order. tune_all.py and refine.py resume from their output files. The full sweep took ~1.9 GPU-hours on this card; refine + final + A/B + layer took another ~1 h.

Downloads last month
70