[MiniMax-M3] optimize sparse vLLM metadata for improved performance of vllm-atom#1342
Merged
Conversation
f9d842b to
35ec283
Compare
0644b27 to
bc8c975
Compare
f81cf00 to
39ebb75
Compare
af91e65 to
c48e269
Compare
Co-authored-by: Cursor <cursoragent@cursor.com>
Mirror MiniMax-M3 index-cache overrides into text_config and share sparse topk cache across vLLM sparse layers by phase so skip layers reuse the correct refresh result. Co-authored-by: Cursor <cursoragent@cursor.com>
c48e269 to
8b31189
Compare
XiaobingSuper
previously approved these changes
Jul 6, 2026
Document the quick-reduce quantization setting needed by the MiniMax-M3 vLLM examples. Co-authored-by: Cursor <cursoragent@cursor.com>
Route pure multi-token decode batches through the MiniMax-M3 sparse decode metadata path so MTP/spec verification preserves decode semantics. Co-authored-by: Cursor <cursoragent@cursor.com>
ZhangLirong-amd
approved these changes
Jul 6, 2026
valarLip
approved these changes
Jul 6, 2026
zejunchen-zejun
approved these changes
Jul 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
Improve MiniMax-M3 sparse attention performance in the vLLM plugin path by reducing per-step metadata overhead and enabling CUDA Graph capture for the uniform single-token decode path.
Technical Details
MinimaxM3SparseAttentionMetadataBuilderasUNIFORM_SINGLE_TOKEN_DECODEinstead of disabling CUDA Graph support entirely.max_query_len == 1, avoiding decode/prefill splitting and CPU-side max reductions for plain decode batches.qo_indptrfor prefill metadata and replaced exact CPU-side max calculations with existing common metadata upper bounds.Test Plan
Test Result
GSM8K accuracy
MIXFP4

MIXFP4-kv_fp8

MIXFP8

MIXFP8-kv_fp8

Performance
MIXFP4-8192-1024-16

Submission Checklist