mirror of
https://github.com/tile-ai/tilelang.git
synced 2026-10-31 08:13:15 +08:00
Two structural reductions, no behavior change: - Merge the three TMA-staged quantize kernel variants (16/32/64x256) into one _tilelang_nvfp4_blockscaled_quantize_kernel_tiled factory: their inner loops were line-identical, differing only in rows_per_cta, stage count and the store path (TMA store vs direct global stores), all of which are trace-time parameters now. Outputs verified bitwise-identical to the previous per-variant kernels for every dispatch configuration (quant bytes and scale source). - Move the 14 SM120 OMMA scale-selector contract oracles into the contract test file that is their only consumer; the quantize module stays focused on quantization and layout packing. 1334 -> 978 lines. Quantize suite: 32 passed. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>