Repository navigation
qmmf: opt-in half-column tiles on many-SM GPUs - #4533
Conversation
d5d8e83 to
e4f9cb9
Compare
|
sm_120 lane-half-n check (RTX 5060 Ti eGPU, aarch64 Linux, driver 615.78.08, kernel 7.1.12-2 lab build,
Disclosure: that rerun died mid-fp8 with |
|
Follow-up after the host recovered (fresh boot, same driver 615.78.08 / kernel 7.1.12-2 lab /
All fp4, fp8 and fp8g cells completed this time, including the fp8 region where the earlier run was cut short — so that crash was the already-failing GPU, not this kernel. Representative timing (64-col vs half-tile): fp8 17408x5120 sk1: 210.8-213.9 us vs 218.3-220.2 us; fp8g 17408x5120 sk1: 225.0-226.8 vs 231.6-233.8 us; small shapes mostly equal (6.9 vs 6.9 us), a few half-tile wins (fp8 5120x6144 rows 1: 56.0 vs 55.4 us). |
80794fd to
4e4437f
Compare
TF_QMMF_HALF_BN=1 (default off) loads the 32-column half tile for FP4, FP8 and FP8G, as MXFP8 and BF16 already have it, and sets the half-tile threshold to two blocks an SM unless TF_QMMF_HALF_BELOW is set (340 on 170 SMs, 96 on GB10's 48). Columns split, never K: each output keeps its slices, mma chain, scale order and cluster sum. Off, no instance loads and nothing changes.
…column tile Bytes at rows 1-16 for Qwen3.8-27B's decode shapes and column edges, bf16 and fp32 out, adversarial weights, scales, inputs and tensor scales; warm times.
4e4437f to
d0237e6
Compare
What this changes
Small decode GEMVs underfill GPUs with many SMs (170 on sm_120). With
TF_QMMF_HALF_BN=1, the FP4, FP8 and FP8-group qmmf paths use 32-column tiles (and a higher half-tile threshold, chosen by SM count), splitting only along the output columns, never K, so every output's accumulation is unchanged. Default off.Checks
Still to run
An sm_120 GPU and a GB10: the byte check, then Qwen3.8-27B one-stream served A-B-B-A with tokens compared.