|
3 | 3 | # MiniMax-M3 MXFP8 MI355X (gfx950) single-node vLLM recipe with EAGLE3 |
4 | 4 | # speculative decoding — the spec-decoding=mtp variant of |
5 | 5 | # 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. |
11 | 7 | # |
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. |
17 | 12 | # |
18 | 13 | # [AI generated draft test] The shipped vllm/vllm-openai-rocm:minimax-m3 image |
19 | 14 | # does NOT implement SupportsEagle3 on the AMD MiniMax-M3 model, so EAGLE3 |
@@ -197,7 +192,7 @@ vllm serve "$MODEL" --port "$PORT" \ |
197 | 192 | --kv-cache-dtype fp8 \ |
198 | 193 | --attention-backend TRITON_ATTN \ |
199 | 194 | --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\"}" \ |
201 | 196 | --tool-call-parser minimax_m3 \ |
202 | 197 | --reasoning-parser minimax_m3 \ |
203 | 198 | --enable-auto-tool-choice > "$SERVER_LOG" 2>&1 & |
|
0 commit comments