[AMD][MXFP4] Reland "Online MXFP4 quantization 2/N - FP8 to MXFP4 requantization on AMD GPUs" - #28291
Conversation
… add informative counter for online quantization
|
@fxmarty-amd mi355 runners are under maintenance this week for GPU hang issue. |
|
Mi355 runner is not available yet. |
|
@michaelzhang-ai @yctseng0211 mi355 test in this run on an other PR: https://github.com/sgl-project/sglang/actions/runs/29615538361/job/88014527301 passed 2 days ago, are MI355 runners available now? |
|
Okay now stage-b-test-1-gpu-small-amd-mi35x (linux-mi35x-gpu-1) passed: Other mi325/mi350 tests are waiting for runners... |
yes, it is available now |
|
@amd-bot ci-status |
CI Status for PR #28291Merge verdict: ✅ Safe to merge on CI signal. PR CI is complete (no fast-fail cascade — all skips are normal path-filter skips). There are 2 executed test failures, both unrelated to this PR (an Intel XPU graph-capture timeout and an AMD mock-model PD-disaggregation crash — neither touches quantization code). Most importantly, this PR's core feature is genuinely exercised and passing: the new Note Changed MXFP4/quark/fp8 paths ARE covered by Changed files: Executed CI failure attribution: AMD: 1 failure (0 related) · Others (XPU): 1 failure (0 related) · 2 aggregator jobs ( AMD Executed Failures
Other (XPU) Executed Failures
Details / what to do before merge
Generated by amd-bot using Claude Code CLI |
|
CI status looks good. Additionally, running: cat > tests_fp8.txt << 'EOF'
test/registered/quant/test_w8a8_quantization.py
test/registered/quant/test_fp8_blockwise_row_padding.py
test/registered/quant/test_fp8_utils.py
test/registered/quant/test_modelopt_fp8.py
test/registered/quant/test_quant_config_parsing.py
test/registered/models_e2e/test_gemma4_fp8_per_expert_loading.py
test/registered/jit/test_mxfp8_moe.py
test/registered/unit/layers/quantization/test_mxfp4_sm90_cutlass.py
test/registered/moe/test_fused_moe.py
test/registered/moe/test_triton_fused_moe.py
test/registered/moe/test_triton_moe_channel_fp8_kernel.py
test/registered/unit/layers/quantization/test_flashinfer_trtllm_fp8_fallback.py
test/registered/quant/test_fp8_kernel.py
EOFand on 8xH100 gives: |
…uantization on AMD GPUs" (sgl-project#28291) Co-authored-by: Bowen Bao <bowenbao@amd.com> Co-authored-by: HAI <hixiao@gmail.com> Co-authored-by: Claude <noreply@anthropic.com>
…uantization on AMD GPUs" (sgl-project#28291) Co-authored-by: Bowen Bao <bowenbao@amd.com> Co-authored-by: HAI <hixiao@gmail.com> Co-authored-by: Claude <noreply@anthropic.com>
…uantization on AMD GPUs" (sgl-project#28291) Co-authored-by: Bowen Bao <bowenbao@amd.com> Co-authored-by: HAI <hixiao@gmail.com> Co-authored-by: Claude <noreply@anthropic.com>
…uantization on AMD GPUs" (sgl-project#28291) Co-authored-by: Bowen Bao <bowenbao@amd.com> Co-authored-by: HAI <hixiao@gmail.com> Co-authored-by: Claude <noreply@anthropic.com>
Motivation and description: please refer to #18182 (original PR), the unit tests gsm8k thresholds, as well as #18005 (comment) and:
This PR relands #18182 with the only change being e187c11, removing online quantization logging logic from
model_runner.py.#18182 was reverted by #28213 due to a wrongful merge conflict in
model_runner.pyaffecting modelopt quantization code path, not accounting for the previous fix #27284 that fixed a bug present in the first place in #18005.The CI running on #18182 did not capture this issue (
test/registered/quant/test_modelopt_fp8.pydid not run), and I was not aware of #27284, did not run tests on modelopt code path. Apologies for the trouble @mmangkad @merrymercyWhy
test_modelopt_fp8.pydid not run?TL;DR: It seems to me there should be a way/label to run the PR CI without skipping subsequent workflows (e.g.
1-gpu-large), to validate feature PRs.Unrelated to #18182,
base-b-test-1-gpu-small / base-b-test-1-gpu-small (1)failed in its CI within turn resulting in:
errors in
1-gpu-largetests (e.g. https://github.com/sgl-project/sglang/actions/runs/27459884924/job/81172119782?pr=18182), resulting intest_modelopt_fp8.pyto be not run. Other1-gpu-smalltests are skipped as well.Note that
stage-b-test-1-gpu-small-amd-mi35xon AMD did also NOT run in the latest CI of #18182, with the errors:Testing
Passing on MI355X:
Passing on H100:
& let's see the CI.
CI States
Latest PR Test (Base): ✅ Run #29748202307
Latest PR Test (Extra): ✅ Run #29748202077