Skip to content

Commit 17ba74b

Browse files
[AMD] Minimax-M3-MXFP8 Eagle3 Draft attention backend override TRITON_ATTN for performance/Minimax-M3-MXFP8 Eagle3草稿模型的注意力后端固定为 TRITON_ATTN以提高性能 (#2107)
* [AMD] Minimax-M3 Eagle3 Draft attention backend override TRITON_ATTN for perf Signed-off-by: Hongxia Yang <hongxia.yang@amd.com> * update with pr-link Signed-off-by: Hongxia Yang <hongxia.yang@amd.com> * update grammer or wording Signed-off-by: Hongxia Yang <hongxia.yang@amd.com> --------- Signed-off-by: Hongxia Yang <hongxia.yang@amd.com> Co-authored-by: seungrokj <144636725+seungrokj@users.noreply.github.com>
1 parent af224d6 commit 17ba74b

2 files changed

Lines changed: 13 additions & 11 deletions

File tree

benchmarks/single_node/fixed_seq_len/minimaxm3_fp8_mi355x_mtp.sh

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,12 @@
33
# MiniMax-M3 MXFP8 MI355X (gfx950) single-node vLLM recipe with EAGLE3
44
# speculative decoding — the spec-decoding=mtp variant of
55
# minimaxm3_fp8_mi355x.sh. Adds the Inferact/MiniMax-M3-EAGLE3 draft head via
6-
# --speculative-config with 3 speculative tokens. Everything else mirrors the
7-
# non-MTP recipe: MXFP8 from TP=4 on gfx950, mandatory --block-size 128,
8-
# --language-model-only for the text-only benchmark, FP8 KV cache, and
9-
# --attention-backend TRITON_ATTN. Runs with CUDA graphs (no --enforce-eager);
10-
# VLLM_USE_BREAKABLE_CUDAGRAPH=0 avoids the M3-decode breakable-cudagraph path.
6+
# --speculative-config with 3 speculative tokens.
117
#
12-
# Unlike the CUDA recipes, the drafter needs no attention_backend override:
13-
# the FlashInfer "page size 128 requires GQA/MQA" limitation that forced
14-
# FLASH_ATTN for the EAGLE3 MHA head on Blackwell is FlashInfer/CUDA-specific.
15-
# Here the whole server runs on TRITON_ATTN (set globally below), which serves
16-
# the MHA draft fine.
8+
# The EAGLE3 drafter (dense Llama MHA head) is pinned to TRITON_ATTN in the
9+
# speculative-config, otherwise it would fall back to a slow default backend.
10+
# Adding the explicit override left the draft's token acceptance unchanged but
11+
# sped up the draft forward enough to turn into a win across the board.
1712
#
1813
# [AI generated draft test] The shipped vllm/vllm-openai-rocm:minimax-m3 image
1914
# does NOT implement SupportsEagle3 on the AMD MiniMax-M3 model, so EAGLE3
@@ -197,7 +192,7 @@ vllm serve "$MODEL" --port "$PORT" \
197192
--kv-cache-dtype fp8 \
198193
--attention-backend TRITON_ATTN \
199194
--linear-backend emulation \
200-
--speculative-config "{\"method\": \"eagle3\", \"model\": \"$DRAFT_MODEL\", \"num_speculative_tokens\": $NUM_SPEC_TOKENS}" \
195+
--speculative-config "{\"method\": \"eagle3\", \"model\": \"$DRAFT_MODEL\", \"num_speculative_tokens\": $NUM_SPEC_TOKENS, \"attention_backend\": \"TRITON_ATTN\"}" \
201196
--tool-call-parser minimax_m3 \
202197
--reasoning-parser minimax_m3 \
203198
--enable-auto-tool-choice > "$SERVER_LOG" 2>&1 &

perf-changelog.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4574,3 +4574,10 @@
45744574
description:
45754575
- "Add high concurrency configs"
45764576
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/1994
4577+
4578+
- config-keys:
4579+
- minimaxm3-fp8-mi355x-vllm-mtp
4580+
description:
4581+
- "Pin the EAGLE3 drafter to TRITON_ATTN via the speculative-config attention_backend override; without it the drafter falls back to a slow default backend."
4582+
- "Speeds up the draft forward measured on MI355X TP4 MXFP8, 8k/1k throughput gains growing with concurrency vs no override."
4583+
pr-link: https://github.com/SemiAnalysisAI/InferenceX/pull/2107

0 commit comments

Comments
 (0)