{
  "hf_id": "MiniMaxAI/MiniMax-M3.1-Flash",
  "meta": {
    "title": "MiniMax-M3.1-Flash",
    "slug": "minimax-m3.1-flash",
    "provider": "MiniMax",
    "description": "MiniMax M3.1-Flash vision-language MoE (~428B total / 23B active) with MSA sparse attention throughout and a built-in DSpark draft; quantization-aware trained, MXFP8 dense layers and NVFP4 experts. Served TP4 on NVIDIA Blackwell or AMD MI355X, prefill/decode disaggregated as TP4 + TP4 on MI355X or DEP2 + DEP4 on GB200/GB300, and TP8 on NVIDIA Hopper.",
    "date_added": "2026-10-23",
    "date_updated": "2026-11-23",
    "tasks": [
      "text",
      "multimodal"
    ],
    "performance_headline": "MSA sparse attention, 1M context, DSpark speculative decoding built into the checkpoint",
    "related_recipes": [
      "MiniMaxAI/MiniMax-M3"
    ],
    "default_hardware": "b300",
    "hardware": {
      "mi355x": "verified",
      "b300": "verified",
      "gb200": "verified",
      "gb300": "verified",
      "vr200": "supported",
      "ascend_910c": "verified",
      "ascend_950dt_8x": "verified"
    }
  },
  "recommended_command": {
    "hardware": "b300",
    "strategy": "single_node_tp",
    "variant": "default",
    "node_count": 1,
    "deploy_type": "single_node",
    "env": {
      "VLLM_FLOAT32_MATMUL_PRECISION": "high"
    },
    "docker_image": "vllm/vllm-openai:minimax-m31-flash",
    "command": "vllm serve MiniMaxAI/MiniMax-M3.1-Flash \\\n  --block-size 128 \\\n  --disable-hybrid-kv-cache-manager \\\n  --tensor-parallel-size 8 \\\n  --kv-cache-dtype nvfp4 \\\n  --attention-config '{\"indexer_kv_dtype\": \"nvfp4\", \"use_prefill_query_quantization\": true}' \\\n  --compilation-config '{\"cudagraph_mode\": \"FULL_AND_PIECEWISE\"}' \\\n  --tool-call-parser minimax_m3 \\\n  --enable-auto-tool-choice \\\n  --reasoning-parser minimax_m3 \\\n  --speculative-config '{\"method\":\"dspark\",\"num_speculative_tokens\":7,\"attention_backend\":\"FLASHINFER_TS\",\"kv_cache_dtype\":\"fp8\",\"draft_sample_method\":\"probabilistic\",\"rejection_sample_method\":\"block\"}'",
    "argv": [
      "vllm",
      "serve",
      "MiniMaxAI/MiniMax-M3.1-Flash",
      "--block-size",
      "128",
      "--disable-hybrid-kv-cache-manager",
      "--tensor-parallel-size",
      "8",
      "--kv-cache-dtype",
      "nvfp4",
      "--attention-config",
      "{\"indexer_kv_dtype\": \"nvfp4\", \"use_prefill_query_quantization\": true}",
      "--compilation-config",
      "{\"cudagraph_mode\": \"FULL_AND_PIECEWISE\"}",
      "--tool-call-parser",
      "minimax_m3",
      "--enable-auto-tool-choice",
      "--reasoning-parser",
      "minimax_m3",
      "--speculative-config",
      "{\"method\":\"dspark\",\"num_speculative_tokens\":7,\"attention_backend\":\"FLASHINFER_TS\",\"kv_cache_dtype\":\"fp8\",\"draft_sample_method\":\"probabilistic\",\"rejection_sample_method\":\"block\"}"
    ],
    "docker_command": "docker run --gpus all \\\n  --privileged --ipc=host -p 8000:8000 \\\n  -v ~/.cache/huggingface:/root/.cache/huggingface \\\n  -e VLLM_FLOAT32_MATMUL_PRECISION=high \\\n  vllm/vllm-openai:minimax-m31-flash MiniMaxAI/MiniMax-M3.1-Flash \\\n  --block-size 128 \\\n  --disable-hybrid-kv-cache-manager \\\n  --tensor-parallel-size 8 \\\n  --kv-cache-dtype nvfp4 \\\n  --attention-config '{\"indexer_kv_dtype\": \"nvfp4\", \"use_prefill_query_quantization\": true}' \\\n  --compilation-config '{\"cudagraph_mode\": \"FULL_AND_PIECEWISE\"}' \\\n  --tool-call-parser minimax_m3 \\\n  --enable-auto-tool-choice \\\n  --reasoning-parser minimax_m3 \\\n  --speculative-config '{\"method\":\"dspark\",\"num_speculative_tokens\":7,\"attention_backend\":\"FLASHINFER_TS\",\"kv_cache_dtype\":\"fp8\",\"draft_sample_method\":\"probabilistic\",\"rejection_sample_method\":\"block\"}'",
    "docker_argv": [
      "docker",
      "run",
      "--gpus",
      "all",
      "--privileged",
      "--ipc=host",
      "-p",
      "8000:8000",
      "-v",
      "~/.cache/huggingface:/root/.cache/huggingface",
      "-e",
      "VLLM_FLOAT32_MATMUL_PRECISION=high",
      "vllm/vllm-openai:minimax-m31-flash",
      "MiniMaxAI/MiniMax-M3.1-Flash",
      "--block-size",
      "128",
      "--disable-hybrid-kv-cache-manager",
      "--tensor-parallel-size",
      "8",
      "--kv-cache-dtype",
      "nvfp4",
      "--attention-config",
      "{\"indexer_kv_dtype\": \"nvfp4\", \"use_prefill_query_quantization\": true}",
      "--compilation-config",
      "{\"cudagraph_mode\": \"FULL_AND_PIECEWISE\"}",
      "--tool-call-parser",
      "minimax_m3",
      "--enable-auto-tool-choice",
      "--reasoning-parser",
      "minimax_m3",
      "--speculative-config",
      "{\"method\":\"dspark\",\"num_speculative_tokens\":7,\"attention_backend\":\"FLASHINFER_TS\",\"kv_cache_dtype\":\"fp8\",\"draft_sample_method\":\"probabilistic\",\"rejection_sample_method\":\"block\"}"
    ],
    "strategy_spec": {
      "name": "single_node_tp",
      "deploy_type": "single_node",
      "display_name": "Tensor Parallel",
      "short_label": "TP",
      "orientation": "latency",
      "description": "Single-node tensor parallel. Splits the model across all local GPUs. TP size is set to the GPU count at deploy time. The simplest multi-GPU strategy — works for all model architectures.\n",
      "hardware_match": {
        "min_gpus": 1,
        "max_gpus": 8,
        "multi_node": false
      },
      "vllm_args": [],
      "parallel_flag": "--tensor-parallel-size"
    },
    "hardware_profile": {
      "brand": "NVIDIA",
      "generation": "blackwell",
      "compute_arch": "sm103",
      "display_name": "B300",
      "description": "NVIDIA B300 SXM 268 GB HBM3e · 8-GPU HGX B300 node (Blackwell Ultra)",
      "gpu_count": 8,
      "vram_gb": 2144,
      "multi_node": false
    },
    "alternatives": {
      "single_node_tep": "/MiniMaxAI/MiniMax-M3.1-Flash/strategies/single_node_tep.json",
      "single_node_dep": "/MiniMaxAI/MiniMax-M3.1-Flash/strategies/single_node_dep.json",
      "multi_node_tp": "/MiniMaxAI/MiniMax-M3.1-Flash/strategies/multi_node_tp.json",
      "multi_node_dep": "/MiniMaxAI/MiniMax-M3.1-Flash/strategies/multi_node_dep.json",
      "multi_node_tep": "/MiniMaxAI/MiniMax-M3.1-Flash/strategies/multi_node_tep.json",
      "pd_cluster": "/MiniMaxAI/MiniMax-M3.1-Flash/strategies/pd_cluster.json",
      "kv_store_centralized_mooncake": "/MiniMaxAI/MiniMax-M3.1-Flash/strategies/kv_store_centralized_mooncake.json",
      "kv_store_distributed_mooncake": "/MiniMaxAI/MiniMax-M3.1-Flash/strategies/kv_store_distributed_mooncake.json"
    },
    "by_hardware": {
      "b300": "/MiniMaxAI/MiniMax-M3.1-Flash/hw/b300.json",
      "b200": "/MiniMaxAI/MiniMax-M3.1-Flash/hw/b200.json",
      "gb200": "/MiniMaxAI/MiniMax-M3.1-Flash/hw/gb200.json",
      "gb300": "/MiniMaxAI/MiniMax-M3.1-Flash/hw/gb300.json",
      "vr200": "/MiniMaxAI/MiniMax-M3.1-Flash/hw/vr200.json",
      "mi355x": "/MiniMaxAI/MiniMax-M3.1-Flash/hw/mi355x.json"
    }
  },
  "model": {
    "model_id": "MiniMaxAI/MiniMax-M3.1-Flash",
    "min_vllm_version": "0.33.0",
    "nightly_required": true,
    "docker_image": {
      "nvidia": "vllm/vllm-openai:minimax-m31-flash",
      "amd": "vllm/vllm-openai-rocm:minimax-m31-flash"
    },
    "architecture": "moe",
    "parameter_count": "428B",
    "active_parameters": "23B",
    "context_length": 1048576,
    "base_args": [
      "--block-size",
      "128",
      "--disable-hybrid-kv-cache-manager"
    ],
    "base_env": {},
    "install": {
      "docker": {
        "command": "docker pull vllm/vllm-openai:minimax-m31-flash"
      }
    }
  },
  "features": {
    "tool_calling": {
      "description": "MiniMax M3 tool call parser with automatic tool choice",
      "args": [
        "--tool-call-parser",
        "minimax_m3",
        "--enable-auto-tool-choice"
      ]
    },
    "reasoning": {
      "description": "MiniMax M3 reasoning parser",
      "args": [
        "--reasoning-parser",
        "minimax_m3"
      ]
    },
    "spec_decoding": {
      "description": "DSpark speculative decoding with the draft shipped in the checkpoint (`dspark/`), FP8 draft KV cache. Per brand: seven speculative tokens with FLASHINFER_TS draft attention on NVIDIA, three with TRITON_ATTN on AMD.",
      "hardware_overrides": {
        "hopper": {
          "args": []
        },
        "nvidia": {
          "args": [
            "--speculative-config",
            "{\"method\":\"dspark\",\"num_speculative_tokens\":7,\"attention_backend\":\"FLASHINFER_TS\",\"kv_cache_dtype\":\"fp8\",\"draft_sample_method\":\"probabilistic\",\"rejection_sample_method\":\"block\"}"
          ]
        },
        "amd": {
          "args": [
            "--speculative-config",
            "{\"method\":\"dspark\",\"num_speculative_tokens\":3,\"attention_backend\":\"TRITON_ATTN\",\"kv_cache_dtype\":\"fp8\",\"draft_sample_method\":\"probabilistic\"}"
          ]
        },
        "npu": {
          "args": [
            "--speculative-config",
            "{\"method\":\"dspark\",\"num_speculative_tokens\":7,\"enforce_eager\":true,\"kv_cache_dtype\":\"bfloat16\"}"
          ]
        }
      }
    },
    "text_only": {
      "description": "Skip loading the vision encoder for text-only workloads — frees VRAM for KV cache.",
      "args": [
        "--language-model-only"
      ]
    },
    "prefill_dbo_sp": {
      "label": "DBO / SP prefill",
      "description": "AMD MI355X single node: faster long prefill steps. DBO (dual-batch overlap) splits a prefill step into two microbatches and runs one microbatch's all-reduce under the other's compute; decode steps are never split. SP (sequence-parallel prefill) keeps the residual stream sharded by tokens on steps of 4096+ tokens, so each layer's two all-reduces become an all-to-all and a reduce-scatter; it keeps a full o_proj copy per GPU (about 3.1 GB less KV cache).",
      "strategies": [
        "single_node_tp"
      ],
      "default_mode": "sp_dbo",
      "modes": {
        "sp_dbo": {
          "variants": [
            "default"
          ],
          "label": "SP + DBO",
          "description": "SP prefill, and DBO on prefill steps of 16384+ tokens: each microbatch then has 8192+ tokens and stays on the SP path.",
          "args": [
            "--enable-dbo",
            "--dbo-prefill-token-threshold",
            "16384",
            "--dbo-decode-token-threshold",
            "32768"
          ],
          "env": {
            "VLLM_USE_V2_MODEL_RUNNER": "1",
            "VLLM_ROCM_MINIMAX_M3_SP_PREFILL": "1"
          },
          "hardware": {
            "hopper": "unsupported",
            "blackwell": "unsupported",
            "rubin": "unsupported"
          }
        },
        "dbo": {
          "label": "DBO",
          "description": "DBO on prefill steps of 8192+ tokens, no SP.",
          "args": [
            "--enable-dbo",
            "--dbo-prefill-token-threshold",
            "8192",
            "--dbo-decode-token-threshold",
            "32768"
          ],
          "env": {
            "VLLM_USE_V2_MODEL_RUNNER": "1"
          },
          "hardware": {
            "hopper": "unsupported",
            "blackwell": "unsupported",
            "rubin": "unsupported"
          }
        },
        "sp": {
          "variants": [
            "default"
          ],
          "label": "SP",
          "description": "SP prefill on steps of 4096+ tokens, no DBO.",
          "args": [],
          "env": {
            "VLLM_ROCM_MINIMAX_M3_SP_PREFILL": "1"
          },
          "hardware": {
            "hopper": "unsupported",
            "blackwell": "unsupported",
            "rubin": "unsupported"
          }
        }
      }
    },
    "parallel_topk": {
      "label": "Parallel index top-k",
      "description": "AMD MI355X: parallel decode top-16 selection for the NVFP4 indexer. Disabled by default; requires an image containing VLLM_ROCM_PARALLEL_INDEX_TOPK. FP8 indexers, including mono decode, bypass this path. Benchmark/CI jobs must explicitly enable this feature or set the environment variable to 1.",
      "strategies": [
        "single_node_tp"
      ],
      "modes": {
        "nvfp4": {
          "variants": [
            "default",
            "mxfp4"
          ],
          "args": [],
          "env": {
            "VLLM_ROCM_PARALLEL_INDEX_TOPK": "1"
          },
          "hardware": {
            "hopper": "unsupported",
            "blackwell": "unsupported",
            "rubin": "unsupported",
            "mi300x": "unsupported",
            "mi325x": "unsupported"
          }
        },
        "none": {
          "variants": [
            "fp8"
          ],
          "args": []
        }
      }
    },
    "mono_decode": {
      "label": "Mono decode",
      "description": "AMD MI355X single node, MXFP4 (Quark) checkpoint, low concurrency: a decode step of up to 16 tokens (4 requests with DSpark 3) runs each layer as one fused kernel; larger steps and steps with prefill run on the normal path. Uses FP8 KV and indexer K caches (fewer KV tokens than NVFP4) and FULL_DECODE_ONLY graphs, so prefill and mixed steps run eager. With a seven-token DSpark draft, `--monokernel` also runs the draft steps as fused kernels.",
      "strategies": [
        "single_node_tp"
      ],
      "modes": {
        "mono": {
          "variants": [
            "mxfp4"
          ],
          "args": [
            "--kv-cache-dtype",
            "fp8",
            "--attention-config",
            "{\"indexer_kv_dtype\": \"fp8\"}",
            "--compilation-config",
            "{\"cudagraph_mode\": \"FULL_DECODE_ONLY\"}",
            "--monokernel"
          ],
          "env": {
            "VLLM_ROCM_SHUFFLE_KV_CACHE_LAYOUT": "1"
          },
          "hardware": {
            "hopper": "unsupported",
            "blackwell": "unsupported",
            "rubin": "unsupported",
            "mi300x": "unsupported",
            "mi325x": "unsupported",
            "mi350x": "unsupported"
          }
        },
        "none": {
          "variants": [
            "default",
            "fp8"
          ],
          "args": []
        }
      }
    }
  },
  "opt_in_features": [
    "text_only",
    "prefill_dbo_sp",
    "mono_decode",
    "parallel_topk"
  ],
  "variants": {
    "default": {
      "precision": "nvfp4",
      "precision_hardware": {},
      "supported_hardware": [
        "mi355x",
        "gb200",
        "gb300",
        "b200",
        "b300",
        "vr200"
      ],
      "vram_minimum_gb": 285,
      "description": "MXFP8 dense layers + NVFP4 experts with NVFP4 KV and indexer K caches. Blackwell runs the NVFP4 experts natively; MI355X re-quantizes them to MXFP8 for the AITER MoE.",
      "hardware_overrides": {
        "mi355x": {
          "vram_minimum_gb": 533
        },
        "vr200": {
          "docker_image": "vllm/vllm-openai:minimax-m31-flash-cu134"
        },
        "amd": {
          "extra_args": [
            "--quantization-config.moe",
            "mxfp8"
          ]
        }
      }
    },
    "mxfp4": {
      "model_id": "amd/MiniMax-M3.1-Flash-Quark-MXFP4",
      "precision": "mxfp4",
      "label": "MXFP4 (Quark)",
      "supported_hardware": [
        "mi355x"
      ],
      "vram_minimum_gb": 293,
      "description": "AMD Quark export: routed experts stored in OCP MXFP4 and run as W4A4 on the AITER MoE, with NVFP4 KV and indexer K caches. MI355X only.",
      "hardware_overrides": {
        "amd": {
          "extra_args": [
            "--moe-backend",
            "aiter"
          ],
          "extra_env": {
            "VLLM_ROCM_USE_AITER_MOE": "1",
            "VLLM_ROCM_USE_AITER_FUSION_SHARED_EXPERTS": "0"
          }
        }
      },
      "json": "/amd/MiniMax-M3.1-Flash-Quark-MXFP4.json"
    },
    "fp8": {
      "precision": "fp8",
      "supported_hardware": [
        "arch:sm90"
      ],
      "vram_minimum_gb": 533,
      "tp": 8,
      "description": "Hopper: FP8 KV and indexer K caches, NVFP4 experts on the Marlin MoE, 256K context, video inputs off.",
      "extra_args": [
        "--kv-cache-dtype",
        "fp8",
        "--attention-config",
        "{\"indexer_kv_dtype\": \"fp8\"}",
        "--compilation-config",
        "{\"cudagraph_mode\": \"FULL_AND_PIECEWISE\"}"
      ]
    },
    "ascend_w8a8": {
      "model_id": "Eco-Tech/Minimax-M3.1-Flash-w8a8",
      "label": "W8A8 (ASCEND A3)",
      "precision": "int8",
      "supported_features": [
        "tool_calling",
        "reasoning",
        "spec_decoding",
        "text_only"
      ],
      "vram_minimum_gb": 514,
      "description": "ModelSlim W8A8 build of the MiniMax M3.1-Flash checkpoint (~428B total / 23B active), served on one Atlas 800I A3 host with 16 x Ascend 910C (64 GB). Requires --quantization ascend and the ModelScope repository.",
      "supported_hardware": [
        "ascend_910c"
      ],
      "tp": {
        "ascend_910c": 4
      },
      "extra_args": [
        "--host",
        "0.0.0.0",
        "--served-model-name",
        "minimax-m3.1-flash",
        "--quantization",
        "ascend",
        "--max-model-len",
        "133000",
        "--enable-prefix-caching"
      ],
      "extra_env": {
        "HCCL_OP_EXPANSION_MODE": "AIV"
      },
      "install": {
        "pip": false,
        "docker": {
          "command": "docker pull quay.io/ascend/vllm-ascend:minimax-m3.1-flash-a3-openeuler"
        }
      },
      "hardware_overrides": {
        "ascend_910c": {
          "docker_image": "quay.io/ascend/vllm-ascend:minimax-m3.1-flash-a3-openeuler",
          "docker_shm_size": "100g",
          "docker_serve_command": "vllm serve",
          "install": {
            "pip": false
          }
        }
      },
      "json": "/Eco-Tech/Minimax-M3.1-Flash-w8a8.json"
    },
    "ascend_w8a8_mxfp8": {
      "model_id": "Eco-Tech/Minimax-M3.1-Flash-w8a8-mxfp8",
      "label": "W8A8 MXFP8 (ASCEND A5)",
      "precision": "mxfp8",
      "supported_features": [
        "tool_calling",
        "reasoning",
        "spec_decoding",
        "text_only"
      ],
      "vram_minimum_gb": 514,
      "description": "ModelSlim W8A8 MXFP8 build of the MiniMax M3.1-Flash checkpoint (~428B total / 23B active), served on one Atlas 950DT host with 8 x Ascend 950DT NPUs (96 GB). Requires --quantization ascend and the ModelScope repository.",
      "supported_hardware": [
        "ascend_950dt_8x"
      ],
      "tp": {
        "ascend_950dt_8x": 4
      },
      "extra_args": [
        "--host",
        "0.0.0.0",
        "--served-model-name",
        "minimax-m3.1-flash",
        "--quantization",
        "ascend",
        "--max-model-len",
        "133000",
        "--enable-prefix-caching"
      ],
      "extra_env": {
        "HCCL_OP_EXPANSION_MODE": "CCU_SCHED"
      },
      "install": {
        "pip": false,
        "docker": {
          "command": "docker pull quay.io/ascend/vllm-ascend:minimax-m3.1-flash-a5-openeuler"
        }
      },
      "hardware_overrides": {
        "ascend_950dt_8x": {
          "docker_image": "quay.io/ascend/vllm-ascend:minimax-m3.1-flash-a5-openeuler",
          "docker_shm_size": "100g",
          "docker_serve_command": "vllm serve",
          "install": {
            "pip": false
          }
        }
      },
      "json": "/Eco-Tech/Minimax-M3.1-Flash-w8a8-mxfp8.json"
    }
  },
  "hardware_overrides": {
    "blackwell": {
      "extra_args": [
        "--kv-cache-dtype",
        "nvfp4",
        "--attention-config",
        "{\"indexer_kv_dtype\": \"nvfp4\", \"use_prefill_query_quantization\": true}",
        "--compilation-config",
        "{\"cudagraph_mode\": \"FULL_AND_PIECEWISE\"}"
      ],
      "extra_env": {
        "VLLM_FLOAT32_MATMUL_PRECISION": "high"
      }
    },
    "rubin": {
      "extra_args": [
        "--kv-cache-dtype",
        "nvfp4",
        "--attention-config",
        "{\"indexer_kv_dtype\": \"nvfp4\", \"use_prefill_query_quantization\": true}",
        "--compilation-config",
        "{\"cudagraph_mode\": \"FULL_AND_PIECEWISE\"}"
      ],
      "extra_env": {
        "VLLM_FLOAT32_MATMUL_PRECISION": "high"
      }
    },
    "amd": {
      "extra_args": [
        "--kv-cache-dtype",
        "nvfp4",
        "--attention-config",
        "{\"indexer_kv_dtype\": \"nvfp4\", \"indexer_decode_cp\": true}"
      ],
      "extra_env": {
        "VLLM_ROCM_USE_AITER": "1",
        "VLLM_ROCM_USE_AITER_FUSION_SHARED_EXPERTS": "1"
      }
    },
    "npu": {
      "extra_args": [
        "--trust-remote-code",
        "--distributed-executor-backend",
        "mp"
      ],
      "extra_env": {
        "VLLM_USE_MODELSCOPE": "True",
        "VLLM_USE_V2_MODEL_RUNNER": "1",
        "PYTORCH_NPU_ALLOC_CONF": "expandable_segments:True"
      }
    }
  },
  "presets": {
    "gb300_agentx_agg": {
      "label": "AgentX TP4 (Dynamo)",
      "hardware": "gb300",
      "strategy": "single_node_tp",
      "variants": [
        "default"
      ],
      "workload": "Agentic (InferenceX AgentX)",
      "description": "Aggregated TP4 vLLM engines, one per 4-GPU GB300 tray, behind Dynamo sidecars and the Dynamo KV router with session affinity. Seven-token DSpark draft on FLASH_ATTN, prefill CUDA graphs up to 8192 tokens, KV in HBM.",
      "source": {
        "label": "InferenceX #4998",
        "href": "https://github.com/SemiAnalysisAI/InferenceX/pull/4998",
        "key": "minimaxm31flash-fp4-gb300-dynamo-vllm-agentic-dspark-agg",
        "revision": "0c1f2da7c2aba13ea5c7f1c8d896eac17e4e5263"
      },
      "image": {
        "vllm": "vllm/vllm-openai:cu134-arm64-1107-mdev@sha256:1b4a9b46c217ae3665b5e793341892d555b9bd5ca81230eed26e1b94a42b5801",
        "dynamo": "1.6.0.dev20261023",
        "pip": [
          "ai-dynamo-runtime==1.6.0.dev20261023",
          "ai-dynamo==1.6.0.dev20261023"
        ]
      },
      "tp": 4,
      "select": {
        "kv_offload": "off",
        "features": {
          "text_only": true
        }
      },
      "args": [
        "--enable-prefix-caching",
        "--max-model-len",
        "1048576",
        "--max-num-batched-tokens",
        "32768",
        "--gpu-memory-utilization",
        "0.9",
        "--stream-interval",
        "20",
        "--prefill-schedule-interval",
        "24"
      ],
      "env": {
        "PYTHONHASHSEED": "0",
        "VLLM_ENGINE_READY_TIMEOUT_S": "7200",
        "VLLM_HTTP_TIMEOUT_KEEP_ALIVE": "600",
        "VLLM_CHAT_TEMPLATE_RENDER_TIMEOUT": "600",
        "VLLM_RS_TOKEN_IDS_AS_BYTES": "1"
      },
      "json_args": {
        "--compilation-config": {
          "cudagraph_capture_sizes": [
            8,
            16,
            24,
            32,
            40,
            48,
            56,
            64,
            72,
            80,
            88,
            96,
            104,
            112,
            120,
            128,
            136,
            144,
            152,
            160,
            168,
            176,
            184,
            192,
            200,
            208,
            216,
            224,
            232,
            240,
            248,
            256,
            320,
            384,
            448,
            512,
            576,
            640,
            704,
            768,
            832,
            896,
            960,
            1024,
            1536,
            2048,
            3072,
            4096,
            6144,
            8192
          ]
        },
        "--speculative-config": {
          "attention_backend": "FLASH_ATTN"
        }
      },
      "points": {
        "latency": {
          "label": "Lower latency",
          "description": "Up to about 16 sessions per tray.",
          "default": true,
          "args": [
            "--max-num-seqs",
            "32"
          ]
        },
        "throughput": {
          "label": "Throughput",
          "description": "About 32 sessions per tray.",
          "args": [
            "--max-num-seqs",
            "64"
          ]
        }
      },
      "runbook": "The GB300 aggregated AgentX lane in [SemiAnalysis InferenceX](https://inferencex.semianalysis.com/) (`minimaxm31flash-fp4-gb300-dynamo-vllm-agentic-dspark-agg`, [SemiAnalysisAI/InferenceX#4998](https://github.com/SemiAnalysisAI/InferenceX/pull/4998), run [42955087162](https://github.com/SemiAnalysisAI/InferenceX/actions/runs/42955087162)) serves the default checkpoint text-only, with one TP4 vLLM engine per 4-GPU tray behind a Dynamo sidecar and the Dynamo frontend. Add trays to scale out: the KV router spreads conversations across them.\n\n| Sessions per tray | `--max-num-seqs` | tok/s/GPU | tok/s/user | TTFT p90 | E2E latency p90 |\n|---:|---:|---:|---:|---:|---:|\n| 1 | 2 | 7.4k | 580 | 0.3 s | 9.3 s |\n| 4 | 8 | 9.6k | 576 | 0.3 s | 7.0 s |\n| 8 | 16 | 16.4k | 512 | 0.3 s | 6.4 s |\n| 16 | 32 | 29.2k | 426 | 0.4 s | 6.2 s |\n| 32 | 64 | 61.8k | 301 | 0.6 s | 9.4 s |\n\n**Image and versions.** `vllm/vllm-openai:cu134-arm64-1107-mdev` (arm64, CUDA 13) with Dynamo `1.6.0.dev20261023` installed on top: `pip install --extra-index-url https://pypi.nvidia.com ai-dynamo-runtime==1.6.0.dev20261023 ai-dynamo==1.6.0.dev20261023`.\n\n**Tuning rules.**\n\n- `--max-num-seqs` is about twice the sessions one worker serves: 32 up to 16 sessions, 64 at 32. The KV cache stays in HBM throughout.\n- `--stream-interval 20` sends output in 20-token chunks; AgentX requires 20 to 60, and vLLM's default of 1 sends every token.\n- `--prefill-schedule-interval 24` admits prefill on one engine step in 24 and lets the other 23 decode alone, which keeps the per-user decode rate up while long agentic prompts arrive.\n- The CUDA graph sizes go up to 8192 tokens, so prefill chunks of up to 8192 tokens also replay graphs. `--max-num-batched-tokens 32768` still allows larger mixed steps, which run piecewise.\n\n**Running under Dynamo.** Start etcd once (`etcd --listen-client-urls http://0.0.0.0:2379 --advertise-client-urls http://<infra-host>:2379`); the request plane is TCP and the event plane ZMQ, so no NATS is needed. On each tray, export `ETCD_ENDPOINTS=http://<infra-host>:2379 DYN_REQUEST_PLANE=tcp DYN_EVENT_PLANE=zmq` together with the generated environment and `DYN_TCP_CONNECT_TIMEOUT=120`, `DYN_BACKEND_ADMISSION_ENGINE_REQUEST_LIMIT=1024`, `DYN_BACKEND_ADMISSION_ENGINE_REQUEST_WAITING_LIMIT=1024` and `DYN_BACKEND_ADMISSION_REQUEST_QUEUE_LIMIT=2048`. Run the generated flags with `vllm-rs serve MiniMaxAI/MiniMax-M3.1-Flash --served-model-name MiniMaxAI/MiniMax-M3.1-Flash --trust-remote-code --grpc-port 19000` and `--kv-events-config '{\"publisher\":\"zmq\",\"topic\":\"kv-events\",\"enable_kv_cache_events\":true,\"endpoint\":\"tcp://*:5200\"}'`, leaving out the engine's `--tool-call-parser`, `--enable-auto-tool-choice` and `--reasoning-parser`. Then connect a sidecar, which parses tool calls and reasoning:\n\n```bash\nDYN_VLLM_KV_EVENT_PORT=5200 python3 -m dynamo.vllm.sidecar --grpc-endpoint 127.0.0.1:19000 \\\n  --grpc-startup-deadline-secs 3600 --dyn-tool-call-parser minimax_m3 --dyn-reasoning-parser minimax_m3\n```\n\nStart the frontend:\n\n```bash\nexport ETCD_ENDPOINTS=http://<infra-host>:2379 DYN_REQUEST_PLANE=tcp DYN_EVENT_PLANE=zmq\nexport DYN_ROUTER_ACTIVE_REQUEST_EXPIRY_SECS=3600 DYN_TCP_CONNECT_TIMEOUT=120 DYN_TOKENIZER=fastokens\npython3 -m dynamo.frontend --http-port 8000 --router-mode kv --router-session-affinity-ttl-secs 14400\n```\n\n`DYN_TOKENIZER=fastokens` switches the frontend to the fastokens tokenizer backend that ships with Dynamo. With 100K+ token agentic prompts, the default tokenizer spends about 150 ms per request on the frontend (up to 600 ms at p90), all of it added to TTFT; fastokens takes about 1 ms.\n\nThe KV router uses the workers' KV events to send each request to the worker that holds its prefix. Session affinity keeps a conversation on that worker for up to four hours; send a stable conversation ID in the `X-Dynamo-Session-ID` request header.\n\nThe InferenceX throughput points replaced block verification with synthetic rejection at the committed golden DSpark acceptance length (4.04), so every point is measured at the same acceptance rate. Production serving keeps the default rejection sampler (`rejection_sample_method: block`), as in the command above.\n",
      "json": "/MiniMaxAI/MiniMax-M3.1-Flash/presets/gb300_agentx_agg.json"
    },
    "gb300_agentx_pd": {
      "label": "AgentX PD (Dynamo)",
      "hardware": "gb300",
      "strategy": "pd_cluster",
      "variants": [
        "default"
      ],
      "workload": "Agentic (InferenceX AgentX)",
      "description": "DEP4 prefill workers, one per GB300 tray, feed one DEP16 decode worker across four trays over NIXL. A Mooncake KV store holds prefill KV for returning sessions. The Dynamo KV router keeps each session on one decode rank. Seven-token DSpark draft on FLASHINFER_TS, DeepGEMM MegaMoE on both roles, EPLB on decode.",
      "source": {
        "label": "InferenceX #4998",
        "href": "https://github.com/SemiAnalysisAI/InferenceX/pull/4998",
        "key": "minimaxm31flash-fp4-gb300-dynamo-vllm-agentic-dspark-disagg",
        "revision": "0c1f2da7c2aba13ea5c7f1c8d896eac17e4e5263"
      },
      "image": {
        "vllm": "vllm/vllm-openai:cu134-arm64-1107-mdev@sha256:1b4a9b46c217ae3665b5e793341892d555b9bd5ca81230eed26e1b94a42b5801",
        "dynamo": "1.6.0.dev20261023",
        "pip": [
          "ai-dynamo-runtime==1.6.0.dev20261023",
          "ai-dynamo==1.6.0.dev20261023"
        ]
      },
      "select": {
        "pd_router": "dynamo",
        "features": {
          "text_only": true,
          "tool_calling": false
        }
      },
      "args": [
        "--enable-expert-parallel",
        "--moe-backend",
        "deep_gemm_mega_moe",
        "--numa-bind",
        "--enable-prefix-caching",
        "--max-model-len",
        "1048576",
        "--stream-interval",
        "20",
        "--load-format",
        "fastsafetensors"
      ],
      "env": {
        "PYTHONHASHSEED": "0",
        "VLLM_USE_V2_MODEL_RUNNER": "1",
        "VLLM_ENGINE_READY_TIMEOUT_S": "7200",
        "VLLM_HTTP_TIMEOUT_KEEP_ALIVE": "600",
        "VLLM_RANDOMIZE_DP_DUMMY_INPUTS": "1",
        "VLLM_RS_TOKEN_IDS_AS_BYTES": "1",
        "NCCL_NET_GDR_C2C": "1",
        "NCCL_IB_HCA": "mlx5_0,mlx5_1,mlx5_2,mlx5_3",
        "NVSHMEM_REMOTE_TRANSPORT": "none",
        "NVSHMEM_ENABLE_NIC_PE_MAPPING": "1",
        "NVSHMEM_HCA_PE_MAPPING": "mlx5_0:1:1,mlx5_1:1:1,mlx5_2:1:1,mlx5_3:1:1",
        "UCX_TLS": "rc,cuda_copy",
        "UCX_NET_DEVICES": "mlx5_0:1,mlx5_1:1,mlx5_2:1,mlx5_3:1",
        "UCX_CUDA_IPC_ENABLE_MNNVL": "n",
        "UCX_MEMTYPE_CACHE": "n",
        "UCX_MEMTYPE_REG_WHOLE": "n",
        "UCX_RNDV_PIPELINE_ERROR_HANDLING": "y",
        "UCX_MODULE_DIR": "/usr/local/lib/python3.12/dist-packages/nixl_cu13.libs/ucx",
        "NIXL_UCX_SGL_ENABLE": "1",
        "WITH_NVIDIA_PEERMEM": "0",
        "MC_SLICE_SIZE": "1048576",
        "MC_MAX_MR_SIZE": "4294967296",
        "MC_ENABLE_DEST_DEVICE_AFFINITY": "1",
        "DYN_TCP_CONNECT_TIMEOUT": "120",
        "DYN_BACKEND_ADMISSION_ENGINE_REQUEST_LIMIT": "1024",
        "DYN_BACKEND_ADMISSION_ENGINE_REQUEST_WAITING_LIMIT": "1024",
        "DYN_BACKEND_ADMISSION_REQUEST_QUEUE_LIMIT": "2048"
      },
      "roles": {
        "prefill": {
          "nodes": 1,
          "parallelism": "dep",
          "args": [
            "--data-parallel-size",
            "4",
            "--data-parallel-size-local",
            "4",
            "--max-num-seqs",
            "64",
            "--max-num-batched-tokens",
            "16384",
            "--long-prefill-token-threshold",
            "4096",
            "--gpu-memory-utilization",
            "0.9",
            "--compilation-config",
            "{\"cudagraph_mode\":\"FULL_AND_PIECEWISE\"}",
            "--max-cudagraph-capture-size",
            "2048",
            "--kv-transfer-config",
            "{\"kv_connector\":\"MultiConnector\",\"kv_role\":\"kv_both\",\"kv_load_failure_policy\":\"recompute\",\"kv_connector_extra_config\":{\"connectors\":[{\"kv_connector\":\"NixlConnector\",\"kv_role\":\"kv_both\",\"kv_load_failure_policy\":\"fail\",\"kv_buffer_device\":\"cuda\",\"kv_connector_extra_config\":{\"backends\":[\"UCX\"],\"enforce_handshake_compat\":false,\"kv_lease_duration\":120}},{\"kv_connector\":\"MooncakeStoreConnector\",\"kv_role\":\"kv_both\",\"kv_load_failure_policy\":\"recompute\",\"kv_connector_extra_config\":{\"load_async\":true,\"lookup_async\":true,\"enable_offload\":false,\"hbm_pool\":{\"segment_size\":\"auto\"}}}]}}"
          ],
          "env": {
            "VLLM_MOONCAKE_LOAD_RECV_THREADS": "8"
          }
        },
        "decode": {
          "nodes": 4,
          "parallelism": "dep",
          "remove_args": [
            "--no-enable-prefix-caching"
          ],
          "args": [
            "--max-num-batched-tokens",
            "8192",
            "--watermark",
            "0.05",
            "--gpu-memory-utilization",
            "0.92",
            "--max-num-inflight-kv-loads",
            "64",
            "--max-async-kv-loads-per-step",
            "4",
            "--compilation-config",
            "{\"cudagraph_mode\":\"FULL_DECODE_ONLY\"}",
            "--enable-eplb",
            "--eplb-config",
            "{\"communicator\":\"symm_mem\",\"num_redundant_experts\":16,\"window_size\":1000,\"step_interval\":3000,\"use_async\":true,\"log_balancedness\":true,\"log_balancedness_interval\":3000}",
            "--numa-bind-nodes",
            "0",
            "0",
            "1",
            "1",
            "--kv-transfer-config",
            "{\"kv_connector\":\"MultiConnector\",\"kv_role\":\"kv_both\",\"kv_load_failure_policy\":\"recompute\",\"kv_connector_extra_config\":{\"connectors\":[{\"kv_connector\":\"NixlConnector\",\"kv_role\":\"kv_both\",\"kv_load_failure_policy\":\"fail\",\"kv_buffer_device\":\"cuda\",\"kv_connector_extra_config\":{\"backends\":[\"UCX\"],\"enforce_handshake_compat\":false,\"kv_lease_duration\":120}},{\"kv_connector\":\"MooncakeStoreConnector\",\"kv_role\":\"kv_consumer\",\"kv_load_failure_policy\":\"recompute\",\"kv_connector_extra_config\":{\"load_async\":true,\"lookup_async\":true,\"enable_offload\":false,\"save_decode_cache\":false,\"enable_lookup\":false}}]}}"
          ],
          "env": {
            "VLLM_MOONCAKE_LOAD_RECV_THREADS": "4",
            "VLLM_ALLREDUCE_USE_SYMM_MEM": "0",
            "NCCL_CUMEM_ENABLE": "1",
            "NCCL_MNNVL_ENABLE": "1",
            "NCCL_NVLS_ENABLE": "1"
          }
        }
      },
      "points": {
        "throughput": {
          "label": "Throughput",
          "description": "Six prefill workers and about 900 sessions.",
          "default": true,
          "roles": {
            "decode": {
              "args": [
                "--max-num-seqs",
                "20",
                "--max-cudagraph-capture-size",
                "160"
              ]
            }
          }
        },
        "latency": {
          "label": "Lower latency",
          "description": "Three prefill workers and about 500 sessions.",
          "roles": {
            "decode": {
              "args": [
                "--max-num-seqs",
                "10",
                "--max-cudagraph-capture-size",
                "80"
              ]
            }
          }
        }
      },
      "runbook": "The GB300 disaggregated AgentX lane in [SemiAnalysis InferenceX](https://inferencex.semianalysis.com/) (`minimaxm31flash-fp4-gb300-dynamo-vllm-agentic-dspark-disagg`, [SemiAnalysisAI/InferenceX#4998](https://github.com/SemiAnalysisAI/InferenceX/pull/4998), run [42955087162](https://github.com/SemiAnalysisAI/InferenceX/actions/runs/42955087162)) serves the default checkpoint text-only with Dynamo and vLLM. One to six prefill workers, each DEP4 on one 4-GPU tray, feed one decode worker that is DEP16 across four trays. KV moves from prefill to decode over NIXL (UCX over RDMA), and the prefill workers share a Mooncake KV store, so a returning conversation's prefix is loaded from the store instead of recomputed. Both roles use expert parallelism with DeepGEMM MegaMoE, attention data parallelism, the V2 model runner and the seven-token DSpark draft on `FLASHINFER_TS`.\n\n| Prefill workers (DEP4) | Decode | GPUs | Sessions | Decode `--max-num-seqs` | tok/s/GPU | tok/s/user | TTFT p90 | E2E latency p90 |\n|---:|---|---:|---:|---:|---:|---:|---:|---:|\n| 1 | DEP16 | 20 | 200 | 5 | 66.7k | 351 | 4.2 s | 11.2 s |\n| 3 | DEP16 | 28 | 500 | 10 | 111.8k | 283 | 4.1 s | 12.9 s |\n| 4 | DEP16 | 32 | 640 | 16 | 118.5k | 257 | 6.1 s | 16.0 s |\n| 4 | DEP16 | 32 | 680 | 16 | 116.1k | 255 | 10.3 s | 19.6 s |\n| 5 | DEP16 | 36 | 850 | 22 | 118.3k | 233 | 13.4 s | 23.7 s |\n| 6 | DEP16 | 40 | 900 | 20 | 126.8k | 215 | 6.2 s | 18.1 s |\n| 6 | DEP16 | 40 | 950 | 22 | 125.2k | 212 | 9.7 s | 21.5 s |\n| 6 | DEP16 | 40 | 1000 | 24 | 116.2k | 215 | 17.5 s | 28.3 s |\n\nThe preset renders one prefill worker and the decode worker. Run more prefill workers with the same command, one per tray.\n\n**Image and versions.** `vllm/vllm-openai:cu134-arm64-1107-mdev` (arm64, CUDA 13) ships Mooncake `0.3.13.post1` with the GPU-memory store segment (`hbm_pool`) and the decode KV-load limits (`--max-num-inflight-kv-loads`, `--max-async-kv-loads-per-step`); neither is in a vLLM release yet. Install Dynamo `1.6.0.dev20261023` on top on every worker and on the frontend host: `pip install --extra-index-url https://pypi.nvidia.com ai-dynamo-runtime==1.6.0.dev20261023 ai-dynamo==1.6.0.dev20261023`.\n\n### Tuning rules\n\n- **Prefill pool.** The prefill pool sets TTFT, so scale prefill workers with load: about 150-170 sessions per DEP4 prefill tray kept TTFT p90 near 4-6 s (3 workers at 500, 4 at 640, 6 at 900-950). At 680 sessions on 4 workers and 850 on 5, TTFT p90 rose past 10 s; add a prefill worker before that.\n- **Decode.** `--max-num-seqs` per DP rank is about a third of the sessions per rank in the lane (10 at 500 sessions, 20 at 900, 24 at 1000); raise it with the load. The decode graph cap is `--max-num-seqs` x (1 + 7 draft tokens). `--watermark 0.05` keeps 5% of the decode KV cache free, so extra requests wait in the queue instead of preempting running ones. Keep decode `--max-num-batched-tokens` at 8192: a preempted request recomputes its context in chunks of that size. EPLB keeps 16 redundant experts across the 16 ranks.\n- **KV loads on decode.** `--max-num-inflight-kv-loads 64` caps the NIXL loads a decode rank has in flight, and `--max-async-kv-loads-per-step 4` caps how many requests with finished KV loads decode admits per step, so a burst of arrivals does not stall running requests.\n- **Prefill batching.** `--long-prefill-token-threshold 4096` chunks long prompts into 4096-token pieces. Short prompts then share each step with them instead of waiting behind a 100K-token context, which lowers the TTFT tail. `--max-num-batched-tokens 16384` bounds a prefill step. Prefill captures CUDA graphs up to 2048 tokens.\n- **Mooncake store.** The prefill ranks write their KV into the store and read returning prefixes from it. With `\"hbm_pool\": {\"segment_size\": \"auto\"}`, each prefill rank also registers the GPU memory it does not need for its own KV cache as a store segment, so hot prefixes are copied GPU to GPU. The decode connector is a consumer with `save_decode_cache: false` and `enable_lookup: false`: decode only receives KV over NIXL.\n- **Transport.** Cross-tray NIXL needs `UCX_TLS=rc,cuda_copy` with `UCX_NET_DEVICES` set to the tray's RDMA ports. Without them, UCX can fall back to TCP and transfers stall. `UCX_MODULE_DIR` points at the UCX bundled with the NIXL wheel. `kv_lease_duration: 120` holds a prefill's blocks for up to 120 s until decode reads them (the default is 30 s).\n- **NUMA.** `--numa-bind` pins each rank to its GPU's NUMA node. Decode passes the tray's map, `--numa-bind-nodes 0 0 1 1`, explicitly.\n- `--moe-backend deep_gemm_mega_moe` is the same as the lane's `--kernel-config '{\"moe_backend\":\"deep_gemm_mega_moe\"}'`. `--prefill-schedule-interval 1`, also set by the lane, is vLLM's default.\n\n### Services\n\nStart etcd and the Mooncake master once, on a host that runs no engine workers, together with the frontend. The request plane is TCP and the event plane ZMQ, so no NATS is needed.\n\n```bash\netcd --listen-client-urls http://0.0.0.0:2379 --advertise-client-urls http://<infra-host>:2379\nmooncake_master --rpc_port=50051 \\\n  --default_kv_lease_ttl=60000 --eviction_high_watermark_ratio=0.95 --eviction_ratio=0.10\n```\n\nEvery worker reads the store configuration from the JSON file that `MOONCAKE_CONFIG_PATH` points to (export it with the rest of the environment):\n\n```json\n{\"master_server_address\": \"<infra-host>:50051\", \"metadata_server\": \"P2PHANDSHAKE\",\n \"global_segment_size\": \"180GB\", \"local_buffer_size\": \"4GB\", \"protocol\": \"rdma\",\n \"device_name\": \"mlx5_0,mlx5_1,mlx5_2,mlx5_3\", \"enable_offload\": false}\n```\n\n### Workers\n\nExport `ETCD_ENDPOINTS=http://<infra-host>:2379 DYN_REQUEST_PLANE=tcp DYN_EVENT_PLANE=zmq` and the generated environment on every tray. Run each generated engine command as `vllm-rs serve MiniMaxAI/MiniMax-M3.1-Flash --served-model-name MiniMaxAI/MiniMax-M3.1-Flash --trust-remote-code --grpc-port 19000`, without the generated `--reasoning-parser` and `--dyn-reasoning-parser`, and connect one sidecar per engine, which parses tool calls and reasoning:\n\n```bash\npython3 -m dynamo.vllm.sidecar --grpc-endpoint 127.0.0.1:19000 --grpc-startup-deadline-secs 3600 \\\n  --dyn-tool-call-parser minimax_m3 --dyn-reasoning-parser minimax_m3 \\\n  --disaggregation-mode prefill --component prefill    # decode: --disaggregation-mode decode\n```\n\nThe engines publish no KV events. Multi-node DEP decode runs one process per tray with `--data-parallel-start-rank` set to 0, 4, 8 and 12, and a shared `--data-parallel-address` and `--data-parallel-rpc-port`.\n\n### Frontend\n\n```bash\nexport ETCD_ENDPOINTS=http://<infra-host>:2379 DYN_REQUEST_PLANE=tcp DYN_EVENT_PLANE=zmq\nexport DYN_ROUTER_SESSION_AFFINITY_MODE=soft DYN_ROUTER_TEMPERATURE=0 DYN_ROUTER_QUEUE_THRESHOLD=None\nexport DYN_ROUTER_TTL_SECS=3600 DYN_ROUTER_ACTIVE_REQUEST_EXPIRY_SECS=3600 DYN_TCP_CONNECT_TIMEOUT=120\nexport DYN_TCP_CHANNEL_BUFFER=128 DYN_TCP_REQUEST_TIMEOUT=60 DYN_TCP_POOL_SIZE=8192\nexport DYN_TOKENIZER=fastokens DYN_TOKENIZER_CACHE=1 DYN_TOKENIZER_CACHE_BYTES=8000000000\npython3 -m dynamo.frontend --http-port 8000 --router-mode kv --router-session-affinity-ttl-secs 14400 \\\n  --no-router-kv-events --active-decode-blocks-threshold None \\\n  --active-prefill-tokens-threshold None --active-prefill-tokens-threshold-frac None\n```\n\nWithout KV events the router predicts each worker's prefix cache from its own routing decisions. Soft session affinity keeps each conversation on one decode rank for up to four hours; send a stable conversation ID in the `X-Dynamo-Session-ID` header. The lane sent each prefill to the least-loaded prefill worker, ignoring session affinity (InferenceX's `dynamo-two-tier-cost-fn` worker selection with `cache_threshold: 1.0`); the Mooncake store catches the prefixes that then miss.\n\n`DYN_TOKENIZER=fastokens` switches the frontend to the fastokens tokenizer backend that ships with Dynamo. With 100K+ token agentic prompts, the default tokenizer spends about 150 ms per request on the frontend (up to 600 ms at p90), all of it added to TTFT; fastokens takes about 1 ms.\n\nThe InferenceX throughput points replaced block verification with synthetic rejection at the committed golden DSpark acceptance length (4.04), so every point is measured at the same acceptance rate. Production serving keeps the default rejection sampler (`rejection_sample_method: block`), as in the command above.\n",
      "json": "/MiniMaxAI/MiniMax-M3.1-Flash/presets/gb300_agentx_pd.json"
    },
    "gb300_agentx_tp4": {
      "label": "AgentX TP4",
      "hardware": "gb300",
      "strategy": "single_node_tp",
      "variants": [
        "default"
      ],
      "workload": "Agentic (InferenceX AgentX)",
      "description": "One TP4 engine on a 4-GPU GB300 tray with the seven-token DSpark draft on FLASHINFER_TS; GPU-resident KV, with per-concurrency scheduling and CUDA graph settings.",
      "source": {
        "label": "InferenceX #4662",
        "href": "https://github.com/SemiAnalysisAI/InferenceX/pull/4662",
        "key": "minimaxm31flash-fp4-gb300-vllm-agentic-dspark",
        "revision": "0733706344df53aa9a48b22af0e2e7070d68a298"
      },
      "image": "vllm/vllm-openai:minimax-m31-flash-arm64-cu134@sha256:5d76347628973fb80519a919a2f2740b6645b62cba3fe2bd87b25f111bd0e948",
      "tp": 4,
      "select": {
        "features": {
          "text_only": true
        }
      },
      "args": [
        "--enable-prefix-caching",
        "--max-model-len",
        "1048576",
        "--max-num-batched-tokens",
        "8192"
      ],
      "env": {
        "VLLM_ENGINE_READY_TIMEOUT_S": "7200",
        "VLLM_CHAT_TEMPLATE_RENDER_TIMEOUT": "600"
      },
      "points": {
        "c1": {
          "label": "1",
          "concurrency": 1,
          "args": [
            "--max-num-seqs",
            "2"
          ]
        },
        "c4": {
          "label": "4",
          "concurrency": 4,
          "args": [
            "--max-num-seqs",
            "8"
          ]
        },
        "c8": {
          "label": "8",
          "concurrency": 8,
          "args": [
            "--max-num-seqs",
            "16"
          ],
          "json_args": {
            "--compilation-config": {
              "cudagraph_capture_sizes": [
                1,
                2,
                4,
                8,
                16,
                24,
                32,
                40,
                48,
                56,
                64,
                72,
                80,
                88,
                96,
                104,
                112,
                120,
                128,
                136,
                144,
                152,
                160,
                168,
                176,
                184,
                192,
                200,
                208,
                216,
                224,
                232,
                240,
                248,
                256,
                264,
                272,
                280,
                288,
                296,
                304,
                312,
                320,
                328,
                336,
                344,
                352,
                360,
                368,
                376,
                384,
                392,
                400,
                408,
                416,
                424,
                432,
                440,
                448,
                456,
                464,
                472,
                480,
                488,
                496,
                504,
                512,
                640,
                768,
                896,
                1024,
                1152,
                1280,
                1408,
                1536,
                1664,
                1792,
                1920,
                2048,
                2304,
                2560,
                2816,
                3072,
                3328,
                3584,
                3840,
                4096,
                4608,
                5120,
                5632,
                6144,
                6656,
                7168,
                7680,
                8192
              ]
            }
          }
        },
        "c16": {
          "label": "16",
          "concurrency": 16,
          "args": [
            "--max-num-seqs",
            "64"
          ],
          "json_args": {
            "--compilation-config": {
              "cudagraph_capture_sizes": [
                1,
                2,
                4,
                8,
                16,
                24,
                32,
                40,
                48,
                56,
                64,
                72,
                80,
                88,
                96,
                104,
                112,
                120,
                128,
                136,
                144,
                152,
                160,
                168,
                176,
                184,
                192,
                200,
                208,
                216,
                224,
                232,
                240,
                248,
                256,
                264,
                272,
                280,
                288,
                296,
                304,
                312,
                320,
                328,
                336,
                344,
                352,
                360,
                368,
                376,
                384,
                392,
                400,
                408,
                416,
                424,
                432,
                440,
                448,
                456,
                464,
                472,
                480,
                488,
                496,
                504,
                512,
                640,
                768,
                896,
                1024,
                1152,
                1280,
                1408,
                1536,
                1664,
                1792,
                1920,
                2048,
                2304,
                2560,
                2816,
                3072,
                3328,
                3584,
                3840,
                4096,
                4608,
                5120,
                5632,
                6144,
                6656,
                7168,
                7680,
                8192
              ]
            }
          }
        },
        "c24": {
          "label": "24",
          "concurrency": 24,
          "args": [
            "--max-num-seqs",
            "64",
            "--max-num-batched-tokens",
            "32768",
            "--long-prefill-token-threshold",
            "8192",
            "--prefill-schedule-interval",
            "16",
            "--cudagraph-capture-sizes",
            "1",
            "2",
            "4",
            "8",
            "16",
            "24",
            "32",
            "40",
            "48",
            "56",
            "64",
            "72",
            "80",
            "88",
            "96",
            "104",
            "112",
            "120",
            "128",
            "136",
            "144",
            "152",
            "160",
            "168",
            "176",
            "184",
            "192",
            "200",
            "208",
            "216",
            "224",
            "232",
            "240",
            "248",
            "256",
            "272",
            "288",
            "304",
            "320",
            "336",
            "352",
            "368",
            "384",
            "400",
            "416",
            "432",
            "448",
            "464",
            "480",
            "496",
            "512",
            "528",
            "544",
            "560",
            "576",
            "592",
            "608",
            "624",
            "640",
            "656",
            "672",
            "688",
            "704",
            "720",
            "736",
            "752",
            "768",
            "784",
            "800",
            "816",
            "832",
            "848",
            "864",
            "880",
            "896",
            "912",
            "928",
            "944",
            "960",
            "976",
            "992",
            "1008",
            "1024",
            "1280",
            "1536",
            "1792",
            "2048",
            "2304",
            "2560",
            "2816",
            "3072",
            "3328",
            "3584",
            "3840",
            "4096",
            "4608",
            "5120",
            "5632",
            "6144",
            "6656",
            "7168",
            "7680",
            "8192"
          ],
          "env": {
            "VLLM_HTTP_TIMEOUT_KEEP_ALIVE": "600"
          }
        },
        "c32": {
          "label": "32",
          "concurrency": 32,
          "args": [
            "--max-num-seqs",
            "64"
          ]
        },
        "c40": {
          "label": "40",
          "concurrency": 40,
          "args": [
            "--max-num-seqs",
            "64",
            "--long-prefill-token-threshold",
            "8192",
            "--gpu-memory-utilization",
            "0.95",
            "--watermark",
            "0.05",
            "--cudagraph-capture-sizes",
            "1",
            "2",
            "4",
            "8",
            "16",
            "24",
            "32",
            "40",
            "48",
            "56",
            "64",
            "72",
            "80",
            "88",
            "96",
            "104",
            "112",
            "120",
            "128",
            "136",
            "144",
            "152",
            "160",
            "168",
            "176",
            "184",
            "192",
            "200",
            "208",
            "216",
            "224",
            "232",
            "240",
            "248",
            "256",
            "272",
            "288",
            "304",
            "320",
            "336",
            "352",
            "368",
            "384",
            "400",
            "416",
            "432",
            "448",
            "464",
            "480",
            "496",
            "512",
            "528",
            "544",
            "560",
            "576",
            "592",
            "608",
            "624",
            "640",
            "656",
            "672",
            "688",
            "704",
            "720",
            "736",
            "752",
            "768",
            "784",
            "800",
            "816",
            "832",
            "848",
            "864",
            "880",
            "896",
            "912",
            "928",
            "944",
            "960",
            "976",
            "992",
            "1008",
            "1024",
            "1280",
            "1536",
            "1792",
            "2048",
            "2304",
            "2560",
            "2816",
            "3072",
            "3328",
            "3584",
            "3840",
            "4096",
            "4608",
            "5120",
            "5632",
            "6144",
            "6656",
            "7168",
            "7680",
            "8192"
          ],
          "env": {
            "VLLM_HTTP_TIMEOUT_KEEP_ALIVE": "600"
          }
        }
      },
      "runbook": "The GB300 TP4 points of the AgentX lane in [SemiAnalysis InferenceX](https://inferencex.semianalysis.com/) (`minimaxm31flash-fp4-gb300-vllm-agentic-dspark`, [SemiAnalysisAI/InferenceX#4662](https://github.com/SemiAnalysisAI/InferenceX/pull/4662)) serve the default checkpoint text-only on one TP4 engine per 4-GPU tray, with `--max-num-seqs` set per concurrency.\n\n- **Concurrency 1, 4 and 32** use the default CUDA graph capture sizes.\n- **Concurrency 8 and 16** capture CUDA graphs for every size up to 8192 tokens.\n- **Concurrency 24** raises `--max-num-batched-tokens` to 32768 and schedules prefill every 16 steps; **concurrency 40** keeps 8192 and raises `--gpu-memory-utilization` to 0.95. Both cap prefill chunks at 8192 tokens and capture graphs to 8192.\n",
      "json": "/MiniMaxAI/MiniMax-M3.1-Flash/presets/gb300_agentx_tp4.json"
    },
    "gb300_agentx_dep4": {
      "label": "AgentX DEP4",
      "hardware": "gb300",
      "strategy": "single_node_dep",
      "variants": [
        "default"
      ],
      "workload": "Agentic (InferenceX AgentX)",
      "description": "One data-parallel, expert-parallel engine across the four GPUs of a GB300 tray behind vllm-router with session affinity. Three-token DSpark draft on FLASHINFER_TS.",
      "source": {
        "label": "InferenceX #4662",
        "href": "https://github.com/SemiAnalysisAI/InferenceX/pull/4662",
        "key": "minimaxm31flash-fp4-gb300-vllm-agentic-dspark",
        "revision": "0733706344df53aa9a48b22af0e2e7070d68a298"
      },
      "image": "vllm/vllm-openai:minimax-m31-flash-arm64-cu134@sha256:5d76347628973fb80519a919a2f2740b6645b62cba3fe2bd87b25f111bd0e948",
      "select": {
        "features": {
          "text_only": true
        }
      },
      "args": [
        "--enable-prefix-caching",
        "--max-model-len",
        "1048576",
        "--max-num-batched-tokens",
        "8192"
      ],
      "env": {
        "VLLM_ENGINE_READY_TIMEOUT_S": "7200",
        "VLLM_CHAT_TEMPLATE_RENDER_TIMEOUT": "600"
      },
      "json_args": {
        "--speculative-config": {
          "num_speculative_tokens": 3
        }
      },
      "points": {
        "c64": {
          "label": "64",
          "concurrency": 64,
          "args": [
            "--max-num-seqs",
            "32"
          ]
        }
      },
      "runbook": "The DEP4 point of the GB300 AgentX lane in [SemiAnalysis InferenceX](https://inferencex.semianalysis.com/) (`minimaxm31flash-fp4-gb300-vllm-agentic-dspark`, [SemiAnalysisAI/InferenceX#4662](https://github.com/SemiAnalysisAI/InferenceX/pull/4662)) runs one engine with `--data-parallel-size 4` and `--enable-expert-parallel`; `--max-num-seqs` is the per-rank limit.\n\nThe router uses the `consistent_hash` policy so a conversation stays on the rank that holds its prefix. The lane also runs it with `--request-timeout-secs 14400` and `--disable-retries`.\n",
      "json": "/MiniMaxAI/MiniMax-M3.1-Flash/presets/gb300_agentx_dep4.json"
    },
    "gb300_agentx_tp2": {
      "label": "AgentX TP2 + KV offload",
      "hardware": "gb300",
      "strategy": "single_node_tp",
      "variants": [
        "default"
      ],
      "workload": "Agentic (InferenceX AgentX)",
      "description": "One TP2 engine on two of the tray's four GB300 GPUs with the seven-token DSpark draft on FLASHINFER_TS and host-DRAM KV offload (482 GB per engine).",
      "source": {
        "label": "InferenceX #4662",
        "href": "https://github.com/SemiAnalysisAI/InferenceX/pull/4662",
        "key": "minimaxm31flash-fp4-gb300-vllm-agentic-dspark",
        "revision": "0733706344df53aa9a48b22af0e2e7070d68a298"
      },
      "image": "vllm/vllm-openai:minimax-m31-flash-arm64-cu134@sha256:5d76347628973fb80519a919a2f2740b6645b62cba3fe2bd87b25f111bd0e948",
      "tp": 2,
      "select": {
        "features": {
          "text_only": true
        },
        "kv_offload": "simple"
      },
      "args": [
        "--enable-prefix-caching",
        "--max-model-len",
        "1048576",
        "--max-num-batched-tokens",
        "32768"
      ],
      "env": {
        "VLLM_ENGINE_READY_TIMEOUT_S": "7200",
        "VLLM_CHAT_TEMPLATE_RENDER_TIMEOUT": "600",
        "VLLM_HTTP_TIMEOUT_KEEP_ALIVE": "600",
        "VLLM_USE_SIMPLE_KV_OFFLOAD": "1"
      },
      "json_args": {
        "--compilation-config": {
          "cudagraph_capture_sizes": [
            1,
            2,
            4,
            8,
            16,
            24,
            32,
            40,
            48,
            56,
            64,
            72,
            80,
            88,
            96,
            104,
            112,
            120,
            128,
            136,
            144,
            152,
            160,
            168,
            176,
            184,
            192,
            200,
            208,
            216,
            224,
            232,
            240,
            248,
            256,
            264,
            272,
            280,
            288,
            296,
            304,
            312,
            320,
            328,
            336,
            344,
            352,
            360,
            368,
            376,
            384,
            392,
            400,
            408,
            416,
            424,
            432,
            440,
            448,
            456,
            464,
            472,
            480,
            488,
            496,
            504,
            512,
            640,
            768,
            896,
            1024,
            1152,
            1280,
            1408,
            1536,
            1664,
            1792,
            1920,
            2048,
            2304,
            2560,
            2816,
            3072,
            3328,
            3584,
            3840,
            4096,
            4608,
            5120,
            5632,
            6144,
            6656,
            7168,
            7680,
            8192
          ]
        },
        "--kv-transfer-config": {
          "kv_connector_extra_config": {
            "cpu_bytes_to_use_per_rank": null,
            "cpu_bytes_to_use": 482000000000,
            "lazy_offload": true
          }
        }
      },
      "points": {
        "c28": {
          "label": "28",
          "concurrency": 28,
          "args": [
            "--max-num-seqs",
            "42"
          ]
        },
        "c32": {
          "label": "32",
          "concurrency": 32,
          "args": [
            "--max-num-seqs",
            "48"
          ]
        },
        "c36": {
          "label": "36",
          "concurrency": 36,
          "args": [
            "--max-num-seqs",
            "54"
          ]
        }
      },
      "runbook": "The TP2 points of the GB300 AgentX lane in [SemiAnalysis InferenceX](https://inferencex.semianalysis.com/) (`minimaxm31flash-fp4-gb300-vllm-agentic-dspark`, [SemiAnalysisAI/InferenceX#4662](https://github.com/SemiAnalysisAI/InferenceX/pull/4662)) add a host-DRAM KV tier through `SimpleCPUOffloadConnector` with lazy offload. `cpu_bytes_to_use` (482 GB) is the budget for the whole engine, about half of the tray's host DRAM, so the engine needs that much free host RAM. `--max-num-seqs` is 1.5 times the concurrency.\n",
      "json": "/MiniMaxAI/MiniMax-M3.1-Flash/presets/gb300_agentx_tp2.json"
    },
    "b300_agentx_tp4": {
      "label": "AgentX TP4",
      "hardware": "b300",
      "strategy": "single_node_tp",
      "variants": [
        "default"
      ],
      "workload": "Agentic (InferenceX AgentX)",
      "description": "One TP4 engine on four of the node's eight B300 GPUs with the seven-token DSpark draft on FLASH_ATTN; GPU-resident KV up to concurrency 32, host-DRAM KV offload (about 1.5 TB per engine) at 24 and 40-56.",
      "source": {
        "label": "InferenceX #4467",
        "href": "https://github.com/SemiAnalysisAI/InferenceX/pull/4467",
        "key": "minimaxm31flash-fp4-b300-vllm-agentic-dspark",
        "revision": "615ee422fa655b90a0551e7fe80230f543f57a10"
      },
      "image": "vllm/vllm-openai:minimax-m31-flash@sha256:86f582dae25ea92802353727164ae4eb03b37b18baf9119b805ffaec2a7ef07c",
      "tp": 4,
      "select": {
        "features": {
          "text_only": true
        }
      },
      "args": [
        "--enable-prefix-caching",
        "--gpu-memory-utilization",
        "0.92",
        "--max-num-batched-tokens",
        "32768",
        "--stream-interval",
        "20"
      ],
      "env": {
        "VLLM_HTTP_TIMEOUT_KEEP_ALIVE": "600",
        "VLLM_CHAT_TEMPLATE_RENDER_TIMEOUT": "600"
      },
      "json_args": {
        "--compilation-config": {
          "cudagraph_capture_sizes": [
            8,
            16,
            24,
            32,
            40,
            48,
            56,
            64,
            72,
            80,
            88,
            96,
            104,
            112,
            120,
            128,
            136,
            144,
            152,
            160,
            168,
            176,
            184,
            192,
            200,
            208,
            216,
            224,
            232,
            240,
            248,
            256,
            320,
            384,
            448,
            512,
            576,
            640,
            704,
            768,
            832,
            896,
            960,
            1024,
            1536,
            2048,
            3072,
            4096,
            6144,
            8192
          ]
        },
        "--speculative-config": {
          "attention_backend": "FLASH_ATTN"
        }
      },
      "points": {
        "c1": {
          "label": "1",
          "concurrency": 1,
          "args": [
            "--max-num-seqs",
            "2"
          ],
          "select": {
            "kv_offload": "off"
          }
        },
        "c4": {
          "label": "4",
          "concurrency": 4,
          "args": [
            "--max-num-seqs",
            "8"
          ],
          "select": {
            "kv_offload": "off"
          }
        },
        "c8": {
          "label": "8",
          "concurrency": 8,
          "args": [
            "--max-num-seqs",
            "16"
          ],
          "select": {
            "kv_offload": "off"
          }
        },
        "c16": {
          "label": "16",
          "concurrency": 16,
          "args": [
            "--max-num-seqs",
            "32"
          ],
          "select": {
            "kv_offload": "off"
          }
        },
        "c24": {
          "label": "24 (KV offload)",
          "concurrency": 24,
          "args": [
            "--max-num-seqs",
            "48"
          ],
          "select": {
            "kv_offload": "simple"
          },
          "json_args": {
            "--kv-transfer-config": {
              "kv_connector_extra_config": {
                "cpu_bytes_to_use_per_rank": null,
                "cpu_bytes_to_use": 1499000000000,
                "lazy_offload": true
              }
            }
          }
        },
        "c32": {
          "label": "32",
          "concurrency": 32,
          "args": [
            "--max-num-seqs",
            "64"
          ],
          "select": {
            "kv_offload": "off"
          }
        },
        "c40": {
          "label": "40 (KV offload)",
          "concurrency": 40,
          "args": [
            "--max-num-seqs",
            "64"
          ],
          "select": {
            "kv_offload": "simple"
          },
          "json_args": {
            "--kv-transfer-config": {
              "kv_connector_extra_config": {
                "cpu_bytes_to_use_per_rank": null,
                "cpu_bytes_to_use": 1499000000000,
                "lazy_offload": true
              }
            }
          }
        },
        "c48": {
          "label": "48 (KV offload)",
          "concurrency": 48,
          "args": [
            "--max-num-seqs",
            "64"
          ],
          "select": {
            "kv_offload": "simple"
          },
          "json_args": {
            "--kv-transfer-config": {
              "kv_connector_extra_config": {
                "cpu_bytes_to_use_per_rank": null,
                "cpu_bytes_to_use": 1499000000000,
                "lazy_offload": true
              }
            }
          }
        },
        "c56": {
          "label": "56 (KV offload)",
          "concurrency": 56,
          "args": [
            "--max-num-seqs",
            "96"
          ],
          "select": {
            "kv_offload": "simple"
          },
          "json_args": {
            "--kv-transfer-config": {
              "kv_connector_extra_config": {
                "cpu_bytes_to_use_per_rank": null,
                "cpu_bytes_to_use": 1499000000000,
                "lazy_offload": true
              }
            }
          }
        }
      },
      "runbook": "The B300 AgentX lane in [SemiAnalysis InferenceX](https://inferencex.semianalysis.com/) (`minimaxm31flash-fp4-b300-vllm-agentic-dspark`, [SemiAnalysisAI/InferenceX#4467](https://github.com/SemiAnalysisAI/InferenceX/pull/4467), run [40340506758](https://github.com/SemiAnalysisAI/InferenceX/actions/runs/40340506758)) serves the default checkpoint (MXFP8 dense layers, NVFP4 experts, NVFP4 KV and indexer K caches) as one aggregated text-only vLLM engine on a single 8-GPU B300 node. Its TP4 points run the seven-token DSpark draft with `FLASH_ATTN` draft attention; the recipe's NVIDIA default, `FLASHINFER_TS`, is what the [AgentX TP2](#preset-b300_agentx_tp2) points run.\n\n- **GPU-resident points** (concurrency 1-16 and 32) keep the whole KV cache in HBM, with `--max-num-seqs` at twice the concurrency (64 at 32).\n- **KV offload points** (24 and 40-56) add a host-DRAM KV tier through `SimpleCPUOffloadConnector` with lazy offload. `cpu_bytes_to_use` (1,499 GB) is the budget for the whole engine: each of the four ranks pins 349 GiB of host memory, so the engine needs about 1.5 TB of free host RAM. Pinning takes a couple of minutes at startup.\n- The CUDA graph capture sizes go up to 8192 tokens, so prefill chunks of up to 8192 tokens also replay graphs.\n\nThe InferenceX throughput points replaced block verification with synthetic rejection at the committed golden DSpark acceptance length (4.04) so every point is measured at the same acceptance rate. The command above keeps block verification.\n",
      "json": "/MiniMaxAI/MiniMax-M3.1-Flash/presets/b300_agentx_tp4.json"
    },
    "b300_agentx_tp2": {
      "label": "AgentX TP2 + KV offload",
      "hardware": "b300",
      "strategy": "single_node_tp",
      "variants": [
        "default"
      ],
      "workload": "Agentic (InferenceX AgentX)",
      "description": "One TP2 engine on two of the node's eight B300 GPUs with the seven-token DSpark draft on FLASHINFER_TS and host-DRAM KV offload (about 750 GB per engine).",
      "source": {
        "label": "InferenceX #4467",
        "href": "https://github.com/SemiAnalysisAI/InferenceX/pull/4467",
        "key": "minimaxm31flash-fp4-b300-vllm-agentic-dspark",
        "revision": "615ee422fa655b90a0551e7fe80230f543f57a10"
      },
      "image": "vllm/vllm-openai:minimax-m31-flash@sha256:86f582dae25ea92802353727164ae4eb03b37b18baf9119b805ffaec2a7ef07c",
      "tp": 2,
      "select": {
        "features": {
          "text_only": true
        },
        "kv_offload": "simple"
      },
      "args": [
        "--enable-prefix-caching",
        "--gpu-memory-utilization",
        "0.9",
        "--max-num-batched-tokens",
        "32768",
        "--stream-interval",
        "20"
      ],
      "env": {
        "VLLM_HTTP_TIMEOUT_KEEP_ALIVE": "600",
        "VLLM_CHAT_TEMPLATE_RENDER_TIMEOUT": "600"
      },
      "json_args": {
        "--compilation-config": {
          "cudagraph_capture_sizes": [
            8,
            16,
            24,
            32,
            40,
            48,
            56,
            64,
            72,
            80,
            88,
            96,
            104,
            112,
            120,
            128,
            136,
            144,
            152,
            160,
            168,
            176,
            184,
            192,
            200,
            208,
            216,
            224,
            232,
            240,
            248,
            256,
            320,
            384,
            448,
            512,
            576,
            640,
            704,
            768,
            832,
            896,
            960,
            1024,
            1536,
            2048,
            3072,
            4096,
            6144,
            8192
          ]
        },
        "--kv-transfer-config": {
          "kv_connector_extra_config": {
            "cpu_bytes_to_use_per_rank": null,
            "cpu_bytes_to_use": 749000000000,
            "lazy_offload": true
          }
        }
      },
      "points": {
        "c24": {
          "label": "24",
          "concurrency": 24,
          "args": [
            "--max-num-seqs",
            "48"
          ]
        },
        "c32": {
          "label": "32",
          "concurrency": 32,
          "args": [
            "--max-num-seqs",
            "48"
          ]
        },
        "c40": {
          "label": "40",
          "concurrency": 40,
          "args": [
            "--max-num-seqs",
            "60"
          ]
        },
        "c48": {
          "label": "48",
          "concurrency": 48,
          "args": [
            "--max-num-seqs",
            "72"
          ]
        }
      },
      "runbook": "The TP2 points of the B300 AgentX lane in [SemiAnalysis InferenceX](https://inferencex.semianalysis.com/) (`minimaxm31flash-fp4-b300-vllm-agentic-dspark`, [SemiAnalysisAI/InferenceX#4467](https://github.com/SemiAnalysisAI/InferenceX/pull/4467), run [40340506758](https://github.com/SemiAnalysisAI/InferenceX/actions/runs/40340506758)) serve the default checkpoint as one aggregated text-only vLLM engine on two GPUs of an 8-GPU B300 node, with the recipe's seven-token DSpark draft on `FLASHINFER_TS` (the [AgentX TP4](#preset-b300_agentx_tp4) points use `FLASH_ATTN`).\n\nEvery point adds a host-DRAM KV tier through `SimpleCPUOffloadConnector` with lazy offload. `cpu_bytes_to_use` (749 GB) is the budget for the whole engine: each of the two ranks pins about 349 GiB of host memory. The lane ran one engine per node; several TP2 engines on one node each need their own share of host RAM.\n\nThe InferenceX throughput points replaced block verification with synthetic rejection at the committed golden DSpark acceptance length (4.04) so every point is measured at the same acceptance rate. The command above keeps block verification.\n",
      "json": "/MiniMaxAI/MiniMax-M3.1-Flash/presets/b300_agentx_tp2.json"
    },
    "gb200_agentx_agg": {
      "label": "AgentX TP4 (Dynamo)",
      "hardware": "gb200",
      "strategy": "single_node_tp",
      "variants": [
        "default"
      ],
      "workload": "Agentic (InferenceX AgentX)",
      "description": "Aggregated TP4 vLLM workers, one per 4-GPU GB200 tray, behind the Dynamo KV router with session affinity. Seven-token DSpark draft on FLASH_ATTN and prefill CUDA graphs up to 8192 tokens. KV stays in HBM, or spills to host DRAM through SimpleCPUOffloadConnector.",
      "source": {
        "label": "InferenceX #4632",
        "href": "https://github.com/SemiAnalysisAI/InferenceX/pull/4632",
        "key": "minimaxm31flash-fp4-gb200-dynamo-vllm-agentic-dspark-agg",
        "revision": "936213146b79b55e8a11ffbc1d6010145995c6a6"
      },
      "image": {
        "vllm": "vllm/vllm-openai:minimax-m31-flash-arm64-cu134",
        "dynamo": "1.6.0.dev20261023",
        "pip": [
          "ai-dynamo-runtime==1.6.0.dev20261023",
          "ai-dynamo==1.6.0.dev20261023"
        ]
      },
      "tp": 4,
      "select": {
        "features": {
          "text_only": true
        }
      },
      "args": [
        "--enable-prefix-caching",
        "--max-model-len",
        "1048576",
        "--max-num-batched-tokens",
        "32768"
      ],
      "env": {
        "PYTHONHASHSEED": "0",
        "VLLM_ENGINE_READY_TIMEOUT_S": "7200"
      },
      "json_args": {
        "--compilation-config": {
          "cudagraph_capture_sizes": [
            8,
            16,
            24,
            32,
            40,
            48,
            56,
            64,
            72,
            80,
            88,
            96,
            104,
            112,
            120,
            128,
            136,
            144,
            152,
            160,
            168,
            176,
            184,
            192,
            200,
            208,
            216,
            224,
            232,
            240,
            248,
            256,
            320,
            384,
            448,
            512,
            576,
            640,
            704,
            768,
            832,
            896,
            960,
            1024,
            1536,
            2048,
            3072,
            4096,
            6144,
            8192
          ]
        },
        "--speculative-config": {
          "attention_backend": "FLASH_ATTN"
        }
      },
      "points": {
        "gpu_kv": {
          "label": "GPU-resident KV",
          "description": "KV cache in HBM only, for up to about 16 sessions per worker.",
          "default": true,
          "args": [
            "--max-num-seqs",
            "32",
            "--gpu-memory-utilization",
            "0.88"
          ],
          "select": {
            "kv_offload": "off"
          }
        },
        "dram_kv": {
          "label": "Host-DRAM KV offload",
          "description": "Adds a host-DRAM KV tier (360 GB per worker) for about 32-40 sessions per worker.",
          "args": [
            "--max-num-seqs",
            "64",
            "--gpu-memory-utilization",
            "0.82",
            "--kv-cache-metrics"
          ],
          "select": {
            "kv_offload": "simple"
          },
          "json_args": {
            "--kv-transfer-config": {
              "kv_connector_extra_config": {
                "cpu_bytes_to_use_per_rank": null,
                "cpu_bytes_to_use": 360000000000,
                "lazy_offload": true
              }
            }
          }
        }
      },
      "runbook": "The GB200 aggregated AgentX lane in [SemiAnalysis InferenceX](https://inferencex.semianalysis.com/) (`minimaxm31flash-fp4-gb200-dynamo-vllm-agentic-dspark-agg`, [SemiAnalysisAI/InferenceX#4632](https://github.com/SemiAnalysisAI/InferenceX/pull/4632)) serves the default checkpoint text-only, with one TP4 `dynamo.vllm` worker per 4-GPU tray behind the Dynamo frontend. Add trays to scale out: the KV router spreads conversations across them. At 16 sessions per tray (GPU-resident KV) the lane measured 29.3k tok/s/GPU at 402 tok/s/user.\n\n**Image and versions.** The lane used an arm64 CUDA 13 build of the `vllm/vllm-openai:minimax-m31-flash` image (tag `minimax-m31-flash-arm64-cu134`); any build of that image family for GB200 will do. Dynamo `1.6.0.dev20261023` was installed on top: `pip install --extra-index-url https://pypi.nvidia.com ai-dynamo-runtime==1.6.0.dev20261023 ai-dynamo==1.6.0.dev20261023`.\n\n**Tuning rules.**\n\n- `--max-num-seqs` is about twice the sessions one worker serves: 32 up to 16 sessions, 64 at 32-40.\n- **GPU-resident KV** (`--gpu-memory-utilization 0.88`) is enough up to about 16 sessions per tray. Beyond that, multi-turn contexts outgrow HBM and evicted prefixes are recomputed.\n- **Host-DRAM KV offload** adds `SimpleCPUOffloadConnector` with lazy offload. `cpu_bytes_to_use` is the budget for the whole worker, split across its four ranks: 360 GB pins 90 GB per rank. Size it from the host DRAM that is free after the engine processes are up. Lower `--gpu-memory-utilization` to 0.82 to leave room for the transfer buffers. `--kv-cache-metrics` exports KV residency metrics, which help with that sizing; it can be left out.\n- The CUDA graph sizes go up to 8192 tokens, so prefill chunks of up to 8192 tokens also replay graphs. `--max-num-batched-tokens 32768` still allows larger mixed steps, which run piecewise.\n\n**Running under Dynamo.** Start etcd and NATS (32 MB max payload) once:\n\n```bash\netcd --listen-client-urls http://0.0.0.0:2379 --advertise-client-urls http://<infra-host>:2379\nprintf 'max_payload: 33554432\\n' > nats.conf && nats-server -c nats.conf\n```\n\nOn each tray, export `ETCD_ENDPOINTS=http://<infra-host>:2379` and `NATS_SERVER=nats://<infra-host>:4222` together with the generated environment and `DYN_TCP_CONNECT_TIMEOUT=120`, `DYN_BACKEND_ADMISSION_ENGINE_REQUEST_LIMIT=1024`, `DYN_BACKEND_ADMISSION_ENGINE_REQUEST_WAITING_LIMIT=1024` and `DYN_BACKEND_ADMISSION_REQUEST_QUEUE_LIMIT=2048`. Then run the generated flags with `python3 -m dynamo.vllm --model MiniMaxAI/MiniMax-M3.1-Flash --served-model-name MiniMaxAI/MiniMax-M3.1-Flash --trust-remote-code` in place of `vllm serve MiniMaxAI/MiniMax-M3.1-Flash`. `dynamo.vllm` rejects vLLM's API-server flags, so leave out `--tool-call-parser minimax_m3 --enable-auto-tool-choice` and add:\n\n```bash\n--dyn-tool-call-parser minimax_m3 --dyn-reasoning-parser minimax_m3 \\\n  --kv-events-config '{\"publisher\":\"zmq\",\"topic\":\"kv-events\",\"enable_kv_cache_events\":true,\"endpoint\":\"tcp://*:5200\"}'\n```\n\nStart the frontend:\n\n```bash\nexport ETCD_ENDPOINTS=http://<infra-host>:2379 NATS_SERVER=nats://<infra-host>:4222\nexport DYN_ROUTER_ACTIVE_REQUEST_EXPIRY_SECS=3600 DYN_TCP_CONNECT_TIMEOUT=120 DYN_TOKENIZER=fastokens\npython3 -m dynamo.frontend --http-port 8000 --router-mode kv --router-session-affinity-ttl-secs 14400\n```\n\n`DYN_TOKENIZER=fastokens` switches the frontend to the fastokens tokenizer backend that ships with Dynamo. With 100K+ token agentic prompts, the default tokenizer spends about 150 ms per request on the frontend (up to 600 ms at p90), all of it added to TTFT; fastokens takes about 1 ms.\n\nThe KV router uses the workers' KV events to send each request to the worker that holds its prefix. Session affinity keeps a conversation on that worker for up to four hours; send a stable conversation ID in the `X-Dynamo-Session-ID` request header.\n\nThe InferenceX throughput points replaced block verification with synthetic rejection at the committed golden DSpark acceptance length (4.04), so every point is measured at the same acceptance rate. Production serving keeps the default rejection sampler (`rejection_sample_method: block`), as in the command above.\n",
      "json": "/MiniMaxAI/MiniMax-M3.1-Flash/presets/gb200_agentx_agg.json"
    },
    "gb200_agentx_pd": {
      "label": "AgentX PD (Dynamo)",
      "hardware": "gb200",
      "strategy": "pd_cluster",
      "variants": [
        "default"
      ],
      "workload": "Agentic (InferenceX AgentX)",
      "description": "DEP4 prefill workers, one per GB200 tray, feed one DEP8 decode worker (throughput) or DEP16 (lower latency) over NIXL. Both roles share a Mooncake KV store in host DRAM. The Dynamo KV router routes with session affinity. Seven-token DSpark draft on FLASHINFER_TS, DeepGEMM MegaMoE on both roles.",
      "source": {
        "label": "InferenceX #4632",
        "href": "https://github.com/SemiAnalysisAI/InferenceX/pull/4632",
        "key": "minimaxm31flash-fp4-gb200-dynamo-vllm-agentic-dspark-disagg",
        "revision": "936213146b79b55e8a11ffbc1d6010145995c6a6"
      },
      "image": {
        "vllm": "vllm/vllm-openai:minimax-m31-flash-arm64-cu134",
        "dynamo": "1.6.0.dev20261023",
        "pip": [
          "ai-dynamo-runtime==1.6.0.dev20261023",
          "ai-dynamo==1.6.0.dev20261023",
          "mooncake-transfer-engine-cuda13==0.3.13.post1"
        ]
      },
      "select": {
        "pd_router": "dynamo",
        "features": {
          "text_only": true,
          "tool_calling": false
        }
      },
      "args": [
        "--enable-expert-parallel",
        "--moe-backend",
        "deep_gemm_mega_moe",
        "--numa-bind",
        "--enable-prefix-caching",
        "--max-model-len",
        "1048576",
        "--load-format",
        "fastsafetensors"
      ],
      "env": {
        "PYTHONHASHSEED": "0",
        "VLLM_USE_V2_MODEL_RUNNER": "1",
        "VLLM_ENGINE_READY_TIMEOUT_S": "7200",
        "VLLM_HTTP_TIMEOUT_KEEP_ALIVE": "600",
        "VLLM_RANDOMIZE_DP_DUMMY_INPUTS": "1",
        "NCCL_NET_GDR_C2C": "1",
        "NCCL_IB_HCA": "mlx5_0,mlx5_1,mlx5_2,mlx5_3",
        "NVSHMEM_REMOTE_TRANSPORT": "none",
        "NVSHMEM_ENABLE_NIC_PE_MAPPING": "1",
        "NVSHMEM_HCA_PE_MAPPING": "mlx5_0:1:1,mlx5_1:1:1,mlx5_2:1:1,mlx5_3:1:1",
        "UCX_TLS": "rc,cuda_copy",
        "UCX_NET_DEVICES": "mlx5_0:1,mlx5_1:1,mlx5_2:1,mlx5_3:1",
        "UCX_CUDA_IPC_ENABLE_MNNVL": "n",
        "UCX_MEMTYPE_CACHE": "n",
        "UCX_MEMTYPE_REG_WHOLE": "n",
        "UCX_RNDV_PIPELINE_ERROR_HANDLING": "y",
        "NIXL_UCX_SGL_ENABLE": "1",
        "WITH_NVIDIA_PEERMEM": "0",
        "MC_SLICE_SIZE": "1048576",
        "MC_MAX_MR_SIZE": "4294967296",
        "MC_ENABLE_DEST_DEVICE_AFFINITY": "1",
        "DYN_TCP_CONNECT_TIMEOUT": "120",
        "DYN_BACKEND_ADMISSION_ENGINE_REQUEST_LIMIT": "1024",
        "DYN_BACKEND_ADMISSION_ENGINE_REQUEST_WAITING_LIMIT": "1024",
        "DYN_BACKEND_ADMISSION_REQUEST_QUEUE_LIMIT": "2048"
      },
      "roles": {
        "prefill": {
          "nodes": 1,
          "parallelism": "dep",
          "args": [
            "--data-parallel-size",
            "4",
            "--data-parallel-size-local",
            "4",
            "--max-num-seqs",
            "64",
            "--max-num-batched-tokens",
            "16384",
            "--long-prefill-token-threshold",
            "4096",
            "--gpu-memory-utilization",
            "0.92",
            "--compilation-config",
            "{\"cudagraph_mode\":\"FULL_AND_PIECEWISE\"}",
            "--max-cudagraph-capture-size",
            "2048",
            "--kv-events-config",
            "{\"publisher\":\"zmq\",\"topic\":\"kv-events\",\"enable_kv_cache_events\":true,\"endpoint\":\"tcp://*:5200\"}",
            "--kv-transfer-config",
            "{\"kv_connector\":\"MultiConnector\",\"kv_role\":\"kv_both\",\"kv_load_failure_policy\":\"recompute\",\"kv_connector_extra_config\":{\"connectors\":[{\"kv_connector\":\"NixlConnector\",\"kv_role\":\"kv_both\",\"kv_load_failure_policy\":\"fail\",\"kv_buffer_device\":\"cuda\",\"kv_connector_extra_config\":{\"backends\":[\"UCX\"],\"enforce_handshake_compat\":false,\"kv_lease_duration\":120}},{\"kv_connector\":\"MooncakeStoreConnector\",\"kv_role\":\"kv_both\",\"kv_load_failure_policy\":\"recompute\",\"kv_connector_extra_config\":{\"load_async\":true,\"lookup_async\":true,\"enable_offload\":false}}]}}"
          ],
          "env": {
            "VLLM_MOONCAKE_LOAD_RECV_THREADS": "8"
          }
        },
        "decode": {
          "nodes": 2,
          "parallelism": "dep",
          "remove_args": [
            "--no-enable-prefix-caching"
          ],
          "args": [
            "--max-num-seqs",
            "64",
            "--max-num-batched-tokens",
            "8192",
            "--watermark",
            "0.05",
            "--gpu-memory-utilization",
            "0.88",
            "--compilation-config",
            "{\"cudagraph_mode\":\"FULL_DECODE_ONLY\"}",
            "--max-cudagraph-capture-size",
            "512",
            "--numa-bind-nodes",
            "0",
            "0",
            "1",
            "1",
            "--kv-transfer-config",
            "{\"kv_connector\":\"MultiConnector\",\"kv_role\":\"kv_both\",\"kv_load_failure_policy\":\"recompute\",\"kv_connector_extra_config\":{\"connectors\":[{\"kv_connector\":\"NixlConnector\",\"kv_role\":\"kv_both\",\"kv_load_failure_policy\":\"fail\",\"kv_buffer_device\":\"cuda\",\"kv_connector_extra_config\":{\"backends\":[\"UCX\"],\"enforce_handshake_compat\":false,\"kv_lease_duration\":120}},{\"kv_connector\":\"MooncakeStoreConnector\",\"kv_role\":\"kv_consumer\",\"kv_load_failure_policy\":\"recompute\",\"kv_connector_extra_config\":{\"load_async\":true,\"lookup_async\":true,\"enable_offload\":false,\"save_decode_cache\":false,\"enable_lookup\":false}}]}}"
          ],
          "env": {
            "VLLM_MOONCAKE_LOAD_RECV_THREADS": "4",
            "VLLM_ALLREDUCE_USE_SYMM_MEM": "0",
            "NCCL_CUMEM_ENABLE": "1",
            "NCCL_MNNVL_ENABLE": "1",
            "NCCL_NVLS_ENABLE": "1"
          }
        }
      },
      "points": {
        "dep8": {
          "label": "DEP8 decode (throughput)",
          "description": "One DEP8 decode worker across two trays.",
          "default": true
        },
        "dep16": {
          "label": "DEP16 decode (lower latency)",
          "description": "One DEP16 decode worker across four trays.",
          "roles": {
            "decode": {
              "nodes": 4
            }
          }
        }
      },
      "runbook": "The GB200 disaggregated AgentX lane in [SemiAnalysis InferenceX](https://inferencex.semianalysis.com/) (`minimaxm31flash-fp4-gb200-dynamo-vllm-agentic-dspark-disagg`, [SemiAnalysisAI/InferenceX#4632](https://github.com/SemiAnalysisAI/InferenceX/pull/4632)) serves the default checkpoint text-only with Dynamo and vLLM. Several prefill workers, each DEP4 on one 4-GPU tray, feed one decode worker that is DEP8 across two trays or DEP16 across four. KV moves from prefill to decode over NIXL (UCX over RDMA), and every rank contributes host DRAM to a shared Mooncake KV store, so a returning conversation's prefix is loaded from the store instead of recomputed. Both roles use expert parallelism with DeepGEMM MegaMoE, attention data parallelism, the V2 model runner and the seven-token DSpark draft on `FLASHINFER_TS`.\n\n| Prefill workers (DEP4) | Decode | GPUs | Sessions | tok/s/GPU | tok/s/user | TTFT p90 | E2E latency p90 |\n|---:|---|---:|---:|---:|---:|---:|---:|\n| 2 | DEP8 | 16 | 224 | 94.2k | 250 | 3.0 s | 12.2 s |\n| 2 | DEP8 | 16 | 256 | 98.8k | 244 | 5.3 s | 15.7 s |\n| 3 | DEP8 | 20 | 256 | 86.4k | 240 | 2.4 s | 12.1 s |\n| 3 | DEP8 | 20 | 288 | 93.2k | 230 | 3.5 s | 13.3 s |\n| 3 | DEP16 | 28 | 280 | 70.4k | 302 | 1.9 s | 9.4 s |\n| 3 | DEP16 | 28 | 320 | 77.3k | 291 | 2.2 s | 10.0 s |\n| 3 | DEP16 | 28 | 360 | 85.4k | 284 | 2.5 s | 10.6 s |\n| 4 | DEP16 | 32 | 352 | 74.5k | 284 | 1.8 s | 9.9 s |\n\nThe preset renders one prefill worker and the decode worker. Run more prefill workers with the same command, one per tray.\n\n**Image and versions.** The lane used an arm64 CUDA 13 build of the `vllm/vllm-openai:minimax-m31-flash` image (tag `minimax-m31-flash-arm64-cu134`), with Dynamo `1.6.0.dev20261023` and Mooncake `mooncake-transfer-engine-cuda13==0.3.13.post1` installed on every worker and on the Mooncake master host: `pip install --extra-index-url https://pypi.nvidia.com ai-dynamo-runtime==1.6.0.dev20261023 ai-dynamo==1.6.0.dev20261023 mooncake-transfer-engine-cuda13==0.3.13.post1`.\n\n### Tuning rules\n\n- **Prefill pool.** The prefill pool sets TTFT, so scale prefill workers with load. The lane's points kept TTFT p90 between 1.8 and 5.3 s with one DEP4 prefill tray per 85-128 concurrent agentic sessions (2 trays at 224-256 sessions, 3 at 256-360, 4 at 352). Two prefill trays per DEP8 decode give the most tokens per GPU; a third keeps TTFT p90 near 3.5 s up to 288 sessions. Add a prefill tray when TTFT p90 climbs while decode still has room.\n- **DEP8 or DEP16 decode.** DEP8 gives the most tokens per GPU: 28-36 sessions per decode GPU at 230-250 tok/s/user. DEP16 halves the batch per rank and gives about 25% more tok/s/user (302 at 280 sessions) and holds E2E latency p90 near 10 s up to 360 sessions, at about 10-20% fewer tokens per GPU. `--max-num-seqs 64` per DP rank is a cap, not the operating point. The decode graph cap is `--max-num-seqs` x (1 + 7 draft tokens) = 512. `--watermark 0.05` keeps 5% of the decode KV cache free, so extra requests wait in the queue instead of preempting running ones. Keep decode `--max-num-batched-tokens` at 8192: a preempted request recomputes its context in chunks of that size.\n- **Prefill batching.** `--long-prefill-token-threshold 4096` chunks long prompts into 4096-token pieces. Short prompts then share each step with them instead of waiting behind a 100K-token context, which lowers the TTFT tail. The recipe's 1P1D section above uses 8192. `--max-num-batched-tokens 16384` bounds a prefill step. Prefill captures CUDA graphs up to 2048 tokens. Prefill runs at `--gpu-memory-utilization 0.92`, decode at 0.88.\n- **Mooncake pool size.** `global_segment_size` is registered by every DP rank, prefill and decode alike, so a tray pins four times that value. The lane used 190 GB per rank (760 GB per tray), which lets three DEP4 prefill trays serve up to 288 sessions with DEP8 and 360 with DEP16; 210 GB per rank ran the prefill trays out of host memory. Size it as (host DRAM free per tray after the engines are up - headroom for NIXL and the 4 GB local buffers) / ranks per tray. The decode ranks only add capacity to the pool (`kv_consumer` with `enable_lookup: false` and `save_decode_cache: false`): the prefill workers write and read every block.\n- **Routing.** The KV router (`--router-mode kv`) reads the prefill workers' KV events and sends each request to the worker that already holds its prefix. Session affinity (`--router-session-affinity-ttl-secs 14400`) keeps a conversation on that worker for up to four hours. Send a stable conversation ID in the `X-Dynamo-Session-ID` header. The Mooncake store catches the prefixes that miss after a reroute.\n- **Transport.** Cross-tray NIXL needs `UCX_TLS=rc,cuda_copy` with `UCX_NET_DEVICES` set to the tray's RDMA ports. Without them, UCX can fall back to TCP and transfers stall. Point `UCX_MODULE_DIR` at the UCX bundled with the NIXL wheel (`nixl_cu13.libs/ucx` in the image's `dist-packages`). `kv_lease_duration: 120` holds a prefill's blocks for up to 120 s until decode reads them (the default is 30 s).\n- **NUMA.** `--numa-bind` pins each rank to its GPU's NUMA node. Decode passes the tray's map, `--numa-bind-nodes 0 0 1 1`, explicitly.\n- `--moe-backend deep_gemm_mega_moe` is the same as the lane's `--kernel-config '{\"moe_backend\":\"deep_gemm_mega_moe\"}'`. `--prefill-schedule-interval 1`, also set by the lane, is vLLM's default.\n\n### Services\n\nStart etcd, NATS and the Mooncake master once, on a host that runs no engine workers, together with the frontend. The engine trays' host DRAM then goes to the Mooncake pool.\n\n```bash\netcd --listen-client-urls http://0.0.0.0:2379 --advertise-client-urls http://<infra-host>:2379\nprintf 'max_payload: 33554432\\n' > nats.conf && nats-server -c nats.conf\nmooncake_master --rpc_port=50051 \\\n  --default_kv_lease_ttl=60000 --eviction_high_watermark_ratio=0.95 --eviction_ratio=0.10\n```\n\nEvery worker reads the store configuration from the JSON file that `MOONCAKE_CONFIG_PATH` points to (export it with the rest of the environment):\n\n```json\n{\"master_server_address\": \"<infra-host>:50051\", \"metadata_server\": \"P2PHANDSHAKE\",\n \"global_segment_size\": \"190GB\", \"local_buffer_size\": \"4GB\", \"protocol\": \"rdma\",\n \"device_name\": \"mlx5_0,mlx5_1,mlx5_2,mlx5_3\", \"enable_offload\": false}\n```\n\n### Workers\n\nExport `ETCD_ENDPOINTS=http://<infra-host>:2379`, `NATS_SERVER=nats://<infra-host>:4222` and the generated environment on every tray, then run the generated `python3 -m dynamo.vllm` commands. Add `--served-model-name MiniMaxAI/MiniMax-M3.1-Flash --trust-remote-code --dyn-tool-call-parser minimax_m3 --dyn-reasoning-parser minimax_m3` to both roles. `dynamo.vllm` rejects vLLM's API-server flags `--tool-call-parser` and `--enable-auto-tool-choice`. Multi-node DEP decode runs one process per tray with `--data-parallel-start-rank` set to 0, 4, 8 and so on, and a shared `--data-parallel-address` and `--data-parallel-rpc-port`. `--data-parallel-hybrid-lb` lets every tray's Dynamo runtime register its own DP ranks with the frontend.\n\n### Frontend\n\n```bash\nexport ETCD_ENDPOINTS=http://<infra-host>:2379 NATS_SERVER=nats://<infra-host>:4222\nexport DYN_ROUTER_ACTIVE_REQUEST_EXPIRY_SECS=3600 DYN_TCP_CONNECT_TIMEOUT=120 DYN_TOKENIZER=fastokens\npython3 -m dynamo.frontend --http-port 8000 --router-mode kv --router-session-affinity-ttl-secs 14400\n```\n\n`DYN_TOKENIZER=fastokens` switches the frontend to the fastokens tokenizer backend that ships with Dynamo. With 100K+ token agentic prompts, the default tokenizer spends about 150 ms per request on the frontend (up to 600 ms at p90), all of it added to TTFT; fastokens takes about 1 ms.\n\nThe InferenceX throughput points replaced block verification with synthetic rejection at the committed golden DSpark acceptance length (4.04), so every point is measured at the same acceptance rate. Production serving keeps the default rejection sampler (`rejection_sample_method: block`), as in the command above.\n",
      "json": "/MiniMaxAI/MiniMax-M3.1-Flash/presets/gb200_agentx_pd.json"
    },
    "h100_agentx": {
      "label": "AgentX TP8",
      "hardware": "h100",
      "strategy": "single_node_tp",
      "variants": [
        "fp8"
      ],
      "workload": "Agentic (InferenceX AgentX)",
      "description": "One 8-GPU H100 node, TP8, with FP8 KV and indexer caches, NVFP4 experts on the Marlin MoE, FlashInfer MSA on SM90 and three-token DSpark; the scheduler batch is twice the concurrency.",
      "source": {
        "label": "InferenceX #5124",
        "href": "https://github.com/SemiAnalysisAI/InferenceX/pull/5124",
        "key": "minimaxm31flash-fp4-h100-vllm-agentic-dspark",
        "revision": "821c134923672226a67f5b09bb9e334f910389a1"
      },
      "image": "vllm/vllm-openai:nightly-8ca766326652caf4b8e50d1b9118d8a22f6adc73@sha256:b6d1cfc60cce1f6405d37ea77645a36a46065230fb643abc2eeb93a5dc8fb79b",
      "select": {
        "features": {
          "text_only": true
        }
      },
      "args": [
        "--trust-remote-code",
        "--moe-backend",
        "marlin",
        "--enable-prefix-caching",
        "--max-model-len",
        "1048576",
        "--max-num-batched-tokens",
        "8192",
        "--gpu-memory-utilization",
        "0.90",
        "--safetensors-load-strategy",
        "lazy",
        "--speculative-config",
        "{\"method\":\"dspark\",\"num_speculative_tokens\":3,\"draft_sample_method\":\"probabilistic\",\"attention_backend\":\"FLASH_ATTN\",\"kv_cache_dtype\":\"fp8\",\"rejection_sample_method\":\"block\"}"
      ],
      "env": {
        "VLLM_ENGINE_READY_TIMEOUT_S": "7200",
        "VLLM_MARLIN_USE_ATOMIC_ADD": "1"
      },
      "points": {
        "c1": {
          "label": "1",
          "concurrency": 1,
          "args": [
            "--max-num-seqs",
            "2",
            "--max-cudagraph-capture-size",
            "8"
          ]
        },
        "c2": {
          "label": "2",
          "concurrency": 2,
          "args": [
            "--max-num-seqs",
            "4",
            "--max-cudagraph-capture-size",
            "16"
          ]
        },
        "c4": {
          "label": "4",
          "concurrency": 4,
          "args": [
            "--max-num-seqs",
            "8",
            "--max-cudagraph-capture-size",
            "32"
          ]
        },
        "c6": {
          "label": "6",
          "concurrency": 6,
          "args": [
            "--max-num-seqs",
            "12",
            "--max-cudagraph-capture-size",
            "64"
          ]
        },
        "c8": {
          "label": "8",
          "concurrency": 8,
          "args": [
            "--max-num-seqs",
            "16",
            "--max-cudagraph-capture-size",
            "64"
          ]
        },
        "c10": {
          "label": "10",
          "concurrency": 10,
          "args": [
            "--max-num-seqs",
            "20",
            "--max-cudagraph-capture-size",
            "128"
          ]
        },
        "c12": {
          "label": "12",
          "concurrency": 12,
          "args": [
            "--max-num-seqs",
            "24",
            "--max-cudagraph-capture-size",
            "128"
          ]
        }
      },
      "json": "/MiniMaxAI/MiniMax-M3.1-Flash/presets/h100_agentx.json"
    },
    "mi355x_agentx": {
      "label": "AgentX TP4",
      "hardware": "mi355x",
      "strategy": "single_node_tp",
      "variants": [
        "mxfp4"
      ],
      "workload": "Agentic (InferenceX AgentX)",
      "description": "One TP4 engine on four of the node's eight MI355X GPUs, serving the Quark MXFP4 checkpoint on the minimax-m31-flash-75bc8cf1 image: NVFP4 KV cache, DBO and breakable CUDA graphs at every point, seven-token DSpark up to concurrency 32 and three-token DSpark at 64, with a host-DRAM KV tier (LRU eviction) at 32 and 64.",
      "source": {
        "label": "InferenceX #5035",
        "href": "https://github.com/SemiAnalysisAI/InferenceX/pull/5035",
        "key": "minimaxm31flash-fp4-mi355x-vllm-agentic-dspark",
        "revision": "94ac90e2f5ae7ca3cb834f3c04097285a5833716"
      },
      "image": "vllm/vllm-openai-rocm:minimax-m31-flash-75bc8cf1@sha256:f8e8ab239e5edb7c3070c5802fc7fc0cbb889513bf81183dfc98ce1c77e1dfe1",
      "tp": 4,
      "select": {
        "features": {
          "text_only": true,
          "spec_decoding": true
        }
      },
      "args": [
        "--enable-prefix-caching",
        "--max-num-batched-tokens",
        "32768",
        "--enable-dbo",
        "--dbo-prefill-token-threshold",
        "16384",
        "--dbo-decode-token-threshold",
        "32768",
        "--renderer-num-workers",
        "8",
        "--enable-prompt-tokens-details"
      ],
      "env": {
        "VLLM_HTTP_TIMEOUT_KEEP_ALIVE": "900",
        "VLLM_USE_V2_MODEL_RUNNER": "1",
        "VLLM_USE_BREAKABLE_CUDAGRAPH": "1",
        "DEBUG_HIP_DYNAMIC_QUEUES": "0",
        "DEBUG_HIP_IGNORE_STREAM_PRIORITY": "0",
        "PYTHONHASHSEED": "0"
      },
      "json_args": {
        "--speculative-config": {
          "num_speculative_tokens": 7,
          "rejection_sample_method": "block"
        },
        "--compilation-config": {
          "max_cudagraph_capture_size": 2048
        }
      },
      "points": {
        "c1": {
          "label": "1",
          "concurrency": 1,
          "args": [
            "--max-num-seqs",
            "2",
            "--gpu-memory-utilization",
            "0.85"
          ]
        },
        "c2": {
          "label": "2",
          "concurrency": 2,
          "args": [
            "--max-num-seqs",
            "4",
            "--gpu-memory-utilization",
            "0.85",
            "--enable-batch-sharded-sampling"
          ]
        },
        "c4": {
          "label": "4",
          "concurrency": 4,
          "args": [
            "--max-num-seqs",
            "8",
            "--gpu-memory-utilization",
            "0.85",
            "--enable-batch-sharded-sampling"
          ]
        },
        "c8": {
          "label": "8",
          "concurrency": 8,
          "args": [
            "--max-num-seqs",
            "16",
            "--gpu-memory-utilization",
            "0.85",
            "--enable-batch-sharded-sampling"
          ]
        },
        "c16": {
          "label": "16",
          "concurrency": 16,
          "args": [
            "--max-num-seqs",
            "32",
            "--gpu-memory-utilization",
            "0.85",
            "--enable-batch-sharded-sampling"
          ]
        },
        "c32": {
          "label": "32 (KV offload)",
          "concurrency": 32,
          "select": {
            "kv_offload": "simple"
          },
          "args": [
            "--max-num-seqs",
            "64",
            "--gpu-memory-utilization",
            "0.85",
            "--enable-batch-sharded-sampling"
          ],
          "json_args": {
            "--kv-transfer-config": {
              "kv_connector_extra_config": {
                "cpu_bytes_to_use_per_rank": null,
                "cpu_bytes_to_use": 1349000000000,
                "lazy_offload": false,
                "cpu_lru_eviction": true
              }
            }
          }
        },
        "c64": {
          "label": "64 (KV offload)",
          "concurrency": 64,
          "select": {
            "kv_offload": "simple"
          },
          "args": [
            "--max-num-seqs",
            "128",
            "--gpu-memory-utilization",
            "0.9",
            "--enable-batch-sharded-sampling"
          ],
          "json_args": {
            "--speculative-config": {
              "num_speculative_tokens": 3
            },
            "--kv-transfer-config": {
              "kv_connector_extra_config": {
                "cpu_bytes_to_use_per_rank": null,
                "cpu_bytes_to_use": 1349000000000,
                "lazy_offload": false,
                "cpu_lru_eviction": true
              }
            }
          }
        }
      },
      "runbook": "The MI355X AgentX lane in [SemiAnalysis InferenceX](https://inferencex.semianalysis.com/)\n(`minimaxm31flash-fp4-mi355x-vllm-agentic-dspark`,\n[SemiAnalysisAI/InferenceX#5035](https://github.com/SemiAnalysisAI/InferenceX/pull/5035)),\non the Quark MXFP4 checkpoint with `--max-num-seqs` at twice the concurrency.\nThroughput runs replaced block verification with synthetic rejection at the\ncommitted golden DSpark acceptance length (4.04 for seven tokens, 2.88 for three);\nthe commands above keep block verification.\n\nThe image `minimax-m31-flash-75bc8cf1` is vLLM `0.33.0rc1.dev910+g4fab5a074` with\nthe MiniMax-M3.1 ROCm serving stack, the `amd_kernels` FlyDSL library and FlyDSL\n0.5.0. It routes the dense GEMMs, MoE, qkv, sparse attention, indexer, norms, DSpark\ndraft, sampling, top-p and sequence-parallel prefill to `amd_kernels` by default\n(the server logs `amd_kernels routes: gemm, moe, qkv, attention, indexer, norm,\ndraft, sampling, top_p, sp_prefill`), so no `VLLM_ROCM_*` opt-in switch is set.\n\n- **Every point** runs the NVFP4 KV and indexer K caches, DBO on prefill steps of\n  16384+ tokens, breakable CUDA graphs up to 2048 tokens on the V2 model runner,\n  and 8 renderer workers, so short turns are not queued behind long prompt renders.\n- **Batch-sharded sampling** splits the sampler across the TP ranks from\n  concurrency 2; vLLM refuses it at concurrency 1, where `--max-num-seqs` 2 is\n  below TP 4.\n- **Concurrency 32 and 64** add a host-DRAM KV tier through\n  `SimpleCPUOffloadConnector` (`cpu_bytes_to_use` 1,349 GB for the whole engine)\n  with `cpu_lru_eviction`, which evicts the least recently used prefixes from their\n  tail. Concurrency 64 runs three-token DSpark at 0.90 memory utilization.\n\nOne-hour runs of these commands on one MI355X node each (agentx-harness 1.0.12,\ngolden acceptance length, single run per point):\n\n| Concurrency | Interactivity p50 / p90 (tokens/s/user) | Total tokens/s per GPU | TTFT p50 |\n| --- | ---: | ---: | ---: |\n| 1 | 659 / 612 | 7,713 | 0.21 s |\n| 4 | 684 / 556 | 9,954 | 0.12 s |\n| 8 | 610 / 478 | 17,014 | 0.11 s |\n| 16 | 529 / 367 | 29,734 | 0.12 s |\n| 32 | 395 / 245 | 63,707 | 0.16 s |\n| 64 | 166 / 114 | 113,237 | 0.19 s |\n",
      "json": "/MiniMaxAI/MiniMax-M3.1-Flash/presets/mi355x_agentx.json"
    },
    "mi355x_agentx_pd": {
      "label": "AgentX 1P2D (Mooncake)",
      "hardware": "mi355x",
      "strategy": "pd_cluster",
      "variants": [
        "mxfp4"
      ],
      "workload": "Agentic (InferenceX AgentX)",
      "description": "One TP4 prefill engine with a host-DRAM KV tier feeds two TP4 decode engines on one node over Mooncake RDMA, behind vllm-router with consistent-hash routing (12 GPUs), on the minimax-m31-flash-75bc8cf1 image: seven-token DSpark, NVFP4 KV and indexer K caches, breakable CUDA graphs, and DBO on the prefill.",
      "source": {
        "label": "InferenceX #5090",
        "href": "https://github.com/SemiAnalysisAI/InferenceX/pull/5090",
        "key": "minimaxm31flash-fp4-mi355x-vllm-disagg-agentic-dspark",
        "revision": "cf5c4484503241f3d14332b895513cc053677e6f"
      },
      "image": "vllm/vllm-openai-rocm:minimax-m31-flash-75bc8cf1@sha256:f8e8ab239e5edb7c3070c5802fc7fc0cbb889513bf81183dfc98ce1c77e1dfe1",
      "select": {
        "pd_connector": "mooncake",
        "kv_offload": "simple",
        "features": {
          "text_only": true,
          "spec_decoding": true
        }
      },
      "args": [
        "--enable-prefix-caching",
        "--max-model-len",
        "1048576",
        "--gpu-memory-utilization",
        "0.85",
        "--enable-batch-sharded-sampling",
        "--renderer-num-workers",
        "8",
        "--enable-prompt-tokens-details",
        "--disable-uvicorn-access-log"
      ],
      "env": {
        "VLLM_USE_V2_MODEL_RUNNER": "1",
        "VLLM_USE_BREAKABLE_CUDAGRAPH": "1",
        "DEBUG_HIP_DYNAMIC_QUEUES": "0",
        "DEBUG_HIP_IGNORE_STREAM_PRIORITY": "0",
        "HIP_FORCE_DEV_KERNARG": "1",
        "NCCL_DMABUF_ENABLE": "0",
        "HSA_ENABLE_IPC_MODE_LEGACY": "1",
        "PYTHONHASHSEED": "0",
        "VLLM_ENGINE_READY_TIMEOUT_S": "7200",
        "VLLM_EXECUTE_MODEL_TIMEOUT_SECONDS": "1200",
        "VLLM_HTTP_TIMEOUT_KEEP_ALIVE": "3600",
        "VLLM_MOONCAKE_CONNECTOR_TIMEOUT": "600",
        "MC_GID_INDEX": "1",
        "MC_IB_TC": "104",
        "MC_MAX_CONCURRENT_REG_MR": "1"
      },
      "json_args": {
        "--speculative-config": {
          "num_speculative_tokens": 7,
          "rejection_sample_method": "block"
        },
        "--kv-transfer-config": {
          "MooncakeConnector": {
            "kv_connector_extra_config": {
              "mooncake_protocol": "rdma",
              "num_workers": 10
            }
          }
        }
      },
      "roles": {
        "prefill": {
          "args": [
            "--enable-dbo",
            "--dbo-prefill-token-threshold",
            "16384",
            "--dbo-decode-token-threshold",
            "32768",
            "--compilation-config",
            "{\"max_cudagraph_capture_size\":2048}"
          ],
          "env": {
            "VLLM_KV_CACHE_LAYOUT": "LBHNC",
            "MC_MAX_MR_SIZE": "1073741824"
          },
          "json_args": {
            "--attention-config": {
              "indexer_decode_cp": true
            }
          }
        },
        "decode": {
          "env": {
            "VLLM_KV_CACHE_LAYOUT": "LBHNC",
            "MC_MAX_MR_SIZE": "268435456"
          },
          "args": [
            "--max-num-batched-tokens",
            "8192",
            "--kv-transfer-config",
            "{\"kv_connector\":\"MooncakeConnector\",\"kv_role\":\"kv_consumer\",\"kv_load_failure_policy\":\"fail\",\"kv_connector_extra_config\":{\"mooncake_protocol\":\"rdma\",\"num_workers\":10}}"
          ]
        }
      },
      "points": {
        "c40": {
          "label": "40",
          "concurrency": 40,
          "roles": {
            "prefill": {
              "args": [
                "--max-num-seqs",
                "80"
              ],
              "json_args": {
                "--kv-transfer-config": {
                  "SimpleCPUOffloadConnector": {
                    "kv_connector_extra_config": {
                      "cpu_bytes_to_use_per_rank": null,
                      "cpu_hugepage_block_size": null,
                      "cpu_bytes_to_use": 1349000000000,
                      "lazy_offload": false,
                      "cpu_lru_eviction": true
                    }
                  }
                }
              }
            },
            "decode": {
              "args": [
                "--max-num-seqs",
                "5"
              ],
              "json_args": {
                "--compilation-config": {
                  "cudagraph_capture_sizes": [
                    8,
                    16,
                    24,
                    32,
                    40
                  ],
                  "max_cudagraph_capture_size": 40
                }
              }
            }
          }
        },
        "c48": {
          "label": "48",
          "concurrency": 48,
          "roles": {
            "prefill": {
              "args": [
                "--max-num-seqs",
                "96"
              ],
              "json_args": {
                "--kv-transfer-config": {
                  "SimpleCPUOffloadConnector": {
                    "kv_connector_extra_config": {
                      "cpu_bytes_to_use_per_rank": null,
                      "cpu_hugepage_block_size": null,
                      "cpu_bytes_to_use": 1349000000000,
                      "lazy_offload": false,
                      "cpu_lru_eviction": true
                    }
                  }
                }
              }
            },
            "decode": {
              "args": [
                "--max-num-seqs",
                "6"
              ],
              "json_args": {
                "--compilation-config": {
                  "cudagraph_capture_sizes": [
                    8,
                    16,
                    24,
                    32,
                    40,
                    48
                  ],
                  "max_cudagraph_capture_size": 48
                }
              }
            }
          }
        },
        "c56": {
          "label": "56",
          "concurrency": 56,
          "roles": {
            "prefill": {
              "args": [
                "--max-num-seqs",
                "112"
              ],
              "json_args": {
                "--kv-transfer-config": {
                  "SimpleCPUOffloadConnector": {
                    "kv_connector_extra_config": {
                      "cpu_bytes_to_use_per_rank": null,
                      "cpu_hugepage_block_size": null,
                      "cpu_bytes_to_use": 1349000000000,
                      "lazy_offload": false,
                      "cpu_lru_eviction": true
                    }
                  }
                }
              }
            },
            "decode": {
              "args": [
                "--max-num-seqs",
                "7"
              ],
              "json_args": {
                "--compilation-config": {
                  "cudagraph_capture_sizes": [
                    8,
                    16,
                    24,
                    32,
                    40,
                    48,
                    56
                  ],
                  "max_cudagraph_capture_size": 56
                }
              }
            }
          }
        },
        "c64": {
          "label": "64",
          "concurrency": 64,
          "default": true,
          "roles": {
            "prefill": {
              "args": [
                "--max-num-seqs",
                "128"
              ],
              "json_args": {
                "--kv-transfer-config": {
                  "SimpleCPUOffloadConnector": {
                    "kv_connector_extra_config": {
                      "cpu_bytes_to_use_per_rank": null,
                      "cpu_hugepage_block_size": null,
                      "cpu_bytes_to_use": 1349000000000,
                      "lazy_offload": false,
                      "cpu_lru_eviction": true
                    }
                  }
                }
              }
            },
            "decode": {
              "args": [
                "--max-num-seqs",
                "8"
              ],
              "json_args": {
                "--compilation-config": {
                  "cudagraph_capture_sizes": [
                    8,
                    16,
                    24,
                    32,
                    40,
                    48,
                    56,
                    64
                  ],
                  "max_cudagraph_capture_size": 64
                }
              }
            }
          }
        },
        "c72": {
          "label": "72",
          "concurrency": 72,
          "roles": {
            "prefill": {
              "args": [
                "--max-num-seqs",
                "144"
              ],
              "json_args": {
                "--kv-transfer-config": {
                  "SimpleCPUOffloadConnector": {
                    "kv_connector_extra_config": {
                      "cpu_bytes_to_use_per_rank": null,
                      "cpu_hugepage_block_size": null,
                      "cpu_bytes_to_use": 1499000000000,
                      "lazy_offload": false,
                      "cpu_lru_eviction": true
                    }
                  }
                }
              }
            },
            "decode": {
              "args": [
                "--max-num-seqs",
                "10"
              ],
              "json_args": {
                "--compilation-config": {
                  "cudagraph_capture_sizes": [
                    8,
                    16,
                    24,
                    32,
                    40,
                    48,
                    56,
                    64,
                    72,
                    80
                  ],
                  "max_cudagraph_capture_size": 80
                }
              }
            }
          }
        },
        "c80": {
          "label": "80",
          "concurrency": 80,
          "roles": {
            "prefill": {
              "args": [
                "--max-num-seqs",
                "160",
                "--long-prefill-token-threshold",
                "4096",
                "--gpu-memory-utilization",
                "0.75"
              ],
              "json_args": {
                "--kv-transfer-config": {
                  "SimpleCPUOffloadConnector": {
                    "kv_connector_extra_config": {
                      "cpu_bytes_to_use_per_rank": null,
                      "cpu_hugepage_block_size": null,
                      "cpu_bytes_to_use": 1499000000000,
                      "lazy_offload": false,
                      "cpu_lru_eviction": true
                    }
                  }
                }
              }
            },
            "decode": {
              "args": [
                "--max-num-seqs",
                "10"
              ],
              "json_args": {
                "--compilation-config": {
                  "cudagraph_capture_sizes": [
                    8,
                    16,
                    24,
                    32,
                    40,
                    48,
                    56,
                    64,
                    72,
                    80
                  ],
                  "max_cudagraph_capture_size": 80
                }
              }
            }
          }
        }
      },
      "runbook": "The MI355X disaggregated AgentX lane in [SemiAnalysis InferenceX](https://inferencex.semianalysis.com/)\n(`minimaxm31flash-fp4-mi355x-vllm-disagg-agentic-dspark`,\n[SemiAnalysisAI/InferenceX#5090](https://github.com/SemiAnalysisAI/InferenceX/pull/5090)),\non 12 MI355X GPUs and the Quark MXFP4 checkpoint: one TP4 prefill engine (GPUs 0-3 of\nits node) and two TP4 decode engines (GPUs 0-3 and 4-7 of a second node), with KV pushed\nfrom prefill to decode by `MooncakeConnector` over RDMA. Throughput runs replaced block\nverification with synthetic rejection at the golden DSpark acceptance length (4.04);\nthe commands above keep block verification.\n\n**Image.** The TP4 lane's `minimax-m31-flash-75bc8cf1` image (see that preset), which\nships `mooncake-transfer-engine-rocm` 0.3.14.\n\n**Running it.** The preset renders the prefill engine and one decode engine. Start the\nsecond decode engine on the same node with the same command and environment, with\n`CUDA_VISIBLE_DEVICES=4,5,6,7` and `--port 8003`, and list it with a second `--decode`.\nFor NUMA locality, pin each engine to its GPUs' NUMA node (GPUs 0-3 on node 0,\n4-7 on node 1). Tuning used this binding; the SA validation below did not enforce it. Start\nvllm-router 0.1.16 only after every engine answers `/health`: it reads each prefill's\nMooncake bootstrap server once, at startup, and without the prefill's engine ID there it\nsends requests without KV transfer parameters, so decode recomputes every prompt. Run it\nwith `--policy consistent_hash --prefill-policy consistent_hash --decode-policy consistent_hash`\nin place of `round_robin`, so every turn of a conversation reaches the engines that\ncache its prefix.\n\n**Mooncake environment.** `MC_GID_INDEX` and `MC_IB_TC` are the RoCE v2 GID index and\ntraffic class of the measured fabric; set your NICs' (`show_gids` lists the GIDs). The\ntransfer engine registers each rank's KV cache with every NIC in regions of at most\n`MC_MAX_MR_SIZE` bytes (1 GiB on prefill, 256 MiB on decode), one at a time.\n`VLLM_MOONCAKE_CONNECTOR_TIMEOUT` bounds each call to a prefill's bootstrap server\n(worker registration, and decode's engine lookup); its 30 s default can expire while a\nbusy prefill answers.\n\n**Locked memory.** The generated Docker commands set `--ulimit memlock=-1`. For a\nshell-based launch, run `ulimit -S -l \"$(ulimit -H -l)\"` in the shell that starts each\nengine, so it inherits the existing hard limit. The validated Slurm/Pyxis deployment\nraised an 8 MiB soft limit to an unlimited hard limit to avoid RDMA QP allocation\nfailures. In srt-slurm, the setup script applies `prlimit` to its parent launch shell\nbefore that shell starts the worker. A limit raised only inside a child setup process\ndoes not propagate back to the launch shell.\n\n**Tuning rules.**\n\n- Prefill `--max-num-seqs` is twice the concurrency. Its steps of 16384+ tokens run DBO\n  (dual-batch overlap), and its breakable CUDA graphs cover up to 2048 tokens.\n- Each decode engine caps its batch at an eighth of the concurrency (10 at 72 and 80),\n  and its CUDA graphs cover that batch x (1 + 7 draft tokens).\n- The prefill host-DRAM KV tier, with LRU eviction, holds 1.349 TB up to concurrency 64\n  and 1.499 TB at 72 and 80.\n- At 80, the prefill schedules at most 4096 tokens of a prompt per step and runs at 0.75\n  GPU memory utilization: at 0.85 its long-context prefill steps hit HIP OOM.\n\n[InferenceX run 44917863836](https://github.com/SemiAnalysisAI/InferenceX/actions/runs/44917863836)\npassed all six one-hour throughput points and all six full, 1319-sample, 5-shot GSM8K\nevaluations on these settings. Throughput used the `semianalysis_cc_traces_weka_062126`\ntraces and synthetic acceptance length 4.04; evaluation used natural probabilistic\ndraft sampling and block rejection. GSM8K strict-match ranged from 95.98% to 97.19%,\nand every natural-acceptance gate passed. No QP allocation or Mooncake KV-transfer\nfailures were observed. This run did not provide valid measured power data.\n\nInteractivity is 1 / p90 full-response inter-token latency, as plotted by InferenceX:\n\n| Concurrency | Decode cap | Total tokens/s per GPU | Interactivity p90 (tokens/s/user) | TTFT p90 |\n| ---: | ---: | ---: | ---: | ---: |\n| 40 | 5 | 25,852 | 428.9 | 1.48 s |\n| 48 | 6 | 31,196 | 404.4 | 1.46 s |\n| 56 | 7 | 37,828 | 372.8 | 1.28 s |\n| 64 | 8 | 42,447 | 356.5 | 2.77 s |\n| 72 | 10 | 45,345 | 327.4 | 2.79 s |\n| 80 | 10 | 50,212 | 319.2 | 3.26 s |\n",
      "json": "/MiniMaxAI/MiniMax-M3.1-Flash/presets/mi355x_agentx_pd.json"
    },
    "h200_agentx": {
      "label": "AgentX TP8",
      "hardware": "h200",
      "strategy": "single_node_tp",
      "variants": [
        "fp8"
      ],
      "workload": "Agentic (InferenceX AgentX)",
      "description": "One 8-GPU H200 node, TP8, with FP8 KV and indexer caches, NVFP4 experts on the Marlin MoE, FlashInfer MSA on SM90 and three-token DSpark; the scheduler batch is twice the concurrency.",
      "source": {
        "label": "InferenceX #5122",
        "href": "https://github.com/SemiAnalysisAI/InferenceX/pull/5122",
        "key": "minimaxm31flash-fp4-h200-vllm-agentic-dspark",
        "revision": "c8054c5d34b915eab437887cb4a5b7229452291f"
      },
      "image": "vllm/vllm-openai:nightly-8ca766326652caf4b8e50d1b9118d8a22f6adc73@sha256:b6d1cfc60cce1f6405d37ea77645a36a46065230fb643abc2eeb93a5dc8fb79b",
      "select": {
        "features": {
          "text_only": true
        }
      },
      "args": [
        "--trust-remote-code",
        "--moe-backend",
        "marlin",
        "--enable-prefix-caching",
        "--max-model-len",
        "1048576",
        "--max-num-batched-tokens",
        "8192",
        "--gpu-memory-utilization",
        "0.90",
        "--safetensors-load-strategy",
        "prefetch",
        "--speculative-config",
        "{\"method\":\"dspark\",\"num_speculative_tokens\":3,\"draft_sample_method\":\"probabilistic\",\"attention_backend\":\"FLASH_ATTN\",\"kv_cache_dtype\":\"fp8\",\"rejection_sample_method\":\"block\"}"
      ],
      "env": {
        "VLLM_ENGINE_READY_TIMEOUT_S": "7200",
        "VLLM_MARLIN_USE_ATOMIC_ADD": "1"
      },
      "points": {
        "c1": {
          "label": "1",
          "concurrency": 1,
          "args": [
            "--max-num-seqs",
            "2",
            "--max-cudagraph-capture-size",
            "8"
          ]
        },
        "c2": {
          "label": "2",
          "concurrency": 2,
          "args": [
            "--max-num-seqs",
            "4",
            "--max-cudagraph-capture-size",
            "16"
          ]
        },
        "c4": {
          "label": "4",
          "concurrency": 4,
          "args": [
            "--max-num-seqs",
            "8",
            "--max-cudagraph-capture-size",
            "32"
          ]
        },
        "c8": {
          "label": "8",
          "concurrency": 8,
          "args": [
            "--max-num-seqs",
            "16",
            "--max-cudagraph-capture-size",
            "64"
          ]
        },
        "c12": {
          "label": "12",
          "concurrency": 12,
          "args": [
            "--max-num-seqs",
            "24",
            "--max-cudagraph-capture-size",
            "128"
          ]
        },
        "c16": {
          "label": "16",
          "concurrency": 16,
          "args": [
            "--max-num-seqs",
            "32",
            "--max-cudagraph-capture-size",
            "128"
          ]
        },
        "c20": {
          "label": "20",
          "concurrency": 20,
          "args": [
            "--max-num-seqs",
            "40",
            "--max-cudagraph-capture-size",
            "256"
          ]
        },
        "c24": {
          "label": "24",
          "concurrency": 24,
          "args": [
            "--max-num-seqs",
            "48",
            "--max-cudagraph-capture-size",
            "256"
          ]
        }
      },
      "json": "/MiniMaxAI/MiniMax-M3.1-Flash/presets/h200_agentx.json"
    },
    "ascend_a3_w8a8_agg": {
      "label": "A3 W8A8 single node (DP4 x TP4)",
      "hardware": "ascend_910c",
      "strategy": "single_node_tp",
      "variants": [
        "ascend_w8a8"
      ],
      "workload": "128K context, DSpark, vision input",
      "default": true,
      "description": "One Atlas 800I A3 host, all 16 NPUs, DP4 x TP4 with expert parallelism across the node. The variant fixes TP4; this preset adds the DP4 group, the 32-sequence limit and the node-local ports the tutorial uses.",
      "source": {
        "label": "vLLM Ascend MiniMax-M3.1-Flash tutorial, single-node A3",
        "href": "https://docs.vllm.ai/projects/ascend/en/latest/tutorials/models/MiniMax-M3.1-Flash.html",
        "key": "minimax-m3.1-flash-a3-agg",
        "revision": "2026-11-20"
      },
      "image": {
        "vllm": "quay.io/ascend/vllm-ascend:minimax-m3.1-flash-a3-openeuler"
      },
      "args": [
        "--port",
        "11223",
        "--data-parallel-size",
        "4",
        "--enable-expert-parallel",
        "--max-num-seqs",
        "32",
        "--gpu-memory-utilization",
        "0.92",
        "--limit-mm-per-prompt",
        "{\"image\":1,\"video\":0}",
        "--enable-chunked-prefill",
        "--compilation-config",
        "{\"cudagraph_mode\":\"FULL_DECODE_ONLY\"}",
        "--additional-config",
        "{\"enable_cpu_binding\":true,\"enable_flashcomm1\":true,\"multistream_overlap_shared_expert\":true,\"enable_shared_expert_dp\":true,\"weight_nz_mode\":1}",
        "--safetensors-load-strategy",
        "prefetch"
      ],
      "env": {
        "HCCL_BUFFSIZE": "1024",
        "HCCL_IF_BASE_PORT": "61000"
      },
      "runbook": "## Topology\n\nOne Atlas 800I A3 host with 16 Ascend 910C (64 GB each), one `vllm serve`\nprocess at DP4 x TP4 x EP16. The full W8A8 checkpoint is replicated four\ntimes, one replica per DP rank, TP4 within a replica.\n\n## Environment\n\n`HCCL_IF_BASE_PORT=61000` keeps this lane's HCCL ports clear of the PD\npresets, which can run on the same host. Set `HCCL_IF_IP` to this host's\ncommunication address when the host is multi-homed; on a single node the\nrecipe has no placeholder to name it.\n\n## Limits\n\nVision input is enabled (`--limit-mm-per-prompt` keeps one image per\nprompt). Tool calling and the MiniMax reasoning parser are on. The 133K\ncontext limit leaves room for a 128K prompt plus 1K generated tokens.\n",
      "json": "/MiniMaxAI/MiniMax-M3.1-Flash/presets/ascend_a3_w8a8_agg.json"
    },
    "ascend_a5_w8a8_mxfp8_agg": {
      "label": "950DT MXFP8 single node (DP2 x TP4)",
      "hardware": "ascend_950dt_8x",
      "strategy": "single_node_tp",
      "variants": [
        "ascend_w8a8_mxfp8"
      ],
      "workload": "128K context, DSpark, vision input",
      "default": true,
      "description": "One Atlas 950DT host, all eight NPUs, DP2 x TP4 with expert parallelism across the node. Same command as the A3 lane with half the DP width, the 950DT additional config and no tool-call flags.",
      "source": {
        "label": "vLLM Ascend MiniMax-M3.1-Flash tutorial, single-node 950DT",
        "href": "https://docs.vllm.ai/projects/ascend/en/latest/tutorials/models/MiniMax-M3.1-Flash.html",
        "key": "minimax-m3.1-flash-a5-agg",
        "revision": "2026-11-20"
      },
      "image": {
        "vllm": "quay.io/ascend/vllm-ascend:minimax-m3.1-flash-a5-openeuler"
      },
      "select": {
        "features": {
          "tool_calling": false
        }
      },
      "args": [
        "--port",
        "11223",
        "--data-parallel-size",
        "2",
        "--enable-expert-parallel",
        "--max-num-seqs",
        "32",
        "--gpu-memory-utilization",
        "0.92",
        "--limit-mm-per-prompt",
        "{\"image\":1,\"video\":0}",
        "--enable-chunked-prefill",
        "--compilation-config",
        "{\"cudagraph_mode\":\"FULL_DECODE_ONLY\"}",
        "--additional-config",
        "{\"enable_cpu_binding\":true,\"enable_flashcomm1\":true,\"multistream_overlap_shared_expert\":true,\"enable_shared_expert_dp\":true}",
        "--safetensors-load-strategy",
        "prefetch"
      ],
      "env": {
        "HCCL_BUFFSIZE": "1024"
      },
      "runbook": "## Topology\n\nOne Atlas 950DT host with eight NPUs (96 GB each), one `vllm serve`\nprocess at DP2 x TP4 x EP8. The MXFP8 checkpoint is replicated twice.\n\n## Environment\n\n`HCCL_OP_EXPANSION_MODE=CCU_SCHED` comes from the variant; it replaces the\nAIV expansion the A3 image uses. Set `HCCL_IF_IP` to this host's\ncommunication address on a multi-homed host.\n\n## Limits\n\nVision input is enabled, tool calling is off (the tutorial's 950DT\nsingle-node lane does not pass the tool-call flags), and the reasoning\nparser is on. Use the PD preset when you need tool calling on 950DT.\n",
      "json": "/MiniMaxAI/MiniMax-M3.1-Flash/presets/ascend_a5_w8a8_mxfp8_agg.json"
    },
    "ascend_a3_w8a8_pd": {
      "label": "A3 W8A8 PD (1P1D)",
      "hardware": "ascend_910c",
      "strategy": "pd_cluster",
      "variants": [
        "ascend_w8a8"
      ],
      "workload": "Prefill/decode disaggregation, 128K context, DSpark",
      "default": true,
      "description": "One prefill host at DP1 x TP4 x PP4 and a distributed decode service over two hosts at global DP8 x TP4, launched as one supervisor per decode host in vLLM's multi-port external load-balancer mode. KV moves over MooncakeConnectorV2 and the Ascend Router fronts both pools.",
      "select": {
        "pd_router": "ascend",
        "pd_connector": "mooncake_ascend",
        "frontend": "python",
        "features": {
          "tool_calling": false,
          "text_only": true
        }
      },
      "source": {
        "label": "vLLM Ascend MiniMax-M3.1-Flash tutorial, PD on A3",
        "href": "https://docs.vllm.ai/projects/ascend/en/latest/tutorials/models/MiniMax-M3.1-Flash.html",
        "key": "minimax-m3.1-flash-a3-pd",
        "revision": "2026-11-20"
      },
      "image": {
        "vllm": "quay.io/ascend/vllm-ascend:minimax-m3.1-flash-a3-openeuler"
      },
      "args": [
        "--hf-overrides",
        "{\"architectures\":[\"MiniMaxM3SparseForCausalLM\"]}"
      ],
      "env": {
        "ASCEND_LOCAL_COMM_RES": "{\"version\":\"1.2\"}"
      },
      "roles": {
        "prefill": {
          "nodes": 1,
          "parallelism": "tep",
          "pp": 4,
          "args": [
            "--dtype",
            "bfloat16",
            "--enforce-eager",
            "--max-num-seqs",
            "8",
            "--max-num-batched-tokens",
            "8192",
            "--gpu-memory-utilization",
            "0.85",
            "--kv-cache-dtype",
            "bfloat16",
            "--enable-chunked-prefill",
            "--long-prefill-token-threshold",
            "2048",
            "--seed",
            "1024",
            "--additional-config",
            "{\"enable_cpu_binding\":true,\"multistream_overlap_shared_expert\":true,\"enable_shared_expert_dp\":true,\"weight_nz_mode\":1,\"enable_flashcomm1\":true,\"enable_fused_mc2\":0}"
          ],
          "env": {
            "VLLM_PP_LAYER_PARTITION": "15,15,15,15",
            "VLLM_USE_FASTOKENS": "1",
            "HCCL_BUFFSIZE": "512",
            "HCCL_IF_IP": "$PREFILL_NODE_1",
            "VLLM_HOST_IP": "$PREFILL_NODE_1",
            "HCCL_SOCKET_IFNAME": "$IFACE_NAME",
            "GLOO_SOCKET_IFNAME": "$IFACE_NAME"
          }
        },
        "decode": {
          "nodes": 2,
          "parallelism": "dep",
          "tp": 4,
          "pp": 1,
          "args": [
            "--dtype",
            "bfloat16",
            "--max-num-seqs",
            "128",
            "--max-num-batched-tokens",
            "2048",
            "--gpu-memory-utilization",
            "0.92",
            "--kv-cache-dtype",
            "bfloat16",
            "--enable-chunked-prefill",
            "--seed",
            "1024",
            "--compilation-config",
            "{\"cudagraph_mode\":\"FULL_DECODE_ONLY\",\"max_cudagraph_capture_size\":512}",
            "--additional-config",
            "{\"enable_cpu_binding\":true,\"multistream_overlap_shared_expert\":true,\"enable_shared_expert_dp\":true,\"enable_flashcomm1\":true,\"weight_nz_mode\":1}"
          ],
          "env": {
            "HCCL_BUFFSIZE": "1024",
            "HCCL_IF_IP": "$DECODE_NODE_1",
            "VLLM_HOST_IP": "$DECODE_NODE_1",
            "HCCL_SOCKET_IFNAME": "$IFACE_NAME",
            "GLOO_SOCKET_IFNAME": "$IFACE_NAME"
          }
        }
      },
      "runbook": "## Topology\n\nThree Atlas 800I A3 hosts with 16 Ascend 910C (64 GB) each: one prefill\nhost (DP1 x TP4 x PP4, expert parallel across the node) and two decode\nhosts sharing one global DP8 x TP4 group - four local DP ranks per host,\nranks 0-3 on D1 and 4-7 on D2.\n\n## Launch model\n\nOne `vllm serve` per host. The decode command runs the multi-port external\nload balancer: the supervisor process starts four child API servers per\nhost, one per local DP rank and four NPUs each, and assigns\n`--data-parallel-start-rank` 0 (D1) / 4 (D2). Do not add\n`--data-parallel-rank`, `--data-parallel-external-lb` or\n`--data-parallel-hybrid-lb`; the supervisor assigns the rank per child and\nrejects those flags. Start prefill, D1 and D2 within a few seconds of each\nother so the DP rendezvous completes, and start the router after every\nhost prints `Application startup complete`.\n\n## Evidence and limits\n\nValidated as TP4 x PP4 prefill against a global DP8 x TP4 decode group with\nMooncakeConnectorV1 and one proxy endpoint per rank. This preset keeps the\nvalidated parallelism and the same DSpark draft, and switches the launch\nto the external-LB supervisor with MooncakeConnectorV2 (the catalog\ndefault), so the tutorial's per-rank `vllm serve` loops and per-rank KV\nport arithmetic are not needed.\n",
      "json": "/MiniMaxAI/MiniMax-M3.1-Flash/presets/ascend_a3_w8a8_pd.json"
    },
    "ascend_a5_w8a8_mxfp8_pd": {
      "label": "950DT MXFP8 PD (1P1D)",
      "hardware": "ascend_950dt_8x",
      "strategy": "pd_cluster",
      "variants": [
        "ascend_w8a8_mxfp8"
      ],
      "workload": "Prefill/decode disaggregation, 128K context, DSpark",
      "default": true,
      "description": "One prefill host at DP1 x TP4 x PP2 and a distributed decode service over two hosts at global DP4 x TP4, one supervisor per decode host in multi-port external load-balancer mode. FP8 main-model KV cache with a BF16 DSpark draft, MooncakeConnectorV2 and the Ascend Router.",
      "select": {
        "pd_router": "ascend",
        "pd_connector": "mooncake_ascend",
        "frontend": "python",
        "features": {
          "text_only": true
        }
      },
      "source": {
        "label": "vLLM Ascend MiniMax-M3.1-Flash tutorial, PD on 950DT",
        "href": "https://docs.vllm.ai/projects/ascend/en/latest/tutorials/models/MiniMax-M3.1-Flash.html",
        "key": "minimax-m3.1-flash-a5-pd",
        "revision": "2026-11-20"
      },
      "image": {
        "vllm": "quay.io/ascend/vllm-ascend:minimax-m3.1-flash-a5-openeuler"
      },
      "roles": {
        "prefill": {
          "nodes": 1,
          "parallelism": "tep",
          "pp": 2,
          "args": [
            "--dtype",
            "bfloat16",
            "--enforce-eager",
            "--max-num-seqs",
            "128",
            "--max-num-batched-tokens",
            "8000",
            "--gpu-memory-utilization",
            "0.85",
            "--kv-cache-dtype",
            "fp8",
            "--enable-chunked-prefill",
            "--safetensors-load-strategy",
            "prefetch",
            "--additional-config",
            "{\"enable_cpu_binding\":true,\"multistream_overlap_shared_expert\":true,\"enable_shared_expert_dp\":true,\"enable_flashcomm1\":true,\"enable_fused_mc2\":0}"
          ],
          "env": {
            "VLLM_USE_FASTOKENS": "1",
            "VLLM_ENGINE_READY_TIMEOUT_S": "1800",
            "HCCL_BUFFSIZE": "512",
            "HCCL_IF_IP": "$PREFILL_NODE_1",
            "VLLM_HOST_IP": "$PREFILL_NODE_1",
            "HCCL_SOCKET_IFNAME": "$IFACE_NAME",
            "GLOO_SOCKET_IFNAME": "$IFACE_NAME"
          }
        },
        "decode": {
          "nodes": 2,
          "parallelism": "dep",
          "tp": 4,
          "pp": 1,
          "args": [
            "--dtype",
            "bfloat16",
            "--max-num-seqs",
            "128",
            "--max-num-batched-tokens",
            "8000",
            "--gpu-memory-utilization",
            "0.92",
            "--kv-cache-dtype",
            "fp8",
            "--safetensors-load-strategy",
            "prefetch",
            "--seed",
            "1024",
            "--compilation-config",
            "{\"cudagraph_mode\":\"FULL_DECODE_ONLY\",\"max_cudagraph_capture_size\":1024}",
            "--additional-config",
            "{\"enable_cpu_binding\":true,\"ascend_compilation_config\":{\"fuse_norm_quant\":false,\"fuse_qknorm_rope\":true},\"multistream_overlap_shared_expert\":true,\"enable_shared_expert_dp\":true,\"enable_flashcomm1\":true}"
          ],
          "env": {
            "VLLM_ENGINE_READY_TIMEOUT_S": "1800",
            "HCCL_BUFFSIZE": "1024",
            "HCCL_IF_IP": "$DECODE_NODE_1",
            "VLLM_HOST_IP": "$DECODE_NODE_1",
            "HCCL_SOCKET_IFNAME": "$IFACE_NAME",
            "GLOO_SOCKET_IFNAME": "$IFACE_NAME"
          }
        }
      },
      "runbook": "## Topology\n\nThree Atlas 950DT hosts with eight NPUs (96 GB) each: one prefill host\n(DP1 x TP4 x PP2) and two decode hosts sharing one global DP4 x TP4 group -\ntwo local DP ranks per host, ranks 0-1 on D1 and 2-3 on D2.\n\n## Launch model\n\nOne `vllm serve` per host. The decode supervisor starts two child API\nservers per host on `--port` + local rank and passes\n`--data-parallel-start-rank` 0 (D1) / 2 (D2). Both decode hosts serve\nHTTP; do not make D2 headless. Start the three engines within a few\nseconds of each other; the 950DT presets raise\n`VLLM_ENGINE_READY_TIMEOUT_S` to 1800 so the multi-host rendezvous and the\nweight load fit in one window. Start the router after every host prints\n`Application startup complete`.\n\n## Evidence and limits\n\nValidated as TP4 x PP2 prefill against global DP4 x TP4 decode with\nMooncakeConnectorV1, FP8 main-model KV cache and a BF16 DSpark draft. This\npreset keeps the parallelism, the KV dtypes and the 1024-token graph\ncapture, and switches the launch to the external-LB supervisor with\nMooncakeConnectorV2. For 16K-input workloads the tutorial halves\n`max-num-seqs` to 64 and drops `max_cudagraph_capture_size`; that variant\nis not a separate preset.\n",
      "json": "/MiniMaxAI/MiniMax-M3.1-Flash/presets/ascend_a5_w8a8_mxfp8_pd.json"
    }
  },
  "guide": "## Overview\n\n[MiniMax-M3.1-Flash](https://huggingface.co/MiniMaxAI/MiniMax-M3.1-Flash) is a\nvision-language MoE model from [MiniMax](https://www.minimax.io/) that keeps\nthe MoE architecture of [MiniMax-M3](https://huggingface.co/MiniMaxAI/MiniMax-M3):\nabout 428B total / 23B active parameters and a 1M-token context, with MSA\nsparse attention in every layer.\n\n- **Quantization-aware training** — the checkpoint stores MXFP8 dense layers\n  and NVFP4 experts.\n- **Built-in DSpark draft** — the `dspark/` directory of the checkpoint;\n  `--speculative-config` needs no draft model path.\n- **Native multimodal** — image and video inputs.\n\n## Prerequisites\n\n- **AMD:** MI355X (gfx950), ROCm 7.2+, TP4.\n- **NVIDIA Blackwell:** GB200, GB300, B200 or B300, TP4; NVFP4 MoE runs\n  natively on the FP4 tensor cores.\n- **NVIDIA Rubin (preview):** VR200, TP4, with the\n  `vllm/vllm-openai:minimax-m31-flash-cu134` image (CUDA 13.4) and no pip\n  path. It uses the Blackwell flags and hasn't been tuned on Rubin; the\n  GB200/GB300 PD and AgentX configurations don't apply.\n- **NVIDIA Hopper:** H100 or H200, TP8 on a full node, with the FP8\n  variant: FP8 KV and indexer caches, NVFP4 MoE on Marlin.\n- **`--block-size 128` is mandatory** (MSA sparse/index cache).\n\n## Launching the Server\n\n### Single node (TP4, AMD MI355X)\n\n```bash\nVLLM_ROCM_USE_AITER=1 VLLM_ROCM_USE_AITER_FUSION_SHARED_EXPERTS=1 \\\nvllm serve MiniMaxAI/MiniMax-M3.1-Flash \\\n  -tp 4 \\\n  --reasoning-parser minimax_m3 \\\n  --block-size 128 \\\n  --kv-cache-dtype nvfp4 \\\n  --attention-config '{\"indexer_kv_dtype\": \"nvfp4\", \"indexer_decode_cp\": true}' \\\n  --quantization-config.moe mxfp8 \\\n  --speculative-config '{\"method\":\"dspark\",\"num_speculative_tokens\":3,\"attention_backend\":\"TRITON_ATTN\",\"kv_cache_dtype\":\"fp8\",\"draft_sample_method\":\"probabilistic\"}' \\\n  --disable-hybrid-kv-cache-manager\n```\n\n- `--kv-cache-dtype nvfp4` and `indexer_kv_dtype: nvfp4` store the KV cache\n  and the sparse-attention indexer's K cache in NVFP4.\n- `indexer_decode_cp` splits the indexer's decode scoring across the TP ranks\n  by context instead of by index head.\n- `--quantization-config.moe mxfp8` re-quantizes the NVFP4 experts to MXFP8 at\n  load for the AITER MoE.\n- With a seven-token DSpark draft (`num_speculative_tokens: 7`),\n  `--monokernel` runs draft steps of up to 10 requests as fused FlyDSL\n  kernels.\n\n### Parallel index top-k (AMD MI355X)\n\n`parallel_topk` enables parallel decode top-16 selection for the NVFP4\nindexer. It is disabled by default. Use a build containing the selector and\nset `VLLM_ROCM_PARALLEL_INDEX_TOPK=1`, or enable the recipe feature.\nFP8 indexers, including mono decode, bypass this path. Benchmark and CI\nlanes must explicitly enable it in an image containing the patch; adding\nthe kernel or running correctness CI alone does not enable it for serving.\n\n### DBO and SP prefill (TP4, AMD MI355X)\n\nTwo opt-in switches make long prefill steps faster on the single-node MI355X\nengine (the **DBO / SP prefill** feature in the command builder):\n\n- **DBO** (dual-batch overlap): `--enable-dbo` splits a prefill step into two\n  microbatches and runs one microbatch's all-reduce under the other's compute.\n  `--dbo-decode-token-threshold 32768` keeps decode steps whole. DBO needs\n  `VLLM_USE_V2_MODEL_RUNNER=1`: without it, `--enable-dbo` selects the V1\n  runner, which refuses the DSpark draft.\n- **SP** (sequence-parallel prefill): `VLLM_ROCM_MINIMAX_M3_SP_PREFILL=1`\n  keeps the residual stream sharded by tokens on steps of 4096+ tokens, so\n  each layer's two all-reduces become an all-to-all and a reduce-scatter. It\n  keeps a full `o_proj` copy per GPU, about 3.1 GB less KV cache.\n- **SP + DBO**: set both, with `--dbo-prefill-token-threshold 16384`, so each\n  DBO microbatch has 8192+ tokens and stays on the SP path.\n\nOn the MXFP8 MoE, one 32K-token prefill takes 1035 ms plain, 655 ms with DBO\nand 484 ms with SP + DBO. The server log confirms SP with\n`MiniMax-M3 sequence-parallel prefill (from 4096 tokens, DBO microbatches from 8192): on`.\n\n```bash\nVLLM_ROCM_USE_AITER=1 VLLM_ROCM_USE_AITER_FUSION_SHARED_EXPERTS=1 \\\nVLLM_USE_V2_MODEL_RUNNER=1 VLLM_ROCM_MINIMAX_M3_SP_PREFILL=1 \\\nvllm serve MiniMaxAI/MiniMax-M3.1-Flash \\\n  -tp 4 \\\n  --reasoning-parser minimax_m3 \\\n  --block-size 128 \\\n  --kv-cache-dtype nvfp4 \\\n  --attention-config '{\"indexer_kv_dtype\": \"nvfp4\", \"indexer_decode_cp\": true}' \\\n  --quantization-config.moe mxfp8 \\\n  --speculative-config '{\"method\":\"dspark\",\"num_speculative_tokens\":3,\"attention_backend\":\"TRITON_ATTN\",\"kv_cache_dtype\":\"fp8\",\"draft_sample_method\":\"probabilistic\"}' \\\n  --enable-dbo \\\n  --dbo-prefill-token-threshold 16384 \\\n  --dbo-decode-token-threshold 32768 \\\n  --disable-hybrid-kv-cache-manager\n```\n\n### Single node (TP4, NVIDIA GB200)\n\n```bash\nVLLM_FLOAT32_MATMUL_PRECISION=high \\\nvllm serve MiniMaxAI/MiniMax-M3.1-Flash \\\n  -tp 4 \\\n  --reasoning-parser minimax_m3 \\\n  --block-size 128 \\\n  --kv-cache-dtype nvfp4 \\\n  --attention-config '{\"indexer_kv_dtype\": \"nvfp4\", \"use_prefill_query_quantization\": true}' \\\n  --compilation-config '{\"cudagraph_mode\": \"FULL_AND_PIECEWISE\"}' \\\n  --speculative-config '{\"method\":\"dspark\",\"num_speculative_tokens\":7,\"attention_backend\":\"FLASHINFER_TS\",\"kv_cache_dtype\":\"fp8\",\"draft_sample_method\":\"probabilistic\",\"rejection_sample_method\":\"block\"}' \\\n  --max-num-seqs 256 \\\n  --disable-hybrid-kv-cache-manager\n```\n\n- Blackwell runs the NVFP4 experts natively, so no\n  `--quantization-config.moe` override is needed.\n- `use_prefill_query_quantization` quantizes the prefill query on the MSA\n  indexer path (Q8KV4).\n\n### Single node (TP8, NVIDIA H100 / H200)\n\n```bash\nvllm serve MiniMaxAI/MiniMax-M3.1-Flash \\\n  --tensor-parallel-size 8 \\\n  --reasoning-parser minimax_m3 \\\n  --block-size 128 \\\n  --kv-cache-dtype fp8 \\\n  --attention-config '{\"indexer_kv_dtype\": \"fp8\"}' \\\n  --compilation-config '{\"cudagraph_mode\": \"FULL_AND_PIECEWISE\"}' \\\n  --max-model-len 262144 \\\n  --max-num-seqs 80 \\\n  --limit-mm-per-prompt '{\"video\": 0}' \\\n  --no-enable-log-requests \\\n  --disable-hybrid-kv-cache-manager \\\n  --moe-backend marlin \\\n  --enable-auto-tool-choice \\\n  --tool-call-parser minimax_m3\n```\n\n- Hopper has no FP4 tensor cores: the KV cache and the indexer K cache use\n  FP8, and the NVFP4 experts run on the Marlin MoE kernel.\n- `--limit-mm-per-prompt '{\"video\": 0}'` turns off video inputs; images\n  still work.\n- DSpark speculative decoding is not enabled on Hopper.\n\n### Prefill/decode disaggregation (1P1D, TP4 + TP4, AMD MI355X)\n\nPrefill node:\n\n```bash\nVLLM_ROCM_USE_AITER=1 VLLM_ROCM_USE_AITER_FUSION_SHARED_EXPERTS=1 \\\nVLLM_KV_CACHE_LAYOUT=BLHNC VLLM_NIXL_SIDE_CHANNEL_HOST=<P_IP> \\\nvllm serve MiniMaxAI/MiniMax-M3.1-Flash \\\n  -tp 4 \\\n  --reasoning-parser minimax_m3 \\\n  --block-size 128 \\\n  --kv-cache-dtype nvfp4 \\\n  --attention-config '{\"indexer_kv_dtype\": \"nvfp4\"}' \\\n  --quantization-config.moe mxfp8 \\\n  --speculative-config '{\"method\":\"dspark\",\"num_speculative_tokens\":3,\"attention_backend\":\"TRITON_ATTN\",\"kv_cache_dtype\":\"fp8\",\"draft_sample_method\":\"probabilistic\"}' \\\n  --disable-hybrid-kv-cache-manager \\\n  --max-num-batched-tokens 32768 \\\n  --port 8100 \\\n  --kv-transfer-config '{\"kv_connector\":\"MultiConnector\",\"kv_role\":\"kv_both\",\"kv_connector_extra_config\":{\"connectors\":[\n    {\"kv_connector\":\"NixlConnector\",\"kv_role\":\"kv_producer\",\"kv_connector_extra_config\":{\"num_threads\":4}},\n    {\"kv_connector\":\"SimpleCPUOffloadConnector\",\"kv_role\":\"kv_both\",\"kv_connector_extra_config\":{\"cpu_bytes_to_use_per_rank\":601295421440,\"cpu_hugepage_block_size\":\"1GB\",\"lazy_offload\":false}}]}}'\n```\n\nDecode node:\n\n```bash\nVLLM_ROCM_USE_AITER=1 VLLM_ROCM_USE_AITER_FUSION_SHARED_EXPERTS=1 \\\nVLLM_KV_CACHE_LAYOUT=BLHNC VLLM_NIXL_SIDE_CHANNEL_HOST=<D_IP> \\\nvllm serve MiniMaxAI/MiniMax-M3.1-Flash \\\n  -tp 4 \\\n  --reasoning-parser minimax_m3 \\\n  --block-size 128 \\\n  --kv-cache-dtype nvfp4 \\\n  --attention-config '{\"indexer_kv_dtype\": \"nvfp4\", \"indexer_decode_cp\": true}' \\\n  --quantization-config.moe mxfp8 \\\n  --speculative-config '{\"method\":\"dspark\",\"num_speculative_tokens\":3,\"attention_backend\":\"TRITON_ATTN\",\"kv_cache_dtype\":\"fp8\",\"draft_sample_method\":\"probabilistic\"}' \\\n  --disable-hybrid-kv-cache-manager \\\n  --port 8200 \\\n  --kv-transfer-config '{\"kv_connector\":\"NixlConnector\",\"kv_role\":\"kv_consumer\",\"kv_connector_extra_config\":{\"num_threads\":4}}'\n```\n\n- `<P_IP>` and `<D_IP>` are each node's own address, reachable from the\n  other node (the NIXL side channel).\n- `VLLM_KV_CACHE_LAYOUT=BLHNC` goes on both nodes. It keeps all layers of a\n  block contiguous, so NIXL reads one region per block instead of one per\n  layer.\n- The prefill node never decodes, so it leaves `indexer_decode_cp` off.\n- The prefill node also offloads KV to host memory\n  (`SimpleCPUOffloadConnector`): 560 GiB per rank in 1 GiB HugeTLB pages, so\n  2240 pages for the four ranks. Reserve them on the host before the start\n  (and allow them in the container's hugetlb limit), or the server fails at\n  startup with `Cannot map 560.00 GiB of 1024 MiB HugeTLB pages`:\n\n  ```bash\n  echo 2240 | sudo tee /sys/kernel/mm/hugepages/hugepages-1048576kB/nr_hugepages\n  ```\n\n### Prefill/decode disaggregation (1P1D, DEP2 + DEP4, NVIDIA GB200 / GB300)\n\nA DEP2 prefill on one 4-GPU tray feeds a DEP4 decode on a second tray over\nNIXL. Both roles run attention data parallel with the NVFP4 experts\non the DeepGEMM MegaMoE kernel over expert parallelism, the V2 model runner,\nNUMA binding, and a seven-token DSpark draft on the FlashInfer PrimiTS\n(`FLASHINFER_TS`) backend. The settings were tuned on GB300; GB200 uses the\nsame commands.\n\nPrefill node:\n\n```bash\nVLLM_FLOAT32_MATMUL_PRECISION=high VLLM_USE_V2_MODEL_RUNNER=1 \\\nVLLM_ENGINE_READY_TIMEOUT_S=3600 VLLM_NIXL_SIDE_CHANNEL_HOST=<P_IP> \\\nvllm serve MiniMaxAI/MiniMax-M3.1-Flash \\\n  --data-parallel-size 2 \\\n  --enable-expert-parallel \\\n  --moe-backend deep_gemm_mega_moe \\\n  --numa-bind \\\n  --reasoning-parser minimax_m3 \\\n  --block-size 128 \\\n  --kv-cache-dtype nvfp4 \\\n  --attention-config '{\"indexer_kv_dtype\": \"nvfp4\", \"use_prefill_query_quantization\": true}' \\\n  --compilation-config '{\"cudagraph_mode\": \"FULL_AND_PIECEWISE\"}' \\\n  --speculative-config '{\"method\":\"dspark\",\"num_speculative_tokens\":7,\"attention_backend\":\"FLASHINFER_TS\",\"kv_cache_dtype\":\"fp8\",\"draft_sample_method\":\"probabilistic\",\"rejection_sample_method\":\"block\"}' \\\n  --max-num-seqs 64 \\\n  --max-num-batched-tokens 32768 \\\n  --long-prefill-token-threshold 8192 \\\n  --gpu-memory-utilization 0.9 \\\n  --enable-prefix-caching \\\n  --disable-hybrid-kv-cache-manager \\\n  --port 8100 \\\n  --kv-transfer-config '{\"kv_connector\":\"NixlConnector\",\"kv_role\":\"kv_producer\",\"kv_load_failure_policy\":\"fail\",\"kv_connector_extra_config\":{\"engine_ttl\":0}}'\n```\n\nDecode node:\n\n```bash\nVLLM_FLOAT32_MATMUL_PRECISION=high VLLM_USE_V2_MODEL_RUNNER=1 \\\nVLLM_ENGINE_READY_TIMEOUT_S=3600 VLLM_NIXL_SIDE_CHANNEL_HOST=<D_IP> \\\nvllm serve MiniMaxAI/MiniMax-M3.1-Flash \\\n  --data-parallel-size 4 \\\n  --enable-expert-parallel \\\n  --moe-backend deep_gemm_mega_moe \\\n  --numa-bind \\\n  --reasoning-parser minimax_m3 \\\n  --block-size 128 \\\n  --kv-cache-dtype nvfp4 \\\n  --attention-config '{\"indexer_kv_dtype\": \"nvfp4\", \"use_prefill_query_quantization\": true}' \\\n  --compilation-config '{\"cudagraph_mode\": \"FULL_DECODE_ONLY\", \"max_cudagraph_capture_size\": 224}' \\\n  --speculative-config '{\"method\":\"dspark\",\"num_speculative_tokens\":7,\"attention_backend\":\"FLASHINFER_TS\",\"kv_cache_dtype\":\"fp8\",\"draft_sample_method\":\"probabilistic\",\"rejection_sample_method\":\"block\"}' \\\n  --max-num-seqs 28 \\\n  --max-num-batched-tokens 8192 \\\n  --gpu-memory-utilization 0.95 \\\n  --watermark 0.05 \\\n  --no-enable-prefix-caching \\\n  --disable-hybrid-kv-cache-manager \\\n  --port 8200 \\\n  --kv-transfer-config '{\"kv_connector\":\"NixlConnector\",\"kv_role\":\"kv_consumer\",\"kv_load_failure_policy\":\"fail\",\"kv_connector_extra_config\":{\"engine_ttl\":0}}'\n```\n\n- `VLLM_ENGINE_READY_TIMEOUT_S=3600`: with data parallel, each API server\n  waits this long for its engines to start (default 600 s). A cold prefill\n  start (JIT builds, CUDA graph capture, FlashInfer autotune) takes longer\n  than 10 minutes.\n- `--max-num-seqs` is per DP rank. The decode CUDA graphs cover 28 requests\n  of 1 + 7 tokens (224).\n- `--watermark 0.05` keeps 5% of the decode KV cache free when admitting\n  requests, so extra requests wait in the queue instead of preempting\n  running ones. On GB300 (about 4.5M KV tokens per decode rank) at a\n  200K-token mean context, expect about 19-21 running requests per rank.\n- Keep the decode `--max-num-batched-tokens` at 8192: a preempted request\n  recomputes its context in chunks of that size, and every DP rank runs\n  eager steps until it finishes.\n- `engine_ttl: 0` turns off NIXL's cleanup of idle remote engines; with the\n  default one-hour TTL, a decode crashed an hour after its prefill went away.\n- Prefix caching stays on the prefill node only. For multi-turn traffic, the\n  prefill node can also offload KV to host memory, 180 GiB per rank:\n  `--kv-transfer-config '{\"kv_connector\":\"MultiConnector\",\"kv_role\":\"kv_both\",\"kv_load_failure_policy\":\"fail\",\"kv_connector_extra_config\":{\"connectors\":[{\"kv_connector\":\"NixlConnector\",\"kv_role\":\"kv_producer\",\"kv_connector_extra_config\":{\"engine_ttl\":0}},{\"kv_connector\":\"SimpleCPUOffloadConnector\",\"kv_role\":\"kv_both\",\"kv_connector_extra_config\":{\"cpu_bytes_to_use_per_rank\":193273528320,\"lazy_offload\":true}}]}}'`.\n\nFor a quick test, put the toy NIXL proxy from the vLLM repository in front of\nthe two nodes and send requests to port 8000:\n\n```bash\npython tests/v1/kv_connector/nixl_integration/toy_proxy_server.py --port 8000 \\\n  --prefiller-host <P_IP> --prefiller-port 8100 \\\n  --decoder-host <D_IP> --decoder-port 8200\n```\n\n## Client Usage\n\nRecommended sampling parameters (from the model card): `temperature = 1.0`,\n`top_p = 0.95`. Set the reasoning effort per request with\n`chat_template_kwargs: {\"reasoning_effort\": \"<level>\"}`: `low`, `medium`,\n`high`, `xhigh` or `max`.\n\n```bash\ncurl http://localhost:8000/v1/chat/completions \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\n    \"model\": \"MiniMaxAI/MiniMax-M3.1-Flash\",\n    \"temperature\": 1.0,\n    \"top_p\": 0.95,\n    \"messages\": [\n      {\"role\": \"user\", \"content\": \"Explain MSA sparse attention in 3 bullets.\"}\n    ]\n  }'\n```\n\n## Benchmarking\n\n```bash\nvllm bench serve \\\n  --backend vllm \\\n  --model MiniMaxAI/MiniMax-M3.1-Flash \\\n  --endpoint /v1/completions \\\n  --dataset-name random \\\n  --random-input 8192 \\\n  --random-output 1024 \\\n  --max-concurrency 32 \\\n  --num-prompts 320\n```\n\n## Troubleshooting\n\n- **`--block-size` mismatch.** MSA's sparse block size is 128; the vLLM KV\n  cache block size must match (otherwise `No common block size for 16`).\n- **Parsers.** `--tool-call-parser` and `--reasoning-parser` both use\n  `minimax_m3`.\n- **HugeTLB pages (PD prefill node).** See the AMD PD section above.\n\n## References\n\n- [Model card](https://huggingface.co/MiniMaxAI/MiniMax-M3.1-Flash)\n- [MiniMax-M3 recipe](https://recipes.vllm.ai/MiniMaxAI/MiniMax-M3)\n- [MiniMax](https://www.minimax.io/)\n\n### Ascend deployment\n\nMiniMax M3.1-Flash on Ascend runs from ModelScope builds of the\nquantization-aware checkpoint: `Eco-Tech/Minimax-M3.1-Flash-w8a8` on Atlas\n800I A3 (16 x Ascend 910C, 64 GB HBM per NPU) and\n`Eco-Tech/Minimax-M3.1-Flash-w8a8-mxfp8` on Atlas 950DT (8 NPUs, 96 GB each).\nThe Hugging Face checkpoint `MiniMaxAI/MiniMax-M3.1-Flash` stores NVFP4\nexperts and does not run on NPU; both Ascend builds need\n`--quantization ascend`. No model revision is pinned, matching the tutorial.\n\nThe two images are model-specific builds. Each Docker command starts the\ncontainer with `--network host --shm-size=100g`; the 950DT\ncontainer also needs `--ipc host`. The recipe sets the shared-memory size for\nyou.\n\n| Lane | Preset |\n| --- | --- |\n| A3, 128K context, DP4 x TP4 / EP16, one host | `ascend_a3_w8a8_agg` |\n| 950DT, 128K context, DP2 x TP4 / EP8, one host | `ascend_a5_w8a8_mxfp8_agg` |\n| A3, 1P1D, prefill DP1 x TP4 x PP4 + decode DP8 x TP4 over two hosts | `ascend_a3_w8a8_pd` |\n| 950DT, 1P1D, prefill DP1 x TP4 x PP2 + decode DP4 x TP4 over two hosts | `ascend_a5_w8a8_mxfp8_pd` |\n\nEach PD preset is the default for the `pd_cluster` strategy on its hardware;\nit needs three hosts and the Ascend Router. The single-node presets remain\nthe defaults for the single-node strategy.\n\n**Placeholders in the generated commands.** The PD lanes carry six shell\nvariables; substitute them before launch:\n\n- `$PREFILL_NODE_1` — the prefill host's address on the interface the decode\n  hosts and the router can reach.\n- `$DECODE_NODE_1` — the first decode host, and the address of the global DP\n  group: both decode hosts pass it as `--data-parallel-address`, and the\n  rank-0 child API server on D1 binds the DP coordination endpoint there.\n  The supervisor process itself only serves the aggregated `/health`.\n- `$DECODE_NODE_2` — the second decode host's own address, used for its\n  `HCCL_IF_IP` and `VLLM_HOST_IP`. It is not the DP address: every decode\n  host keeps `--data-parallel-address $DECODE_NODE_1`.\n- `$DECODE_DP_RPC_PORT` — a free TCP port for the DP rendezvous, reachable\n  from both decode hosts and not bound by any other pool (for example 16920\n  on A3 and 6885 on 950DT, the values the tutorial uses).\n- `$ROUTER_PORT` — the Ascend Router's listening port; the command builder\n  supplies a default, and the tutorial's proxy uses 19080. Make sure it is\n  free on the host that runs the router.\n- `$IFACE_NAME` — the business NIC on that host, for `HCCL_SOCKET_IFNAME` and\n  `GLOO_SOCKET_IFNAME`. The recipe leaves `HCCL_IF_IP`, `VLLM_HOST_IP`, and\n  the socket variables explicit on every PD role because a multi-homed host\n  needs them to agree; the single-node presets do not set them.\n\nEvery other port is literal: prefill HTTP 8001, decode `--port` 8002, KV\ntransfer 36000 (prefill) and 36100 (decode).\n\n**Prefill.** One `vllm serve` process per role, TP4 with PP4 (A3) or PP2\n(950DT) and expert parallelism across the node, `--language-model-only`,\neager main model, and a DSpark draft on both pools. The A3 role exports\n`VLLM_PP_LAYER_PARTITION=15,15,15,15` (the model has 60 layers, so this is\nalso the even split) and `ASCEND_LOCAL_COMM_RES`; unset the partition\nvariable before starting any other lane on the same shell. Before launch,\nrun `unset HCCL_INTRA_ROCE_ENABLE` on the A3 PD hosts: the tutorial requires\nit and it cannot be expressed as a recipe environment variable.\n\n**A3 `ASCEND_LOCAL_COMM_RES`.** This variable selects the HIXL local\ncommunication resource for the HCCS fabric and must be the JSON string\n`{\"version\":\"1.2\"}`. The recipe renderer currently emits environment values\nwithout shell quotes, so the copied A3 PD command passes `{version:1.2}`\nand HIXL cannot parse it. Until the renderer is fixed, quote it by hand: in\nthe bare command, export `ASCEND_LOCAL_COMM_RES='{\"version\":\"1.2\"}'`; in\nthe Docker command, remove the generated `-e ASCEND_LOCAL_COMM_RES=...` and\npass `-e ASCEND_LOCAL_COMM_RES` after that export. The 950DT lanes do not\nset this variable.\n\n**Decode.** One `vllm serve` supervisor per decode host, not one process per\nrank. Both PD presets use vLLM's multi-port external load balancer: the\nsupervisor starts one child API server per local DP rank, each child owning\nTP4 worth of NPUs, and it assigns `--data-parallel-start-rank` 0 (A3 D1), 4\n(A3 D2), 0 (950DT D1) and 2 (950DT D2). A3 therefore serves children on\n8002-8005 per host and 950DT on 8002-8003; the supervisor publishes\naggregated `/health` on vLLM's default port 9256, and\n`--data-parallel-supervisor-port` moves only that health port. Do not add\n`--data-parallel-rank`, `--data-parallel-external-lb` or\n`--data-parallel-hybrid-lb`: the supervisor assigns ranks to children and\nrejects those flags. Both decode hosts serve HTTP, so do not make the second\none headless.\n\nThe decode graph capture sizes are not cosmetic: at 128 sequences and seven\ndraft tokens an A3 decode step holds 1024 tokens while that lane captures\n512, and the 950DT lane captures 1024. With 64 sequences the default limit\nis enough, which is why the 16K-input variant of the tutorial drops\n`max_cudagraph_capture_size` instead of raising it.\n\n**KV transfer.** Both pools use `MooncakeConnectorV2` (the catalog default\nfor `mooncake_ascend`) instead of the tutorial's `MooncakeConnectorV1`\nconfig. The `kv_port` is the base side-channel port and the connector\nderives the per-rank ports from the device index, so the tutorial's\n`25000 + rank * 32` arithmetic is not needed. Keep\n`kv_connector_extra_config` in sync with the tp/pp/dp flags if you change\nthe topology: the recipe fills the pool shapes from the rendered roles. A\ntp or dp mismatch fails fast at startup with a `ValueError`; `pp` is not\npart of that check, so a pp mismatch can surface later as a KV handshake\nfailure.\n\n**Startup order.** Start prefill, D1 and D2 within a few seconds of each\nother - a role started later blocks the distributed rendezvous, and the\nroles started earlier fail when their ready timeout expires. On 950DT the\npresets raise `VLLM_ENGINE_READY_TIMEOUT_S` to 1800 for the weight load and\nmulti-host rendezvous. Start the Ascend Router only after every host prints\n`Application startup complete`, and point it at the prefill child (8001) and\nat every decode child (8002-8005 or 8002-8003 on both decode hosts); a\nsingle decode endpoint per host leaves the other local ranks idle.\n\n**Features.** DSpark speculative decoding (seven tokens, eager draft, BF16\ndraft KV) is on in every lane. Tool calling is on for the A3 single-node and\n950DT PD lanes and off for the A3 PD and 950DT single-node lanes, exactly as\nin the tutorial; the MiniMax reasoning parser is on everywhere. Both PD\nlanes load text only (`--language-model-only`). The A3 PD preset also passes\n`--hf-overrides` with the sparse architecture its scripts use; the 950DT PD\nscripts do not pass it, so that preset does not either.\n\n**Not covered here.** The A2 two-node colocated layout (section 5.2), the KV\ncache pool with `MultiConnector` (section 5.4), the 1M-token PD layout\n(section 5.5) and the 16K-input decode variant (64 sequences, default graph\ncapture) stay in the tutorial. The per-rank `vllm serve` scripts of section\n5.3 are replaced by the supervisor; the Python load-balance proxy is now\nlaunched as the catalog's Ascend Router, which runs the same\n`load_balance_proxy_server_example.py` from the image.\n",
  "strategy_hardware": {
    "single_node_tep": {
      "npu": "unsupported"
    },
    "single_node_dep": {
      "npu": "unsupported"
    },
    "multi_node_tp": {
      "npu": "unsupported"
    },
    "multi_node_dep": {
      "npu": "unsupported"
    },
    "multi_node_tep": {
      "npu": "unsupported"
    },
    "pd_cluster": {
      "npu": "unsupported",
      "ascend_910c": "supported",
      "ascend_950dt_8x": "supported"
    }
  },
  "hardware_notes": {
    "ascend_910c": {
      "title": "Atlas 800I A3 runs the W8A8 ModelScope build with 100g of shm",
      "body": "Verified on Atlas 800I A3 (16 x Ascend 910C, 64 GB HBM per NPU) with quay.io/ascend/vllm-ascend:minimax-m3.1-flash-a3-openeuler. The weights are Eco-Tech/Minimax-M3.1-Flash-w8a8 from ModelScope; the recipe sets VLLM_USE_MODELSCOPE and passes --quantization ascend, and no model revision is pinned because the tutorial pins none. The Docker command starts the container with 100g of shared memory and --network host. The Ascend deployment guide below covers the PD placeholders, the minimal decode launch and the ports.",
      "link": {
        "label": "Ascend deployment",
        "href": "#ascend-deployment"
      }
    },
    "ascend_950dt_8x": {
      "title": "Atlas 950DT runs the W8A8 MXFP8 build with CCU_SCHED expansion",
      "body": "Verified on Atlas 950DT (8 NPUs, 96 GB HBM each) with quay.io/ascend/vllm-ascend:minimax-m3.1-flash-a5-openeuler. The weights are Eco-Tech/Minimax-M3.1-Flash-w8a8-mxfp8 from ModelScope, again with --quantization ascend and no pinned revision. The generated Docker command sets 100g of shared memory and --network host; add --ipc host yourself because the recipe cannot express extra Docker flags. The PD presets use an FP8 main-model KV cache with a BF16 DSpark draft; the Ascend deployment guide lists the rest.",
      "link": {
        "label": "Ascend deployment",
        "href": "#ascend-deployment"
      }
    }
  },
  "notes": [
    {
      "title": "Ascend PD requires the qualified preset",
      "when": {
        "hardware": [
          "ascend_910c",
          "ascend_950dt_8x"
        ],
        "strategies": [
          "pd_cluster"
        ]
      },
      "body": "The prefill/decode cost model and role sizing in Baseline, Dynamo, SMG and the vLLM router do not describe the validated Ascend 1P1D lanes. Use the A3 or 950DT PD preset, which pins the prefill TP/PP split, the global decode DP group, the Ascend Router and MooncakeConnectorV2 on both pools."
    }
  ],
  "source": {
    "source": "vllm",
    "repo": "vllm-project/vllm",
    "ref": "main",
    "sha": "d51a5147112a31dfbed08cfa4b774c27c34ce90d",
    "path": "recipes/models/MiniMaxAI/MiniMax-M3.1-Flash.yaml",
    "edit_url": "https://github.com/vllm-project/vllm/edit/main/recipes/models/MiniMaxAI/MiniMax-M3.1-Flash.yaml",
    "overlays": [
      {
        "source": "vllm-ascend",
        "repo": "vllm-project/vllm-ascend",
        "ref": "main",
        "sha": "146b0a57242da88e245bfc4840367947d9b33a68",
        "path": "recipes/overlays/MiniMaxAI/MiniMax-M3.1-Flash.yaml",
        "edit_url": "https://github.com/vllm-project/vllm-ascend/edit/main/recipes/overlays/MiniMaxAI/MiniMax-M3.1-Flash.yaml"
      }
    ]
  }
}