Repository navigation
[OPUS] Align CO tests and build metadata with local kernel IDs - #7055
Conversation
Rebase onto the merged global-to-local registry migration. Match all 221 kernel records exactly, update A0/mirror build-info kids and test lookups, and add a CPU-only consistency regression for all profile tables. Keep CO bytes and exported symbols unchanged; clarify historical validation IDs.
🏷️ CI GuideRuns automatically on every PR:
Extended tests (opt-in via labels):
One backend per PR: PR title tags & labels: |
Rebase onto the merged global-to-local registry migration. Match all 221 kernel records exactly, update A0/mirror build-info kids and test lookups, and add a CPU-only consistency regression for all profile tables. Keep CO bytes and exported symbols unchanged; clarify historical validation IDs.
No conflicts, but main changed code the deployment replay runs through: - #7020: the MXFP4 inline sort takes num_local_tokens and skips expert ids outside [0, E), as the sentinel ids of EP callers are. - #7067: the a16w4 stage-2 reduce mode in fused_moe.py and Kimi-K3's a16w4 table. - #7068, #6668: gfx1250 grouped tables for DeepSeek-V4.1 MegaMoE EP and MiniMax-M3. - #7055: the OPUS CO tests read local kernel IDs; this branch's 1-GPU CI shards failed on the global ones. Co-authored-by: Cursor <[email protected]>
…de (#6557) * [FlyDSL][gfx1250] Tune DeepSeek-R1 FP4 MoE tiles for high-batch decode. 128x256x256 is the right tile for the fused K7168 and K2048 GEMMs at high batch on gfx1250. For the 4096 tokens-per-rank EP shape, 3 buffers is faster than 2 (benched: GEMM1 82.6 vs 83.4 us, GEMM2 67.9 vs 69.6 us, ~0.5-4% per GEMM, accuracy PASS), so record 3 buffers there for both the 65- and 64-expert shapes; the smaller buckets keep 2 buffers. Co-authored-by: Cursor <[email protected]> * [FlyDSL][gfx1250] Select fused-EP MoE tiles on the compact-plan path. The compact-plan lookup left ep_fused false, and the merged CSV stores that flag as "1.0", so the 128-tile rows never matched and the plan stayed on the 64 default. Look the scatter path up and normalize those cells, and log the row that was selected. Co-authored-by: Cursor <[email protected]> * [FlyDSL][gfx1250] Keep pitched FP4 scale addresses in the grouped GEMM launch. The launcher cache flattens scale tensors with view(-1). Compact dispatch scales are a strided window on the wire pitch, so that view aborts before the kernel runs. Pass a rank-1 span of the same base address and let the row stride describe the pitch. Co-authored-by: Cursor <[email protected]> * [OPUS] Align CO tests and build metadata with local kernel IDs (#7055) Rebase onto the merged global-to-local registry migration. Match all 221 kernel records exactly, update A0/mirror build-info kids and test lookups, and add a CPU-only consistency regression for all profile tables. Keep CO bytes and exported symbols unchanged; clarify historical validation IDs. --------- Co-authored-by: Cursor <[email protected]> Co-authored-by: karverma-amd <[email protected]> Co-authored-by: demonsan <[email protected]> Co-authored-by: Satya Nikhil Kodukula <[email protected]>
Rebase onto the merged global-to-local registry migration. Match all 221 kernel records exactly, update A0/mirror build-info kids and test lookups, and add a CPU-only consistency regression for all profile tables. Keep CO bytes and exported symbols unchanged; clarify historical validation IDs.
…de (#6557) * [FlyDSL][gfx1250] Tune DeepSeek-R1 FP4 MoE tiles for high-batch decode. 128x256x256 is the right tile for the fused K7168 and K2048 GEMMs at high batch on gfx1250. For the 4096 tokens-per-rank EP shape, 3 buffers is faster than 2 (benched: GEMM1 82.6 vs 83.4 us, GEMM2 67.9 vs 69.6 us, ~0.5-4% per GEMM, accuracy PASS), so record 3 buffers there for both the 65- and 64-expert shapes; the smaller buckets keep 2 buffers. Co-authored-by: Cursor <[email protected]> * [FlyDSL][gfx1250] Select fused-EP MoE tiles on the compact-plan path. The compact-plan lookup left ep_fused false, and the merged CSV stores that flag as "1.0", so the 128-tile rows never matched and the plan stayed on the 64 default. Look the scatter path up and normalize those cells, and log the row that was selected. Co-authored-by: Cursor <[email protected]> * [FlyDSL][gfx1250] Keep pitched FP4 scale addresses in the grouped GEMM launch. The launcher cache flattens scale tensors with view(-1). Compact dispatch scales are a strided window on the wire pitch, so that view aborts before the kernel runs. Pass a rank-1 span of the same base address and let the row stride describe the pitch. Co-authored-by: Cursor <[email protected]> * [OPUS] Align CO tests and build metadata with local kernel IDs (#7055) Rebase onto the merged global-to-local registry migration. Match all 221 kernel records exactly, update A0/mirror build-info kids and test lookups, and add a CPU-only consistency regression for all profile tables. Keep CO bytes and exported symbols unchanged; clarify historical validation IDs. --------- Co-authored-by: Cursor <[email protected]> Co-authored-by: karverma-amd <[email protected]> Co-authored-by: demonsan <[email protected]> Co-authored-by: Satya Nikhil Kodukula <[email protected]>
No conflicts, but main changed code the deployment replay runs through: - #7020: the MXFP4 inline sort takes num_local_tokens and skips expert ids outside [0, E), as the sentinel ids of EP callers are. - #7067: the a16w4 stage-2 reduce mode in fused_moe.py and Kimi-K3's a16w4 table. - #7068, #6668: gfx1250 grouped tables for DeepSeek-V4.1 MegaMoE EP and MiniMax-M3. - #7055: the OPUS CO tests read local kernel IDs; this branch's 1-GPU CI shards failed on the global ones. Co-authored-by: Cursor <[email protected]>
…de (ROCm#6557) * [FlyDSL][gfx1250] Tune DeepSeek-R1 FP4 MoE tiles for high-batch decode. 128x256x256 is the right tile for the fused K7168 and K2048 GEMMs at high batch on gfx1250. For the 4096 tokens-per-rank EP shape, 3 buffers is faster than 2 (benched: GEMM1 82.6 vs 83.4 us, GEMM2 67.9 vs 69.6 us, ~0.5-4% per GEMM, accuracy PASS), so record 3 buffers there for both the 65- and 64-expert shapes; the smaller buckets keep 2 buffers. Co-authored-by: Cursor <[email protected]> * [FlyDSL][gfx1250] Select fused-EP MoE tiles on the compact-plan path. The compact-plan lookup left ep_fused false, and the merged CSV stores that flag as "1.0", so the 128-tile rows never matched and the plan stayed on the 64 default. Look the scatter path up and normalize those cells, and log the row that was selected. Co-authored-by: Cursor <[email protected]> * [FlyDSL][gfx1250] Keep pitched FP4 scale addresses in the grouped GEMM launch. The launcher cache flattens scale tensors with view(-1). Compact dispatch scales are a strided window on the wire pitch, so that view aborts before the kernel runs. Pass a rank-1 span of the same base address and let the row stride describe the pitch. Co-authored-by: Cursor <[email protected]> * [OPUS] Align CO tests and build metadata with local kernel IDs (ROCm#7055) Rebase onto the merged global-to-local registry migration. Match all 221 kernel records exactly, update A0/mirror build-info kids and test lookups, and add a CPU-only consistency regression for all profile tables. Keep CO bytes and exported symbols unchanged; clarify historical validation IDs. --------- Co-authored-by: Cursor <[email protected]> Co-authored-by: karverma-amd <[email protected]> Co-authored-by: demonsan <[email protected]> Co-authored-by: Satya Nikhil Kodukula <[email protected]>
Rebase onto the merged global-to-local registry migration. Match all 221 kernel records exactly, update A0/mirror build-info kids and test lookups, and add a CPU-only consistency regression for all profile tables. Keep CO bytes and exported symbols unchanged; clarify historical validation IDs.