Repository navigation
[Perf][ROCm][MiniMax-M3.1] Add opt-in parallel decode top-k - #65267
shen-shanshan merged 8 commits into
Conversation
Use runtime shape metadata and fixed merge widths for the NVFP4 indexer. Preserve FlyDSL ordering and causal bounds, with changing-length graph replay tests, recipe opt-in and MI355 kernel CI coverage. Reapply the reviewed vllm-project#65032 patch to main after its base branch was deleted. Co-authored-by: OpenAI Codex Signed-off-by: jiacao-amd <jiahui.cao@amd.com>
7da2dc5 to
8daa3c4
Compare
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
@ChuanLi1101 Following up on your review in #65032 (comment). This PR replaces #65032 after its base branch was deleted and now targets main.
The review fixes and measurements are included here; hosted CI remains pending the repository's pre-run gate. |
|
✅ @jiacao-amd, CI is now available for this PR.
|
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
|
/ci run |
|
✅ Triggered Buildkite CI #99865 for commit ℹ️ This PR is 27 commits behind upstream |
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ChuanLi1101
left a comment
There was a problem hiding this comment.
Looks good to me — default-off with the in-tree coverage and AgentX deltas. The ~0.4pp GSM8K dip is fine for merge; please attribute it before scoreboard enablement turns the flag on.
Move the 78 parallel decode cases into the NVFP4 indexer test suite already selected by MI355 CI. Reuse the original test helpers and preserve all assertions, parameters and gfx950 platform guards. Remove the PR-specific Buildkite test registration. Co-authored-by: OpenAI Codex <noreply@openai.com> Signed-off-by: jiacao-amd <jiahui.cao@amd.com>
|
This pull request has merge conflicts that must be resolved before it can be |
Retain the CP gate test added on main before the relocated parallel top-k cases, resolving the shared import and append locations. Co-authored-by: OpenAI Codex <noreply@openai.com> Signed-off-by: jiacao-amd <jiahui.cao@amd.com>
Resolve the shared import and append locations while preserving both test suites. The resulting tree is current main plus the five PR files; no CI configuration changes remain in the PR. Co-authored-by: OpenAI Codex <noreply@openai.com> Signed-off-by: jiacao-amd <jiahui.cao@amd.com>
|
/ci run |
|
✅ Triggered Buildkite CI #100200 for commit ℹ️ This PR is 1 commit behind upstream |
Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
vllm-project/vllm@main:recipes a7809d0cc5ba → 1e89fd11251b [latest.vllm] vllm-project/vllm@a7809d0...1e89fd1 Commits: - vllm-project/vllm@1e89fd11251b [Perf][ROCm][MiniMax-M3.1] Add opt-in parallel decode top-k (vllm-project/vllm#65267) Recipes: - MiniMaxAI/MiniMax-M3.1-Flash (modified): https://recipes.vllm.ai/MiniMaxAI/MiniMax-M3.1-Flash Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…mni@4cbfcc3eb555 vllm-project/vllm@main:recipes e6c60746e605 → aa4022dc8176 [latest.vllm] vllm-project/vllm@e6c6074...aa4022d Commits: - vllm-project/vllm@84e17e1ba583 Minimax m3.1 dspark drafter monokernel (vllm-project/vllm#65386) - vllm-project/vllm@1e89fd11251b [Perf][ROCm][MiniMax-M3.1] Add opt-in parallel decode top-k (vllm-project/vllm#65267) Recipes: - MiniMaxAI/MiniMax-M3.1-Flash (modified): https://recipes.vllm.ai/MiniMaxAI/MiniMax-M3.1-Flash vllm-project/vllm-omni@main:recipes 04ddf2104966 → 4cbfcc3eb555 [latest.vllm-omni] vllm-project/vllm-omni@04ddf21...4cbfcc3 Commits: - vllm-project/vllm-omni@e89852357492 [Model] Stream JoyAI duplex speech through async-chunk Code2Wav (vllm-project/vllm-omni#9798) Signed-off-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…ject#65267) Signed-off-by: jiacao-amd <jiahui.cao@amd.com> Co-authored-by: vllm-agent <claw@inferact.ai> Co-authored-by: OpenAI Codex <noreply@openai.com>
Overview
Add an opt-in parallel decode top-16 selector for MiniMax-M3.1 on gfx950, replacing the fixed FlyDSL w26 selector in the NVFP4 indexer.
Supersedes #65032 and targets
main. The parallel top-k tests extend the existing MI355 NVFP4 indexer suite; no CI configuration changes are included.Claims
VLLM_ROCM_PARALLEL_INDEX_TOPK=1; default off. FP8 indexers, including C4 mono decode, bypass this path.Validation
900 s AgentX: baseline vs top-k only
4× MI355X, TP4, AgentX 1.0.12; 900 s per arm after warmup. Model:
amd/MiniMax-M3.1-Flash-Quark-MXFP4at0a00e0e39fc00499b23efccc18a8ea63fce5c44c. InferenceX #4671 atbed892b82, DSpark K7, synthetic AL 4.04, seed 42.Values are baseline → candidate. p90 interactivity uses
output_token_throughput_per_user.p10; total throughput includes cached input tokens.Run 1 uses
f9f83fb28; the repeats use the same kernel in eae2f1099. Neither arm includes #62509. Each row is an independent pair.ITL and TTFT (baseline → candidate)
The first C32 repeat reached the 30 s drain limit with one cancelled request and is excluded. The table uses a fresh C32 pair with the same settings.
Configuration and reproduction
Pinned nightly:
vllm/vllm-openai-rocm@sha256:9cef62361792bd9cc621725c3af799993b6a68b6b62e3778dcf9b65ff6fcd872(sourcee0d00e4b8). Both repetitions use this image.C16/C32 use NVFP4 KV/indexer, V2 + DBO and a 32K prefill budget. Both arms include the same text-only DBO startup-guard fix (
supports_multimodal_inputs). C4 uses FP8 KV/indexer, mono decode, an 8K prefill budget and no DBO.Use the corresponding #4671 serving lane. Set
CONCto the table's concurrency andTOKENIZERto the pinned model snapshot:In-tree tests: 78 cases, previously validated with 78 passed. The unchanged test bodies and parameters now live in the existing CI-selected suite:
.venv/bin/python -m pytest -q tests/kernels/attention/test_minimax_m3_nvfp4_index.py -k parallel_decode. The test-only relocation passes pre-commit and CI test-tethering checks; GPU execution at the new location is pending the new-head CI run. Direct-kernel and host-dispatch comparisons cover exact FlyDSL ordering, ties, NaNs, causal boundaries, query lengths 1/4/8, fused/staged merge and strided outputs. Two-stream graph replays switch the same rows across adaptive/merge boundaries and verify zero counters after every replay. Pre-commit hooks passed.Flag rename c0e83e24b: environment parsing, recipe validation/rendering and pre-commit checks passed. The reported GPU, serving and accuracy results predate this name-only update; no GPU rerun was performed for the rename.
GSM8K accuracy
Original scoring, all 1,319 questions per run; TP4/C16, 5-shot, temperature 0, seed 42, reasoning effort low, 4096-token output limit, and real DSpark K7 block rejection.
Repeated evaluation: two runs per arm, using the same model revision and serving configuration above and one image rebuilt from main
380c8e438, including the shared DBO startup fix. Candidate: the runtime diff from8daa3c4c2applied to that same base, with parallel top-k enabled; no tiles patch.All four runs completed without API errors. Prefix-cache resets succeeded before every run; token-limit answers remain in the original scores.
Earlier single-pair GSM8K result: 1,267 → 1,264 correct (96.06% → 95.83%); invalid answers 1 → 0.
Details
Small
heads × rows <= 16batches fuse selection and last-arriver merge; larger batches use staged merging. Scratch and counters are isolated by device, stream and shape.The recipe adds opt-in
parallel_topk; the existing MI355 Buildkite kernel job runs the tests throughtest_minimax_m3_nvfp4_index.pywith its existing gfx950 platform guards. Scoreboard enablement targets #4671's C16/C32 NVFP4 lane,zip_override_tp4_dspark7.roles.agg.env: set the flag to"1"in an image containing this patch and the text-only DBO startup fix noted above. Correctness CI does not enable serving; global default-on is not planned. Recipe validation, interactive command checks and documentation discovery passed.Related work: #65087 optimizes the same NVFP4 selector by changing the existing FlyDSL kernel to four waves per row. This PR is an alternative opt-in Triton selector with partitioned workgroups and fused/staged merging; the reported gains exclude #65087. #59980 targets index scoring and #64264 targets kernel warmup.
AI assistance: OpenAI Codex.
Pull Request Checklist