Repository navigation
[Klaud Cold] minimaxm31flash-fp4-gb300-dynamo-vllm-agentic-dspark-agg: MiniMax-M3.1-Flash DEP8 + CPU offload on two GB300 trays #4436
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
b04f8c6
minimaxm31flash-fp4-gb300-dynamo-vllm-agentic-dspark-agg: MiniMax-M3.…
Oseltamivir 9923a77
perf-changelog: fill minimaxm31flash gb300 dynamo pr-link
Oseltamivir a89c03a
minimaxm31flash gb300 dynamo agg: Dynamo 1.6.0.dev20261016 for the vL…
Oseltamivir de570e4
Merge remote-tracking branch 'origin/main' into feat/minimaxm31flash-…
Oseltamivir ce61e24
minimaxm31flash gb300 dynamo agg: DEP8 only (NVFP4 KV attention canno…
Oseltamivir File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
118 changes: 118 additions & 0 deletions
118
...arks/multi_node/srt-slurm-recipes/minimaxm31flash/vllm/gb300-fp4/agentx/agg-variants.yaml
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,118 @@ | ||
| schema: 2 | ||
|
|
||
| # MiniMax-M3.1-Flash AgentX on two GB300 trays (8 GPUs), aggregated through | ||
| # Dynamo vLLM. DEP8 only: the NVFP4 KV-cache attention kernels need 16 query | ||
| # heads per KV head on each rank (64 query / 4 KV heads), so attention TP8 does | ||
| # not start; low and mid concurrency stay on the single-tray TP4 recipe. Serve flags follow the single-node GB300 recipe | ||
| # (single_node/srt-slurm-recipes/minimaxm31flash/vllm/gb300-fp4-mtp); the | ||
| # Dynamo setup follows minimaxm3/vllm/gb200-fp4/agentx. | ||
| base: | ||
| identity: | ||
| model: {} | ||
| container: {} | ||
| frameworks: {dynamo: "1.6.0.dev20261016"} | ||
| # 1.6.0.dev20261014+ imports the vLLM engine-launch helpers lazily | ||
| # (ai-dynamo/dynamo#16378); earlier builds fail at import on this vLLM. | ||
| dynamo: {install: true, source: {pypi: "1.6.0.dev20261016"}} | ||
| environment: {ETCD_LEASE_TTL: "7200"} | ||
| slurm: {time_limit: "12:00:00"} | ||
| health_check: {max_attempts: 2160, interval_seconds: 10} | ||
| resources: | ||
| gpu_type: "gb300" | ||
| gpus_per_node: 4 | ||
| services: | ||
| - name: etcd | ||
| type: etcd | ||
| placement: | ||
| node: infra | ||
| - name: nats | ||
| type: nats | ||
| placement: | ||
| node: infra | ||
| options: | ||
| max_payload_mb: 32 | ||
| frontend: | ||
| type: dynamo | ||
| enable_multiple_frontends: false | ||
| env: {DYN_TCP_REQUEST_TIMEOUT: "60"} | ||
| args: | ||
| trust-remote-code: true | ||
| router-mode: "kv" | ||
| router-kv-events: true | ||
| router-temperature: "0" | ||
| router-session-affinity-ttl-secs: 14400 | ||
| kv-cache-block-size: 128 | ||
| engine: | ||
| type: vllm | ||
| connector: | ||
| roles: | ||
| agg: | ||
| nodes: 2 | ||
| workers: 1 | ||
| gpus: 8 | ||
| env: | ||
| HF_HUB_CACHE: "/hf_hub_cache" | ||
| HUGGINGFACE_HUB_CACHE: "/hf_hub_cache" | ||
| TRANSFORMERS_CACHE: "/hf_hub_cache" | ||
| VLLM_ENGINE_READY_TIMEOUT_S: "7200" | ||
| VLLM_EXECUTE_MODEL_TIMEOUT_SECONDS: "1800" | ||
| VLLM_FLOAT32_MATMUL_PRECISION: "high" | ||
| # Rendering the chat template for long AgentX conversations exceeds the | ||
| # 30 s default under concurrent load; vLLM then aborts the request. | ||
| VLLM_CHAT_TEMPLATE_RENDER_TIMEOUT: "600" | ||
| VLLM_LOG_STATS_INTERVAL: "1" | ||
| NCCL_CUMEM_ENABLE: "1" | ||
| NCCL_MNNVL_ENABLE: "1" | ||
| NCCL_NVLS_ENABLE: "1" | ||
| UCX_MEMTYPE_CACHE: "n" | ||
| UCX_NET_DEVICES: "@fabric.rdma-device-ports" | ||
| UCX_TLS: "cuda_copy,cuda_ipc,rc" | ||
| NCCL_IB_HCA: "@fabric.rdma-devices" | ||
| args: | ||
| served-model-name: "MiniMaxAI/MiniMax-M3.1-Flash" | ||
| pipeline-parallel-size: 1 | ||
| trust-remote-code: true | ||
| language-model-only: true | ||
| enable-prefix-caching: true | ||
| kv-cache-metrics: true | ||
| # MSA sparse/index cache needs 128-token blocks. | ||
| block-size: 128 | ||
| # The checkpoint is QAT-trained for an NVFP4 KV cache. | ||
| kv-cache-dtype: "nvfp4" | ||
| attention-config: '{"indexer_kv_dtype":"nvfp4","use_prefill_query_quantization":true}' | ||
| disable-hybrid-kv-cache-manager: true | ||
| compilation-config: '{"cudagraph_mode":"FULL_AND_PIECEWISE"}' | ||
| max-model-len: 1048576 | ||
| max-num-batched-tokens: 8192 | ||
| reasoning-parser: "minimax_m3" | ||
| dyn-tool-call-parser: "minimax_m3" | ||
| dyn-reasoning-parser: "minimax_m3" | ||
| kv_events: true | ||
| sbatch_directives: {cpus-per-task: "144", mem: "0"} | ||
| srun_options: {container-remap-root: ""} | ||
| benchmark: | ||
| env: | ||
| AIPERF_HTTP_X_DYNAMO_SESSION_ID_FROM_CORRELATION_ID: "true" | ||
| AIPERF_USE_DYNAMO_CONV_AWARE_ROUTING: "0" | ||
| AIPERF_DYNAMO_SESSION_TIMEOUT_SECONDS: "14400" | ||
| AIPERF_REQUIRED_SERVER_METRIC_PREFIX: "vllm:" | ||
|
|
||
| # DEP8: TP1 x DP8 + EP8, one DP launch per tray, with vLLM Simple CPU KV | ||
| # offload. Each DP rank gets a quarter of its tray's DRAM allowance (179 GiB of | ||
| # the 771 GB that dram-utilization 0.80 leaves per tray); three-token DSpark | ||
| # (golden AL 2.88). | ||
| override_dep8_vllm_simple: | ||
| name: "minimaxm31flash-vllm-agg-gb300-dep8-vllm-simple-agentic" | ||
| engine: | ||
| dp_launch_mode: per_node | ||
| roles: | ||
| agg: | ||
| env: | ||
| VLLM_USE_SIMPLE_KV_OFFLOAD: "1" | ||
| args: | ||
| tensor-parallel-size: 1 | ||
| data-parallel-size: 8 | ||
| enable-expert-parallel: true | ||
| max-num-seqs: 32 | ||
| speculative-config: '{"method":"dspark","num_speculative_tokens":3,"attention_backend":"FLASHINFER_TS","kv_cache_dtype":"fp8","draft_sample_method":"probabilistic","rejection_sample_method":"block"}' | ||
| kv-transfer-config: '{"kv_connector":"SimpleCPUOffloadConnector","kv_role":"kv_both","kv_connector_extra_config":{"cpu_bytes_to_use":192199557120,"cpu_bytes_to_use_per_rank":192199557120,"lazy_offload":true}}' | ||
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 (optional) Maintainers get new header and provenance comments that AGENTS.md "Code comments (mandatory)" forbids in recipes and master configs. The recipe top block and the master-entry block describe the topology and say where flags were taken from. Fix: delete the comment blocks that sit above the file, override or entry, and keep only per-line technical reasons such as the existing block-size and render-timeout notes. That covers the 5 sites listed. Same pattern at 5 sites (agg-variants.yaml:3-6, agg-variants.yaml:95, agg-variants.yaml:107, agg-variants.yaml:121-124, nvidia-master.yaml:5611-5614).
Why this was flagged
AGENTS.md:64 says "Never add broad, overarching comments at the top of a file or above a recipe, override, or section. Do not describe what the file, topology, or config is." AGENTS.md:65 also bans comments about where code was derived from. agg-variants.yaml:3-6 describes the file ("MiniMax-M3.1-Flash AgentX on two GB300 trays...") and gives provenance ("Serve flags follow the single-node GB300 recipe...; the Dynamo setup follows minimaxm3/vllm/gb200-fp4/agentx"). The comments above override_tp8 (line 95), override_tep8 (line 107) and override_dep8_vllm_simple (lines 121-124) describe each override's topology. nvidia-master.yaml:5611-5614 describes the entry's layouts and says "as in the single-node GB300 recipe". The base branch has none of these comments, so the diff adds every one of them.
Verification: This happens on every merge, because the comments are newly added in this diff. AGENTS.md:64 forbids header comments "above a recipe, override, or section" that describe "what the file, topology, or config is". AGENTS.md:65 forbids comments about "where it was derived from". Nothing breaks at runtime.