{
  "hf_id": "deepseek-ai/DeepSeek-V4.1-Flash",
  "meta": {
    "title": "DeepSeek-V4.1-Flash",
    "slug": "deepseek-v4.1-flash",
    "provider": "DeepSeek",
    "description": "DeepSeek V4.1 Flash vision-language MoE (552B backbone; 8B active per prompt token, 16B per output token) combining sliding-window plus compressed sparse attention with a two-level indexer, engram n-gram memory, hyper-connections, and a DSpark multi-token draft head.",
    "date_added": "2026-09-09",
    "date_updated": "2026-11-24",
    "tasks": [
      "text",
      "multimodal"
    ],
    "performance_headline": "1M context at 8-16B active parameters, with engram n-gram memory",
    "related_recipes": [
      "deepseek-ai/DeepSeek-V4-Flash",
      "deepseek-ai/DeepSeek-V4-Pro"
    ],
    "default_hardware": "gb200",
    "hardware": {
      "h100": "verified",
      "h200": "verified",
      "b200": "verified",
      "gb200": "verified",
      "gb300": "verified",
      "b300": "verified",
      "mi300x": "verified",
      "mi325x": "verified",
      "mi350x": "verified",
      "mi355x": "verified",
      "dgx_station_gb300": "verified",
      "ascend_910b": "verified",
      "ascend_950dt": "supported"
    }
  },
  "recommended_command": {
    "hardware": "gb200",
    "strategy": "single_node_tp",
    "variant": "default",
    "node_count": 1,
    "deploy_type": "single_node",
    "env": {
      "VLLM_ENGINE_READY_TIMEOUT_S": "3600",
      "VLLM_USE_RUST_FRONTEND": "1"
    },
    "docker_image": "vllm/vllm-openai:latest",
    "command": "vllm serve deepseek-ai/DeepSeek-V4.1-Flash-1017 \\\n  --tokenizer-mode deepseek_v41 \\\n  --tensor-parallel-size 2 \\\n  --attention-config '{\"backend\":\"FLASHINFER_MLA_SPARSE_DSV41\",\"indexer_kv_dtype\":\"mxfp4\",\"indexer_sparse_logits\":true}' \\\n  --kv-cache-dtype fp8 \\\n  --max-num-seqs 128 \\\n  --engram-config '{\"cpu_offload\":true}' \\\n  --tool-call-parser deepseek_v41 \\\n  --enable-auto-tool-choice \\\n  --reasoning-parser deepseek_v41 \\\n  --mm-encoder-tp-mode data",
    "argv": [
      "vllm",
      "serve",
      "deepseek-ai/DeepSeek-V4.1-Flash-1017",
      "--tokenizer-mode",
      "deepseek_v41",
      "--tensor-parallel-size",
      "2",
      "--attention-config",
      "{\"backend\":\"FLASHINFER_MLA_SPARSE_DSV41\",\"indexer_kv_dtype\":\"mxfp4\",\"indexer_sparse_logits\":true}",
      "--kv-cache-dtype",
      "fp8",
      "--max-num-seqs",
      "128",
      "--engram-config",
      "{\"cpu_offload\":true}",
      "--tool-call-parser",
      "deepseek_v41",
      "--enable-auto-tool-choice",
      "--reasoning-parser",
      "deepseek_v41",
      "--mm-encoder-tp-mode",
      "data"
    ],
    "docker_command": "docker run --gpus all \\\n  --privileged --ipc=host -p 8000:8000 \\\n  -v ~/.cache/huggingface:/root/.cache/huggingface \\\n  -e VLLM_ENGINE_READY_TIMEOUT_S=3600 \\\n  -e VLLM_USE_RUST_FRONTEND=1 \\\n  vllm/vllm-openai:latest deepseek-ai/DeepSeek-V4.1-Flash-1017 \\\n  --tokenizer-mode deepseek_v41 \\\n  --tensor-parallel-size 2 \\\n  --attention-config '{\"backend\":\"FLASHINFER_MLA_SPARSE_DSV41\",\"indexer_kv_dtype\":\"mxfp4\",\"indexer_sparse_logits\":true}' \\\n  --kv-cache-dtype fp8 \\\n  --max-num-seqs 128 \\\n  --engram-config '{\"cpu_offload\":true}' \\\n  --tool-call-parser deepseek_v41 \\\n  --enable-auto-tool-choice \\\n  --reasoning-parser deepseek_v41 \\\n  --mm-encoder-tp-mode data",
    "docker_argv": [
      "docker",
      "run",
      "--gpus",
      "all",
      "--privileged",
      "--ipc=host",
      "-p",
      "8000:8000",
      "-v",
      "~/.cache/huggingface:/root/.cache/huggingface",
      "-e",
      "VLLM_ENGINE_READY_TIMEOUT_S=3600",
      "-e",
      "VLLM_USE_RUST_FRONTEND=1",
      "vllm/vllm-openai:latest",
      "deepseek-ai/DeepSeek-V4.1-Flash-1017",
      "--tokenizer-mode",
      "deepseek_v41",
      "--tensor-parallel-size",
      "2",
      "--attention-config",
      "{\"backend\":\"FLASHINFER_MLA_SPARSE_DSV41\",\"indexer_kv_dtype\":\"mxfp4\",\"indexer_sparse_logits\":true}",
      "--kv-cache-dtype",
      "fp8",
      "--max-num-seqs",
      "128",
      "--engram-config",
      "{\"cpu_offload\":true}",
      "--tool-call-parser",
      "deepseek_v41",
      "--enable-auto-tool-choice",
      "--reasoning-parser",
      "deepseek_v41",
      "--mm-encoder-tp-mode",
      "data"
    ],
    "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": "sm100",
      "display_name": "GB200 NVL4",
      "description": "NVIDIA GB200 Grace-Blackwell compute tray · 192 GB HBM3e/GPU · 4 Blackwell GPUs (NVL72 tray unit)",
      "gpu_count": 4,
      "vram_gb": 768,
      "multi_node": false
    },
    "alternatives": {
      "single_node_tep": "/deepseek-ai/DeepSeek-V4.1-Flash/strategies/single_node_tep.json",
      "single_node_dep": "/deepseek-ai/DeepSeek-V4.1-Flash/strategies/single_node_dep.json",
      "multi_node_tp": "/deepseek-ai/DeepSeek-V4.1-Flash/strategies/multi_node_tp.json",
      "multi_node_tep": "/deepseek-ai/DeepSeek-V4.1-Flash/strategies/multi_node_tep.json",
      "multi_node_dep": "/deepseek-ai/DeepSeek-V4.1-Flash/strategies/multi_node_dep.json",
      "pd_cluster": "/deepseek-ai/DeepSeek-V4.1-Flash/strategies/pd_cluster.json",
      "kv_store_centralized_mooncake": "/deepseek-ai/DeepSeek-V4.1-Flash/strategies/kv_store_centralized_mooncake.json",
      "kv_store_distributed_mooncake": "/deepseek-ai/DeepSeek-V4.1-Flash/strategies/kv_store_distributed_mooncake.json"
    },
    "by_hardware": {
      "gb200": "/deepseek-ai/DeepSeek-V4.1-Flash/hw/gb200.json",
      "h100": "/deepseek-ai/DeepSeek-V4.1-Flash/hw/h100.json",
      "h200": "/deepseek-ai/DeepSeek-V4.1-Flash/hw/h200.json",
      "b200": "/deepseek-ai/DeepSeek-V4.1-Flash/hw/b200.json",
      "b300": "/deepseek-ai/DeepSeek-V4.1-Flash/hw/b300.json",
      "gb300": "/deepseek-ai/DeepSeek-V4.1-Flash/hw/gb300.json",
      "dgx_station_gb300": "/deepseek-ai/DeepSeek-V4.1-Flash/hw/dgx_station_gb300.json",
      "mi300x": "/deepseek-ai/DeepSeek-V4.1-Flash/hw/mi300x.json",
      "mi325x": "/deepseek-ai/DeepSeek-V4.1-Flash/hw/mi325x.json",
      "mi350x": "/deepseek-ai/DeepSeek-V4.1-Flash/hw/mi350x.json",
      "mi355x": "/deepseek-ai/DeepSeek-V4.1-Flash/hw/mi355x.json",
      "ascend_950dt": "/deepseek-ai/DeepSeek-V4.1-Flash/hw/ascend_950dt.json",
      "ascend_910b": "/deepseek-ai/DeepSeek-V4.1-Flash/hw/ascend_910b.json"
    }
  },
  "model": {
    "model_id": "deepseek-ai/DeepSeek-V4.1-Flash",
    "smg_grpc": {
      "reasoning_parser": "deepseek_v41",
      "tool_call_parser": "deepseek_v41"
    },
    "min_vllm_version": "0.31.0",
    "default_frontend": "rust",
    "docker_image": {
      "amd": "vllm/vllm-openai-rocm:nightly-rocm100"
    },
    "architecture": "moe",
    "parameter_count": "552B",
    "active_parameters": "8-16B",
    "context_length": 1048576,
    "base_args": [
      "--tokenizer-mode",
      "deepseek_v41"
    ],
    "base_env": {
      "VLLM_ENGINE_READY_TIMEOUT_S": "3600"
    },
    "install": {
      "pip": {
        "command": "uv venv\nsource .venv/bin/activate\nuv pip install -U vllm --torch-backend auto"
      },
      "docker": {
        "command": "docker pull vllm/vllm-openai:latest"
      }
    }
  },
  "features": {
    "tool_calling": {
      "description": "Enable tool calling. V4.1 emits DSML tag blocks rather than JSON fences.",
      "args": [
        "--tool-call-parser",
        "deepseek_v41",
        "--enable-auto-tool-choice"
      ]
    },
    "reasoning": {
      "description": "Enable thinking mode with the DeepSeek V4.1 reasoning parser.",
      "args": [
        "--reasoning-parser",
        "deepseek_v41"
      ]
    },
    "spec_decoding": {
      "description": "DSpark multi-token drafting, 5 tokens per round (the trained block size). On NVIDIA, adaptive verification scores each (request, position) slot and only high-scoring slots are verified, up to a startup-profiled compute budget. On AMD, vLLM currently refuses that flag, so the generated command sets enable_adaptive_verification:false and verifies the full 5-token block. Remove the AMD override only after a serve with the true flag actually starts on ROCm.",
      "args": [
        "--speculative-config",
        "{\"method\":\"dspark\",\"num_speculative_tokens\":5,\"draft_sample_method\":\"probabilistic\",\"rejection_sample_method\":\"block\",\"enable_adaptive_verification\":true}"
      ],
      "hardware_overrides": {
        "amd": {
          "args": [
            "--speculative-config",
            "{\"method\":\"dspark\",\"num_speculative_tokens\":5,\"draft_sample_method\":\"probabilistic\",\"rejection_sample_method\":\"block\",\"enable_adaptive_verification\":false}"
          ]
        },
        "dgx_station_gb300": {
          "args": [
            "--speculative-config",
            "{\"method\":\"dspark\",\"num_speculative_tokens\":5,\"num_speculative_tokens_per_batch_size\":[[1,4,5],[5,24,1]]}"
          ]
        },
        "ascend_910b": {
          "args": [
            "--speculative-config",
            "{\"num_speculative_tokens\":5,\"method\":\"dspark\"}"
          ]
        },
        "ascend_950dt": {
          "args": [
            "--speculative-config",
            "{\"num_speculative_tokens\":5,\"method\":\"dspark\"}"
          ]
        }
      }
    },
    "text_only": {
      "description": "Skip loading the vision encoder for text-only workloads — frees VRAM for KV cache. Mutually exclusive with encoder_parallel.",
      "args": [
        "--language-model-only"
      ]
    },
    "encoder_parallel": {
      "description": "Run the vision encoder in data-parallel mode — avoids TP comm overhead on the small encoder. Mutually exclusive with text_only.",
      "args": [
        "--mm-encoder-tp-mode",
        "data"
      ]
    }
  },
  "opt_in_features": [
    "spec_decoding",
    "text_only"
  ],
  "variants": {
    "default": {
      "model_id": "deepseek-ai/DeepSeek-V4.1-Flash-1017",
      "label": "FP8 (1017)",
      "precision": "fp8",
      "vram_minimum_gb": 614,
      "description": "DeepSeek-V4.1-Flash-1017 (2026-10-17): native mixed checkpoint (MXFP4 MoE experts, MXFP8 block-quantized dense weights, UE8M0 scales) with updated weights — stronger reasoning, coding, agentic and visual results, and shorter outputs.",
      "hardware_overrides": {
        "h100": {
          "extra_args": [
            "--engram-config",
            "{\"cpu_offload\":true}",
            "--max-num-batched-tokens",
            "4096"
          ],
          "extra_env": {
            "VLLM_USE_V2_MODEL_RUNNER": "1",
            "PYTORCH_CUDA_ALLOC_CONF": "expandable_segments:True"
          }
        },
        "mi325x": {
          "install": {
            "pip": false
          }
        },
        "mi355x": {
          "install": {
            "pip": false
          }
        },
        "dgx_station_gb300": {
          "vram_minimum_gb": 244,
          "extra_args": [
            "--offload-backend",
            "uva",
            "--cpu-offload-gb",
            "60",
            "--cpu-offload-params",
            "routed_experts.w13_weight",
            "routed_experts.w2_weight",
            "--engram-config",
            "{\"cpu_offload\":true}",
            "--gpu-memory-utilization",
            "0.97",
            "--max-model-len",
            "1048576",
            "--max-num-batched-tokens",
            "8192",
            "--long-prefill-token-threshold",
            "6144",
            "--compilation-config",
            "{\"cudagraph_capture_sizes\":[1,2,4,6,8,12,16,18,24,32,40,48,64,96,128]}"
          ]
        },
        "ascend_950dt": {
          "docker_image": "quay.io/ascend/vllm-ascend:v0.32.0rc1-a5",
          "docker_shm_size": "512g",
          "docker_serve_command": "vllm serve",
          "install": {
            "pip": false
          },
          "extra_args": [
            "--served-model-name",
            "dsv41",
            "--max-model-len",
            "1048576",
            "--max-num-seqs",
            "64",
            "--gpu-memory-utilization",
            "0.90",
            "--block-size",
            "128",
            "--quantization",
            "deepseek_v4_fp8",
            "--engram-config",
            "{\"cpu_offload\":true,\"dp_shared_memory\":true}",
            "--trust-remote-code"
          ],
          "extra_env": {
            "VLLM_USE_V2_MODEL_RUNNER": "1",
            "HCCL_OP_EXPANSION_MODE": "CCU_SCHED",
            "HCCL_BUFFSIZE": "1600",
            "HCCL_CONNECT_TIMEOUT": "1200",
            "HCCL_EXEC_TIMEOUT": "2040",
            "VLLM_EXECUTE_MODEL_TIMEOUT_SECONDS": "3000",
            "OMP_PROC_BIND": "false",
            "OMP_NUM_THREADS": "10",
            "PYTORCH_NPU_ALLOC_CONF": "expandable_segments:True"
          }
        }
      },
      "tp": {
        "ascend_950dt": 1
      },
      "json": "/deepseek-ai/DeepSeek-V4.1-Flash-1017.json"
    },
    "fp8": {
      "label": "FP8 (0909)",
      "precision": "fp8",
      "vram_minimum_gb": 614,
      "description": "Launch checkpoint (2026-09-09), superseded by 1017 — kept for reproducing earlier results. Same mixed MXFP4/MXFP8 format.",
      "hardware_overrides": {
        "h100": {
          "extra_args": [
            "--engram-config",
            "{\"cpu_offload\":true}",
            "--max-num-batched-tokens",
            "4096"
          ],
          "extra_env": {
            "VLLM_USE_V2_MODEL_RUNNER": "1",
            "PYTORCH_CUDA_ALLOC_CONF": "expandable_segments:True"
          }
        },
        "mi325x": {
          "install": {
            "pip": false
          }
        },
        "mi355x": {
          "install": {
            "pip": false
          }
        },
        "dgx_station_gb300": {
          "vram_minimum_gb": 244,
          "extra_args": [
            "--offload-backend",
            "uva",
            "--cpu-offload-gb",
            "60",
            "--cpu-offload-params",
            "routed_experts.w13_weight",
            "routed_experts.w2_weight",
            "--engram-config",
            "{\"cpu_offload\":true}",
            "--gpu-memory-utilization",
            "0.97",
            "--max-model-len",
            "1048576",
            "--max-num-batched-tokens",
            "8192",
            "--long-prefill-token-threshold",
            "6144",
            "--compilation-config",
            "{\"cudagraph_capture_sizes\":[1,2,4,6,8,12,16,18,24,32,40,48,64,96,128]}"
          ]
        },
        "ascend_950dt": {
          "docker_image": "quay.io/ascend/vllm-ascend:v0.32.0rc1-a5",
          "docker_shm_size": "512g",
          "docker_serve_command": "vllm serve",
          "install": {
            "pip": false
          },
          "extra_args": [
            "--served-model-name",
            "dsv41",
            "--max-model-len",
            "1048576",
            "--max-num-seqs",
            "64",
            "--gpu-memory-utilization",
            "0.90",
            "--block-size",
            "128",
            "--quantization",
            "deepseek_v4_fp8",
            "--engram-config",
            "{\"cpu_offload\":true,\"dp_shared_memory\":true}",
            "--trust-remote-code"
          ],
          "extra_env": {
            "VLLM_USE_V2_MODEL_RUNNER": "1",
            "HCCL_OP_EXPANSION_MODE": "CCU_SCHED",
            "HCCL_BUFFSIZE": "1600",
            "HCCL_CONNECT_TIMEOUT": "1200",
            "HCCL_EXEC_TIMEOUT": "2040",
            "VLLM_EXECUTE_MODEL_TIMEOUT_SECONDS": "3000",
            "OMP_PROC_BIND": "false",
            "OMP_NUM_THREADS": "10",
            "PYTORCH_NPU_ALLOC_CONF": "expandable_segments:True"
          }
        }
      }
    },
    "ascend_w4a8": {
      "model_id": "Eco-Tech/DeepSeek-V4.1-Flash-1017-w4a8",
      "label": "W4A8 (Ascend A2)",
      "precision": "int4",
      "vram_minimum_gb": 529,
      "description": "ModelSlim INT4 W4A8 for one prefill node (DP2 x TP1 x PCP4) and one decode node (DP8 x TP1) of Atlas 800I A2, 8x Ascend 910B4 (64 GB) each. Requires --quantization ascend.",
      "supported_hardware": [
        "ascend_910b"
      ],
      "tp": {
        "ascend_910b": 1
      },
      "min_vllm_version": "0.32.0",
      "extra_args": [
        "--quantization",
        "ascend",
        "--trust-remote-code",
        "--block-size",
        "128",
        "--max-model-len",
        "1048576",
        "--gpu-memory-utilization",
        "0.97",
        "--safetensors-load-strategy",
        "lazy",
        "--enable-expert-parallel",
        "--seed",
        "1024",
        "--host",
        "0.0.0.0",
        "--served-model-name",
        "dsv41",
        "--reasoning-parser",
        "deepseek_v41",
        "--tool-call-parser",
        "deepseek_v41",
        "--enable-auto-tool-choice",
        "--engram-config",
        "{\"cpu_offload\":true,\"dp_shared_memory\":true}"
      ],
      "extra_env": {
        "PYTORCH_NPU_ALLOC_CONF": "expandable_segments:True",
        "HCCL_OP_EXPANSION_MODE": "AIV",
        "HCCL_CONNECT_TIMEOUT": "1200",
        "VLLM_USE_V2_MODEL_RUNNER": "1",
        "VLLM_EXECUTE_MODEL_TIMEOUT_SECONDS": "30000",
        "VLLM_ENGINE_READY_TIMEOUT_S": "360000",
        "OMP_NUM_THREADS": "1",
        "TASK_QUEUE_ENABLE": "1",
        "PYTHONHASHSEED": "0"
      },
      "hardware_overrides": {
        "ascend_910b": {
          "docker_image": "quay.io/ascend/vllm-ascend:v0.32.0rc1",
          "docker_shm_size": "512g",
          "docker_serve_command": "vllm serve",
          "install": {
            "pip": false
          }
        }
      },
      "json": "/Eco-Tech/DeepSeek-V4.1-Flash-1017-w4a8.json"
    }
  },
  "kv_offload_support": {
    "offloading_cpu": "verified",
    "offloading_fs": "verified",
    "umbp": "verified"
  },
  "strategy_hardware": {
    "single_node_tep": {
      "dgx_station_gb300": "unsupported",
      "npu": "unsupported"
    },
    "single_node_dep": {
      "dgx_station_gb300": "unsupported",
      "npu": "unsupported"
    },
    "single_node_tp": {
      "npu": "unsupported"
    },
    "multi_node_tp": {
      "npu": "unsupported"
    },
    "multi_node_tep": {
      "npu": "unsupported"
    },
    "multi_node_dep": {
      "npu": "unsupported"
    },
    "pd_cluster": {
      "npu": "unsupported",
      "ascend_910b": "supported",
      "ascend_950dt": "supported"
    }
  },
  "hardware_overrides": {
    "amd": {
      "extra_args": [
        "--gpu-memory-utilization",
        "0.9",
        "--moe-backend",
        "aiter"
      ],
      "extra_env": {
        "VLLM_ROCM_USE_AITER": "1",
        "VLLM_ROCM_USE_AITER_MOE": "1",
        "AITER_TRITON_LOG_LEVEL": "ERROR",
        "VLLM_USE_BREAKABLE_CUDAGRAPH": "1"
      }
    }
  },
  "presets": {
    "b200_agentx_tp": {
      "label": "AgentX TP",
      "hardware": "b200",
      "strategy": "single_node_tp",
      "variants": [
        "fp8",
        "default"
      ],
      "workload": "Agentic (InferenceX AgentX)",
      "description": "TP4 for concurrency 4 to 24 with capped decode batches (max-num-active-seqs), prefill admitted on an interval, FlashInfer sparse MLA (FlashMLA at 16) and THP-backed Engram host tables.",
      "source": {
        "label": "InferenceX #4786",
        "href": "https://github.com/SemiAnalysisAI/InferenceX/pull/4786",
        "key": "dsv41flash-fp4-b200-vllm-agentic-dspark",
        "revision": "becc63b53"
      },
      "image": "vllm/vllm-openai:cu134-nightly-40941f2c4ba96fba0a7e282a5355e89cd74d9ac5@sha256:d2a073f6b4da63907c8374313f66407798035649cc4b574287df6d20050753c6",
      "select": {
        "frontend": "rust",
        "features": {
          "spec_decoding": true,
          "text_only": true,
          "encoder_parallel": false
        }
      },
      "args": [
        "--attention-config",
        "{\"backend\":\"FLASHINFER_MLA_SPARSE_DSV41\",\"indexer_kv_dtype\":\"mxfp4\",\"indexer_sparse_logits\":true}",
        "--kernel-config",
        "{\"enable_flashinfer_autotune\":true}",
        "--gpu-memory-utilization",
        "0.93",
        "--engram-config",
        "{\"cpu_offload\":true,\"use_thp\":true}"
      ],
      "env": {
        "VLLM_USE_V2_MODEL_RUNNER": "1",
        "VLLM_ENGINE_READY_TIMEOUT_S": "7200"
      },
      "json_args": {
        "--speculative-config": {
          "enable_adaptive_verification": false
        }
      },
      "tp": 4,
      "points": {
        "tp4_c4": {
          "label": "4",
          "concurrency": 4,
          "default": true,
          "description": "The Engram tables stay on the GPU, with the deep_select indexer top-k.",
          "args": [
            "--engram-config",
            "{\"cpu_offload\":false}",
            "--kernel-config",
            "{\"enable_flashinfer_autotune\":true,\"sparse_indexer_topk_backend\":\"deep_select\"}",
            "--max-num-seqs",
            "8",
            "--max-num-active-seqs",
            "1",
            "--prefill-schedule-interval",
            "16",
            "--max-num-batched-tokens",
            "4096",
            "--compilation-config",
            "{\"mode\":\"VLLM_COMPILE\",\"cudagraph_mode\":\"FULL_AND_PIECEWISE\",\"cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2046,3072,4092]}",
            "--max-cudagraph-capture-size",
            "4092"
          ]
        },
        "tp4_c10": {
          "label": "10",
          "concurrency": 10,
          "args": [
            "--max-num-seqs",
            "16",
            "--max-num-active-seqs",
            "2",
            "--prefill-schedule-interval",
            "96",
            "--max-num-batched-tokens",
            "8192",
            "--compilation-config",
            "{\"mode\":\"VLLM_COMPILE\",\"cudagraph_mode\":\"FULL_AND_PIECEWISE\",\"cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2046,3072,4092,6144,8190]}",
            "--max-cudagraph-capture-size",
            "8190"
          ]
        },
        "tp4_c16": {
          "label": "16",
          "concurrency": 16,
          "description": "FlashMLA sparse attention instead of FlashInfer.",
          "args": [
            "--attention-config",
            "{\"backend\":\"FLASHMLA_SPARSE_DSV41\",\"indexer_kv_dtype\":\"mxfp4\",\"indexer_sparse_logits\":true}",
            "--max-num-seqs",
            "64",
            "--max-num-active-seqs",
            "3",
            "--prefill-schedule-interval",
            "96",
            "--max-num-batched-tokens",
            "8192",
            "--compilation-config",
            "{\"mode\":\"VLLM_COMPILE\",\"cudagraph_mode\":\"FULL_AND_PIECEWISE\",\"cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2046,3072,4092,6144,8190],\"decoder_replay_cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2048,2304,2560,2816,3072,3328,3584,3840,4096]}",
            "--max-cudagraph-capture-size",
            "8190"
          ]
        },
        "tp4_c24": {
          "label": "24",
          "concurrency": 24,
          "args": [
            "--max-num-seqs",
            "64",
            "--max-num-active-seqs",
            "4",
            "--prefill-schedule-interval",
            "96",
            "--max-num-batched-tokens",
            "8192",
            "--compilation-config",
            "{\"mode\":\"VLLM_COMPILE\",\"cudagraph_mode\":\"FULL_AND_PIECEWISE\",\"cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2046,3072,4092,6144,8190],\"decoder_replay_cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2048,2304,2560,2816,3072,3328,3584,3840,4096]}",
            "--max-cudagraph-capture-size",
            "8190"
          ]
        }
      },
      "json": "/deepseek-ai/DeepSeek-V4.1-Flash/presets/b200_agentx_tp.json"
    },
    "b200_agentx_dep": {
      "label": "AgentX DEP",
      "hardware": "b200",
      "strategy": "single_node_dep",
      "variants": [
        "fp8",
        "default"
      ],
      "workload": "Agentic (InferenceX AgentX)",
      "description": "DEP4 at concurrency 66 and DEP8 at 224 to 576: DeepGEMM MegaMoE, FlashMLA MegaAttention, GPU-resident Engram tables shared across DP ranks, and per-point prefill budgets and KV pools, behind a consistent-hash vLLM Router.",
      "source": {
        "label": "InferenceX #4786",
        "href": "https://github.com/SemiAnalysisAI/InferenceX/pull/4786",
        "key": "dsv41flash-fp4-b200-vllm-agentic-dspark",
        "revision": "becc63b53"
      },
      "image": "vllm/vllm-openai:cu134-nightly-40941f2c4ba96fba0a7e282a5355e89cd74d9ac5@sha256:d2a073f6b4da63907c8374313f66407798035649cc4b574287df6d20050753c6",
      "select": {
        "frontend": "rust",
        "features": {
          "spec_decoding": true,
          "text_only": true,
          "encoder_parallel": false
        }
      },
      "args": [
        "--enable-cumem-allocator",
        "--enable-ep-weight-filter",
        "--attention-config",
        "{\"backend\":\"FLASHMLA_MEGA_ATTN_DSV41\",\"indexer_kv_dtype\":\"mxfp4\",\"indexer_sparse_logits\":true,\"sparse_mla_prefill_workspace_factor\":4}",
        "--kernel-config",
        "{\"enable_flashinfer_autotune\":true,\"moe_backend\":\"deep_gemm_mega_moe\",\"sparse_indexer_topk_backend\":\"deep_select\"}",
        "--engram-config",
        "{\"cpu_offload\":false,\"embedding_across_dp\":true}",
        "--gpu-memory-utilization",
        "0.93",
        "--max-num-seqs",
        "128",
        "--prefill-schedule-interval",
        "96",
        "--compilation-config",
        "{\"mode\":\"VLLM_COMPILE\",\"cudagraph_mode\":\"FULL_AND_PIECEWISE\",\"cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2046,3072,4092,6144,8190],\"decoder_replay_cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2048,2304,2560,2816,3072,3328,3584,3840,4096]}",
        "--max-cudagraph-capture-size",
        "8190"
      ],
      "env": {
        "VLLM_USE_V2_MODEL_RUNNER": "1",
        "VLLM_ENGINE_READY_TIMEOUT_S": "7200",
        "VLLM_RPC_TIMEOUT": "600000",
        "VLLM_ALLREDUCE_USE_SYMM_MEM": "0",
        "VLLM_RANDOMIZE_DP_DUMMY_INPUTS": "1",
        "NCCL_CUMEM_ENABLE": "1",
        "PYTORCH_CUDA_ALLOC_CONF": "expandable_segments:True"
      },
      "json_args": {
        "--speculative-config": {
          "enable_adaptive_verification": false
        }
      },
      "points": {
        "dep4_c66": {
          "label": "66 (DEP4)",
          "concurrency": 66,
          "default": true,
          "args": [
            "--data-parallel-size",
            "4",
            "--max-num-batched-tokens",
            "32768",
            "--kv-cache-memory-bytes",
            "12884901888",
            "--long-prefill-token-threshold",
            "3072"
          ]
        },
        "dep8_c224": {
          "label": "224 (DEP8)",
          "concurrency": 224,
          "args": [
            "--data-parallel-size",
            "8",
            "--max-num-batched-tokens",
            "65536",
            "--kv-cache-memory-bytes",
            "17179869184",
            "--long-prefill-token-threshold",
            "8192"
          ]
        },
        "dep8_c256": {
          "label": "256 (DEP8)",
          "concurrency": 256,
          "args": [
            "--data-parallel-size",
            "8",
            "--max-num-batched-tokens",
            "65536",
            "--kv-cache-memory-bytes",
            "17179869184",
            "--long-prefill-token-threshold",
            "8192"
          ]
        },
        "dep8_c384": {
          "label": "384 (DEP8)",
          "concurrency": 384,
          "args": [
            "--data-parallel-size",
            "8",
            "--max-num-batched-tokens",
            "65536",
            "--kv-cache-memory-bytes",
            "34359738368",
            "--long-prefill-token-threshold",
            "8192"
          ]
        },
        "dep8_c512": {
          "label": "512 (DEP8)",
          "concurrency": 512,
          "args": [
            "--data-parallel-size",
            "8",
            "--max-num-batched-tokens",
            "65536",
            "--kv-cache-memory-bytes",
            "42949672960",
            "--long-prefill-token-threshold",
            "8192"
          ]
        },
        "dep8_c544": {
          "label": "544 (DEP8)",
          "concurrency": 544,
          "args": [
            "--data-parallel-size",
            "8",
            "--max-num-batched-tokens",
            "65536",
            "--kv-cache-memory-bytes",
            "47244640256",
            "--long-prefill-token-threshold",
            "8192"
          ]
        },
        "dep8_c576": {
          "label": "576 (DEP8)",
          "concurrency": 576,
          "args": [
            "--data-parallel-size",
            "8",
            "--max-num-batched-tokens",
            "65536",
            "--kv-cache-memory-bytes",
            "51539607552",
            "--long-prefill-token-threshold",
            "8192"
          ]
        }
      },
      "runbook": "The lane fronts the server with vLLM Router 0.1.14 (`--policy consistent_hash`,\n`--intra-node-data-parallel-size` equal to the server's DP size, as on the router tab),\nplus `--request-timeout-secs 14400` so long agentic requests outlive the 1800 s default\nand `--disable-retries` so a failed request is not replayed.\n\nThe DEP4 point uses four of the node's eight GPUs, so run one server per GPU group,\neach behind its own router. The lane also exports `VLLM_LOG_STATS_INTERVAL=1` and\n`VLLM_SERVER_DEV_MODE=1` for its measurement harness; serving does not need them.\n",
      "json": "/deepseek-ai/DeepSeek-V4.1-Flash/presets/b200_agentx_dep.json"
    },
    "gb200_agentx_tp": {
      "label": "AgentX TP",
      "hardware": "gb200",
      "strategy": "single_node_tp",
      "variants": [
        "fp8",
        "default"
      ],
      "workload": "Agentic (InferenceX AgentX)",
      "description": "TP4 for concurrency 4 to 16 with capped decode batches (max-num-active-seqs), prefill admitted on an interval, FlashInfer sparse MLA and THP-backed Engram host tables.",
      "source": {
        "label": "InferenceX #4783",
        "href": "https://github.com/SemiAnalysisAI/InferenceX/pull/4783",
        "key": "dsv41flash-fp4-gb200-vllm-agentic-dspark",
        "revision": "2610b3f"
      },
      "image": "vllm/vllm-openai:cu134-nightly-40941f2c4ba96fba0a7e282a5355e89cd74d9ac5@sha256:ab9450628edc1909b5f242be837822e09a2eb9bdd25fea169f69871a59fa6424",
      "select": {
        "frontend": "rust",
        "features": {
          "spec_decoding": true,
          "text_only": true,
          "encoder_parallel": false
        }
      },
      "args": [
        "--attention-config",
        "{\"backend\":\"FLASHINFER_MLA_SPARSE_DSV41\",\"indexer_kv_dtype\":\"mxfp4\",\"indexer_sparse_logits\":true}",
        "--kernel-config",
        "{\"enable_flashinfer_autotune\":true}",
        "--gpu-memory-utilization",
        "0.93",
        "--engram-config",
        "{\"cpu_offload\":true,\"use_thp\":true}"
      ],
      "env": {
        "VLLM_USE_V2_MODEL_RUNNER": "1",
        "VLLM_ENGINE_READY_TIMEOUT_S": "7200"
      },
      "json_args": {
        "--speculative-config": {
          "enable_adaptive_verification": false
        }
      },
      "tp": 4,
      "points": {
        "tp4_c4": {
          "label": "4",
          "concurrency": 4,
          "default": true,
          "description": "Adds the deep_select indexer top-k.",
          "args": [
            "--kernel-config",
            "{\"enable_flashinfer_autotune\":true,\"sparse_indexer_topk_backend\":\"deep_select\"}",
            "--max-num-seqs",
            "8",
            "--max-num-active-seqs",
            "1",
            "--prefill-schedule-interval",
            "16",
            "--max-num-batched-tokens",
            "4096",
            "--compilation-config",
            "{\"mode\":\"VLLM_COMPILE\",\"cudagraph_mode\":\"FULL_AND_PIECEWISE\",\"cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2046,3072,4092]}",
            "--max-cudagraph-capture-size",
            "4092"
          ]
        },
        "tp4_c10": {
          "label": "10",
          "concurrency": 10,
          "args": [
            "--max-num-seqs",
            "16",
            "--max-num-active-seqs",
            "2",
            "--prefill-schedule-interval",
            "96",
            "--max-num-batched-tokens",
            "8192",
            "--compilation-config",
            "{\"mode\":\"VLLM_COMPILE\",\"cudagraph_mode\":\"FULL_AND_PIECEWISE\",\"cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2046,3072,4092,6144,8190]}",
            "--max-cudagraph-capture-size",
            "8190"
          ]
        },
        "tp4_c16": {
          "label": "16",
          "concurrency": 16,
          "args": [
            "--max-num-seqs",
            "64",
            "--max-num-active-seqs",
            "3",
            "--prefill-schedule-interval",
            "96",
            "--max-num-batched-tokens",
            "8192",
            "--compilation-config",
            "{\"mode\":\"VLLM_COMPILE\",\"cudagraph_mode\":\"FULL_AND_PIECEWISE\",\"cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2046,3072,4092,6144,8190],\"decoder_replay_cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2048,2304,2560,2816,3072,3328,3584,3840,4096]}",
            "--max-cudagraph-capture-size",
            "8190"
          ]
        }
      },
      "json": "/deepseek-ai/DeepSeek-V4.1-Flash/presets/gb200_agentx_tp.json"
    },
    "gb200_agentx_dep": {
      "label": "AgentX DEP",
      "hardware": "gb200",
      "strategy": "single_node_dep",
      "variants": [
        "fp8",
        "default"
      ],
      "workload": "Agentic (InferenceX AgentX)",
      "description": "DEP4 (TP1 x DP4 + EP4) for concurrency 64 to 256: DeepGEMM MegaMoE, FlashMLA MegaAttention, deep_select indexer top-k, Engram host tables shared across DP ranks, and per-point prefill budgets and KV pools, behind a consistent-hash vLLM Router.",
      "source": {
        "label": "InferenceX #4783",
        "href": "https://github.com/SemiAnalysisAI/InferenceX/pull/4783",
        "key": "dsv41flash-fp4-gb200-vllm-agentic-dspark",
        "revision": "2610b3f"
      },
      "image": "vllm/vllm-openai:cu134-nightly-40941f2c4ba96fba0a7e282a5355e89cd74d9ac5@sha256:ab9450628edc1909b5f242be837822e09a2eb9bdd25fea169f69871a59fa6424",
      "select": {
        "frontend": "rust",
        "features": {
          "spec_decoding": true,
          "text_only": true,
          "encoder_parallel": false
        }
      },
      "args": [
        "--data-parallel-size",
        "4",
        "--enable-cumem-allocator",
        "--enable-ep-weight-filter",
        "--numa-bind",
        "--numa-bind-nodes",
        "0",
        "0",
        "1",
        "1",
        "--attention-config",
        "{\"backend\":\"FLASHMLA_MEGA_ATTN_DSV41\",\"indexer_kv_dtype\":\"mxfp4\",\"indexer_sparse_logits\":true,\"sparse_mla_prefill_workspace_factor\":4}",
        "--kernel-config",
        "{\"enable_flashinfer_autotune\":true,\"moe_backend\":\"deep_gemm_mega_moe\",\"sparse_indexer_topk_backend\":\"deep_select\"}",
        "--engram-config",
        "{\"cpu_offload\":true,\"embedding_across_dp\":true,\"use_thp\":false}",
        "--gpu-memory-utilization",
        "0.93",
        "--max-num-seqs",
        "128",
        "--prefill-schedule-interval",
        "96",
        "--compilation-config",
        "{\"mode\":\"VLLM_COMPILE\",\"cudagraph_mode\":\"FULL_AND_PIECEWISE\",\"cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2046,3072,4092,6144,8190],\"decoder_replay_cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2048,2304,2560,2816,3072,3328,3584,3840,4096]}",
        "--max-cudagraph-capture-size",
        "8190"
      ],
      "env": {
        "VLLM_USE_V2_MODEL_RUNNER": "1",
        "VLLM_ENGINE_READY_TIMEOUT_S": "7200",
        "VLLM_RPC_TIMEOUT": "600000",
        "VLLM_ALLREDUCE_USE_SYMM_MEM": "0",
        "VLLM_RANDOMIZE_DP_DUMMY_INPUTS": "1",
        "NCCL_CUMEM_ENABLE": "1",
        "NCCL_MNNVL_ENABLE": "1",
        "NCCL_NVLS_ENABLE": "1",
        "PYTORCH_CUDA_ALLOC_CONF": "expandable_segments:True"
      },
      "json_args": {
        "--speculative-config": {
          "enable_adaptive_verification": false
        }
      },
      "points": {
        "c64": {
          "label": "64",
          "concurrency": 64,
          "default": true,
          "args": [
            "--max-num-batched-tokens",
            "65536",
            "--kv-cache-memory-bytes",
            "17179869184",
            "--long-prefill-token-threshold",
            "4096"
          ]
        },
        "c100": {
          "label": "100",
          "concurrency": 100,
          "args": [
            "--max-num-batched-tokens",
            "65536",
            "--kv-cache-memory-bytes",
            "17179869184",
            "--long-prefill-token-threshold",
            "8192"
          ]
        },
        "c136": {
          "label": "136",
          "concurrency": 136,
          "args": [
            "--max-num-batched-tokens",
            "57344",
            "--kv-cache-memory-bytes",
            "23622320128",
            "--long-prefill-token-threshold",
            "8192"
          ]
        },
        "c170": {
          "label": "170",
          "concurrency": 170,
          "args": [
            "--max-num-batched-tokens",
            "57344",
            "--kv-cache-memory-bytes",
            "23622320128",
            "--long-prefill-token-threshold",
            "8192"
          ]
        },
        "c256": {
          "label": "256",
          "concurrency": 256,
          "description": "Drops the sparse-MLA prefill workspace factor.",
          "args": [
            "--attention-config",
            "{\"backend\":\"FLASHMLA_MEGA_ATTN_DSV41\",\"indexer_kv_dtype\":\"mxfp4\",\"indexer_sparse_logits\":true}",
            "--max-num-batched-tokens",
            "49152",
            "--kv-cache-memory-bytes",
            "30064771072",
            "--long-prefill-token-threshold",
            "8192"
          ]
        }
      },
      "runbook": "The lane fronts the server with vLLM Router 0.1.14 (`--policy consistent_hash`,\n`--intra-node-data-parallel-size 4`, as on the router tab), plus\n`--request-timeout-secs 14400` so long agentic requests outlive the 1800 s default\nand `--disable-retries` so a failed request is not replayed.\n\n`--numa-bind` with `--numa-bind-nodes 0 0 1 1` pins each rank to its GPU's NUMA\nnode on the tray. The lane also exports `VLLM_LOG_STATS_INTERVAL=1` and\n`VLLM_SERVER_DEV_MODE=1` for its measurement harness; serving does not need them.\n",
      "json": "/deepseek-ai/DeepSeek-V4.1-Flash/presets/gb200_agentx_dep.json"
    },
    "b300_agentx_tp": {
      "label": "AgentX TP4",
      "hardware": "b300",
      "strategy": "single_node_tp",
      "variants": [
        "fp8",
        "default"
      ],
      "workload": "Agentic (InferenceX AgentX)",
      "description": "TP4 for concurrency 1 to 16 on the specialized decode image: latency-specialized decode steps, THP-backed Engram tables and FlashInfer autotuning.",
      "source": {
        "label": "InferenceX #4332",
        "href": "https://github.com/SemiAnalysisAI/InferenceX/pull/4332",
        "key": "dsv41flash-fp4-b300-vllm-agentic-dspark",
        "revision": "649dd5a"
      },
      "image": "vllm/vllm-openai:cu134-nightly-x86_64-dev-20261019-mk@sha256:2b9fc4b18d0aaabe4d5cad020d9270106472ebe65f5d3bc02c50526b8d9fd280",
      "select": {
        "frontend": "rust",
        "features": {
          "spec_decoding": true,
          "text_only": true,
          "encoder_parallel": false
        }
      },
      "tp": 4,
      "args": [
        "--kernel-config",
        "{\"enable_flashinfer_autotune\":true}",
        "--engram-config",
        "{\"cpu_offload\":true,\"use_thp\":true}",
        "--additional-config",
        "{\"decode_backend\":\"latency_specialized\"}"
      ],
      "env": {
        "VLLM_USE_V2_MODEL_RUNNER": "1",
        "VLLM_ENGINE_READY_TIMEOUT_S": "7200"
      },
      "json_args": {
        "--speculative-config": {
          "enable_adaptive_verification": false
        }
      },
      "points": {
        "c1": {
          "label": "1",
          "concurrency": 1,
          "args": [
            "--max-num-seqs",
            "1",
            "--max-num-batched-tokens",
            "4096",
            "--compilation-config",
            "{\"mode\":\"VLLM_COMPILE\",\"cudagraph_mode\":\"FULL_AND_PIECEWISE\",\"cudagraph_capture_sizes\":[5,6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2046,3072,4092]}",
            "--max-cudagraph-capture-size",
            "4092"
          ]
        },
        "c8": {
          "label": "8",
          "concurrency": 8,
          "default": true,
          "args": [
            "--max-num-seqs",
            "16",
            "--max-num-batched-tokens",
            "8192",
            "--prefill-schedule-interval",
            "160",
            "--compilation-config",
            "{\"mode\":\"VLLM_COMPILE\",\"cudagraph_mode\":\"FULL_AND_PIECEWISE\",\"cudagraph_capture_sizes\":[5,6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2046,3072,4092,6144,8190]}",
            "--max-cudagraph-capture-size",
            "8190"
          ]
        },
        "c16": {
          "label": "16",
          "concurrency": 16,
          "args": [
            "--max-num-seqs",
            "32",
            "--max-num-batched-tokens",
            "8192",
            "--prefill-schedule-interval",
            "128",
            "--compilation-config",
            "{\"mode\":\"VLLM_COMPILE\",\"cudagraph_mode\":\"FULL_AND_PIECEWISE\",\"cudagraph_capture_sizes\":[5,6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2046,3072,4092,6144,8190],\"decoder_replay_cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2048,2304,2560,2816,3072,3328,3584,3840,4096]}",
            "--max-cudagraph-capture-size",
            "8190"
          ]
        }
      },
      "runbook": "The image carries the specialized decode from\n[vllm-project/vllm#61868](https://github.com/vllm-project/vllm/pull/61868) (on main\nsince 2026-10-21) and its DSpark draft path from\n[vllm-project/vllm#61869](https://github.com/vllm-project/vllm/pull/61869) (open), so\n`decode_backend` needs this image or a build carrying both.\n",
      "json": "/deepseek-ai/DeepSeek-V4.1-Flash/presets/b300_agentx_tp.json"
    },
    "b300_agentx_dep": {
      "label": "AgentX DEP2",
      "hardware": "b300",
      "strategy": "single_node_dep",
      "variants": [
        "fp8",
        "default"
      ],
      "workload": "Agentic (InferenceX AgentX)",
      "description": "DEP2 for concurrency 8 to 64 with FlashInfer sparse MLA, and with MegaAttention and lazy host-KV offload at 128 and 192, behind a consistent-hash vLLM Router.",
      "source": {
        "label": "InferenceX #4332",
        "href": "https://github.com/SemiAnalysisAI/InferenceX/pull/4332",
        "key": "dsv41flash-fp4-b300-vllm-agentic-dspark",
        "revision": "649dd5a"
      },
      "image": "vllm/vllm-openai:cu134-nightly-x86_64-dev-20261019-mk@sha256:2b9fc4b18d0aaabe4d5cad020d9270106472ebe65f5d3bc02c50526b8d9fd280",
      "select": {
        "frontend": "rust",
        "features": {
          "spec_decoding": true,
          "text_only": true,
          "encoder_parallel": false
        }
      },
      "args": [
        "--data-parallel-size",
        "2",
        "--kernel-config",
        "{\"enable_flashinfer_autotune\":true,\"moe_backend\":\"deep_gemm_mega_moe\"}",
        "--engram-config",
        "{\"cpu_offload\":true,\"embedding_across_dp\":true}",
        "--attention-config",
        "{\"backend\":\"FLASHINFER_MLA_SPARSE_DSV41\",\"indexer_kv_dtype\":\"mxfp4\",\"indexer_sparse_logits\":true}",
        "--max-cudagraph-capture-size",
        "8190"
      ],
      "env": {
        "VLLM_USE_V2_MODEL_RUNNER": "1",
        "VLLM_ENGINE_READY_TIMEOUT_S": "7200"
      },
      "json_args": {
        "--speculative-config": {
          "enable_adaptive_verification": false
        }
      },
      "points": {
        "c8": {
          "label": "8",
          "concurrency": 8,
          "args": [
            "--max-num-seqs",
            "16",
            "--max-num-batched-tokens",
            "16384",
            "--prefill-schedule-interval",
            "80",
            "--compilation-config",
            "{\"mode\":\"VLLM_COMPILE\",\"cudagraph_mode\":\"FULL_AND_PIECEWISE\",\"cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2046,3072,4092,6144,8190]}"
          ]
        },
        "c16": {
          "label": "16",
          "concurrency": 16,
          "args": [
            "--max-num-seqs",
            "16",
            "--max-num-batched-tokens",
            "16384",
            "--prefill-schedule-interval",
            "80",
            "--compilation-config",
            "{\"mode\":\"VLLM_COMPILE\",\"cudagraph_mode\":\"FULL_AND_PIECEWISE\",\"cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2046,3072,4092,6144,8190]}"
          ]
        },
        "c32": {
          "label": "32",
          "concurrency": 32,
          "default": true,
          "args": [
            "--max-num-seqs",
            "32",
            "--max-num-batched-tokens",
            "16384",
            "--prefill-schedule-interval",
            "80",
            "--compilation-config",
            "{\"mode\":\"VLLM_COMPILE\",\"cudagraph_mode\":\"FULL_AND_PIECEWISE\",\"cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2046,3072,4092,6144,8190],\"decoder_replay_cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2048,2304,2560,2816,3072,3328,3584,3840,4096]}"
          ]
        },
        "c64": {
          "label": "64",
          "concurrency": 64,
          "args": [
            "--max-num-seqs",
            "64",
            "--max-num-batched-tokens",
            "32768",
            "--prefill-schedule-interval",
            "56",
            "--compilation-config",
            "{\"mode\":\"VLLM_COMPILE\",\"cudagraph_mode\":\"FULL_AND_PIECEWISE\",\"cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2046,3072,4092,6144,8190],\"decoder_replay_cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2048,2304,2560,2816,3072,3328,3584,3840,4096]}"
          ]
        },
        "kv_c128": {
          "label": "128 (host KV)",
          "concurrency": 128,
          "select": {
            "kv_offload": "simple"
          },
          "json_args": {
            "--kv-transfer-config": {
              "kv_connector_extra_config": {
                "cpu_bytes_to_use_per_rank": 53687091200,
                "lazy_offload": true
              }
            }
          },
          "args": [
            "--attention-config",
            "{\"backend\":\"FLASHMLA_MEGA_ATTN_DSV41\",\"indexer_kv_dtype\":\"mxfp4\",\"indexer_sparse_logits\":true}",
            "--max-num-seqs",
            "128",
            "--max-num-batched-tokens",
            "16384",
            "--prefill-schedule-interval",
            "32",
            "--compilation-config",
            "{\"mode\":\"VLLM_COMPILE\",\"cudagraph_mode\":\"FULL_AND_PIECEWISE\",\"cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2046,3072,4092,6144,8190],\"decoder_replay_cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2048,2304,2560,2816,3072,3328,3584,3840,4096]}"
          ]
        },
        "kv_c192": {
          "label": "192 (host KV)",
          "concurrency": 192,
          "select": {
            "kv_offload": "simple"
          },
          "json_args": {
            "--kv-transfer-config": {
              "kv_connector_extra_config": {
                "cpu_bytes_to_use_per_rank": 53687091200,
                "lazy_offload": true
              }
            }
          },
          "args": [
            "--attention-config",
            "{\"backend\":\"FLASHMLA_MEGA_ATTN_DSV41\",\"indexer_kv_dtype\":\"mxfp4\",\"indexer_sparse_logits\":true}",
            "--max-num-seqs",
            "192",
            "--max-num-batched-tokens",
            "16384",
            "--prefill-schedule-interval",
            "32",
            "--compilation-config",
            "{\"mode\":\"VLLM_COMPILE\",\"cudagraph_mode\":\"FULL_AND_PIECEWISE\",\"cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2046,3072,4092],\"decoder_replay_cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2048]}",
            "--max-cudagraph-capture-size",
            "4092"
          ]
        }
      },
      "runbook": "Uses the specialized decode image of **AgentX TP4** (the DEP2 points don't use the\nspecialized decode). The host-KV points offload 50 GiB per DP rank through the\nSimple CPU offload connector.\n\nThe lane fronts the server with vLLM Router 0.1.14 (`--policy consistent_hash`,\n`--intra-node-data-parallel-size` equal to the server's DP size, as on the router tab),\nplus `--request-timeout-secs 14400` so long agentic requests outlive the 1800 s default\nand `--disable-retries` so a failed request is not replayed.\n",
      "json": "/deepseek-ai/DeepSeek-V4.1-Flash/presets/b300_agentx_dep.json"
    },
    "mi325x_agentx": {
      "label": "AgentX TP8 / TP4 / TP2",
      "hardware": "mi325x",
      "strategy": "single_node_tp",
      "variants": [
        "fp8"
      ],
      "workload": "Agentic (InferenceX AgentX)",
      "description": "TP8 with resident Engram tables, TP4 with monokernel and host Engram, and TP2 with host Engram and smaller scheduler and graph budgets; six concurrency points per topology.",
      "source": {
        "label": "InferenceX #4617",
        "href": "https://github.com/SemiAnalysisAI/InferenceX/pull/4617",
        "key": "dsv41flash-fp4-mi325x-vllm-agentic-dspark",
        "revision": "7c375027a3cd50f63153222fa6eb7069ee86d3b4"
      },
      "image": "vllm/vllm-openai-rocm:nightly-rocm100-edad8b03c5285a1c12e7e4f83c1af709b319a01b@sha256:009169c114af5b15e25eddc808afb3c1fc3f12c94e746472b16f39fcf39cd716",
      "select": {
        "frontend": "rust",
        "features": {
          "tool_calling": true,
          "reasoning": true,
          "spec_decoding": true,
          "text_only": true,
          "encoder_parallel": false
        },
        "dcp": 1,
        "kv_offload": "off"
      },
      "args": [
        "--served-model-name",
        "deepseek-ai/DeepSeek-V4.1-Flash",
        "--max-model-len",
        "1048576",
        "--max-num-seqs",
        "128",
        "--max-num-batched-tokens",
        "16384",
        "--max-cudagraph-capture-size",
        "1024",
        "--disable-uvicorn-access-log",
        "--monokernel"
      ],
      "env": {
        "OMP_NUM_THREADS": "1",
        "PYTHONUNBUFFERED": "1"
      },
      "json_args": {
        "--speculative-config": {
          "num_speculative_tokens": 5,
          "draft_sample_method": "probabilistic",
          "rejection_sample_method": "block",
          "enable_adaptive_verification": false
        },
        "--compilation-config": {
          "cudagraph_mode": "FULL_DECODE_ONLY"
        }
      },
      "points": {
        "tp8_c1": {
          "label": "1 (TP8)",
          "concurrency": 1,
          "tp": 8,
          "remove_args": [
            "--monokernel"
          ],
          "json_args": {
            "--engram-config": {
              "cpu_offload": false
            }
          }
        },
        "tp8_c2": {
          "label": "2 (TP8)",
          "concurrency": 2,
          "tp": 8,
          "remove_args": [
            "--monokernel"
          ],
          "json_args": {
            "--engram-config": {
              "cpu_offload": false
            }
          }
        },
        "tp8_c4": {
          "label": "4 (TP8)",
          "concurrency": 4,
          "tp": 8,
          "remove_args": [
            "--monokernel"
          ],
          "json_args": {
            "--engram-config": {
              "cpu_offload": false
            }
          }
        },
        "tp8_c8": {
          "label": "8 (TP8)",
          "concurrency": 8,
          "tp": 8,
          "remove_args": [
            "--monokernel"
          ],
          "json_args": {
            "--engram-config": {
              "cpu_offload": false
            }
          }
        },
        "tp8_c16": {
          "label": "16 (TP8)",
          "concurrency": 16,
          "tp": 8,
          "remove_args": [
            "--monokernel"
          ],
          "json_args": {
            "--engram-config": {
              "cpu_offload": false
            }
          }
        },
        "tp8_c32": {
          "label": "32 (TP8)",
          "concurrency": 32,
          "tp": 8,
          "remove_args": [
            "--monokernel"
          ],
          "json_args": {
            "--engram-config": {
              "cpu_offload": false
            }
          }
        },
        "tp4_c1": {
          "label": "1 (TP4)",
          "concurrency": 1,
          "tp": 4
        },
        "tp4_c2": {
          "label": "2 (TP4)",
          "concurrency": 2,
          "tp": 4
        },
        "tp4_c4": {
          "label": "4 (TP4)",
          "concurrency": 4,
          "default": true,
          "tp": 4
        },
        "tp4_c8": {
          "label": "8 (TP4)",
          "concurrency": 8,
          "tp": 4
        },
        "tp4_c16": {
          "label": "16 (TP4)",
          "concurrency": 16,
          "tp": 4
        },
        "tp4_c32": {
          "label": "32 (TP4)",
          "concurrency": 32,
          "tp": 4
        },
        "tp2_c1": {
          "label": "1 (TP2)",
          "concurrency": 1,
          "tp": 2,
          "remove_args": [
            "--monokernel"
          ],
          "args": [
            "--max-num-seqs",
            "16",
            "--max-num-batched-tokens",
            "8192",
            "--max-cudagraph-capture-size",
            "512"
          ]
        },
        "tp2_c2": {
          "label": "2 (TP2)",
          "concurrency": 2,
          "tp": 2,
          "remove_args": [
            "--monokernel"
          ],
          "args": [
            "--max-num-seqs",
            "16",
            "--max-num-batched-tokens",
            "8192",
            "--max-cudagraph-capture-size",
            "512"
          ]
        },
        "tp2_c4": {
          "label": "4 (TP2)",
          "concurrency": 4,
          "tp": 2,
          "remove_args": [
            "--monokernel"
          ],
          "args": [
            "--max-num-seqs",
            "16",
            "--max-num-batched-tokens",
            "8192",
            "--max-cudagraph-capture-size",
            "512"
          ]
        },
        "tp2_c8": {
          "label": "8 (TP2)",
          "concurrency": 8,
          "tp": 2,
          "remove_args": [
            "--monokernel"
          ],
          "args": [
            "--max-num-seqs",
            "16",
            "--max-num-batched-tokens",
            "8192",
            "--max-cudagraph-capture-size",
            "512"
          ]
        },
        "tp2_c16": {
          "label": "16 (TP2)",
          "concurrency": 16,
          "tp": 2,
          "remove_args": [
            "--monokernel"
          ],
          "args": [
            "--max-num-seqs",
            "32",
            "--max-num-batched-tokens",
            "8192",
            "--max-cudagraph-capture-size",
            "512"
          ]
        },
        "tp2_c32": {
          "label": "32 (TP2)",
          "concurrency": 32,
          "tp": 2,
          "remove_args": [
            "--monokernel"
          ],
          "args": [
            "--max-num-seqs",
            "64",
            "--max-num-batched-tokens",
            "8192",
            "--max-cudagraph-capture-size",
            "512"
          ]
        }
      },
      "runbook": "These points serve the 0909 launch checkpoint with five-token DSpark and\nreal block verification. TP8 keeps Engram in HBM; TP4 and TP2 offload it\nto host memory. TP2 uses smaller scheduler, prefill and graph budgets.\nDecode uses full graphs, prefill runs eagerly, and decoder SWA bounded\nreplay keeps the pinned image's enabled default.\n\nThe TP4 monokernel runs eligible decode steps of at most 42 rows, then\nfalls back to the ordinary path for larger steps. On this image it also\nquantizes DSpark draft FFN inputs from BF16 to MXFP8. The profile records\nthe measured configuration; its [InferenceX draft-precision qualification](https://github.com/SemiAnalysisAI/InferenceX/blob/main/CONTRIBUTING.md#draft-model-precision)\nremains unresolved. TP8 and TP2 use the ordinary FFN path. Adaptive\nverification remains disabled for the gfx942 startup issue tracked in\n[vLLM #63816](https://github.com/vllm-project/vllm/pull/63816).\n\n[Run 40744174186](https://github.com/SemiAnalysisAI/InferenceX/actions/runs/40744174186)\npassed all 18 performance points and the TP8 c32 GSM8K evaluation at\n`7c375027a3cd`. The separate [TP4 c4 evaluation](https://github.com/SemiAnalysisAI/InferenceX/actions/runs/40718348873)\nat `3df335bfe629` confirmed active mono execution. Both GSM8K evaluations\nscored 97.42% strict exact match over 1,319 samples. The effective serving\nconfiguration is unchanged at reviewed source head `c8befe0ed1f0`.\n\nInferenceX throughput measurement separately substitutes synthetic\nacceptance length 3.51 from its committed DSpark thinking-on curve.\nThis control is excluded from the preset's serving and accuracy commands;\nthe generic Bench action is not an AgentX trace replay. Concurrency labels\nidentify the measured workload, while the generated sequence cap controls\nadmission and may queue additional sessions. No independent accuracy\nevaluation was performed at every concurrency or on the 1017 checkpoint.\n",
      "json": "/deepseek-ai/DeepSeek-V4.1-Flash/presets/mi325x_agentx.json"
    },
    "mi300x_agentx": {
      "label": "AgentX TP8 / TP4",
      "hardware": "mi300x",
      "strategy": "single_node_tp",
      "variants": [
        "fp8"
      ],
      "workload": "Agentic (InferenceX AgentX)",
      "description": "TP8 with resident Engram tables and TP4 with host Engram; six concurrency points per topology.",
      "source": {
        "label": "InferenceX #5058",
        "href": "https://github.com/SemiAnalysisAI/InferenceX/pull/5058",
        "key": "dsv41flash-fp4-mi300x-vllm-agentic-dspark",
        "revision": "3df6aeb375cc662c8613f77b9b4e22dadc5b4032"
      },
      "image": "vllm/vllm-openai-rocm:nightly-rocm100-f5d93296c8ec82b7e7dabdb308d24d43cb1907bf@sha256:1b1b0c7c62d8ba3503d4f2e448795ed00e261bc73ad681f6811c3690613c7084",
      "select": {
        "frontend": "rust",
        "features": {
          "tool_calling": true,
          "reasoning": true,
          "spec_decoding": true,
          "text_only": true,
          "encoder_parallel": false
        },
        "dcp": 1,
        "kv_offload": "off"
      },
      "args": [
        "--served-model-name",
        "deepseek-ai/DeepSeek-V4.1-Flash",
        "--max-model-len",
        "1048576",
        "--max-num-seqs",
        "128",
        "--max-num-batched-tokens",
        "8192",
        "--max-cudagraph-capture-size",
        "1024",
        "--disable-uvicorn-access-log"
      ],
      "env": {
        "OMP_NUM_THREADS": "1",
        "PYTHONUNBUFFERED": "1"
      },
      "json_args": {
        "--speculative-config": {
          "num_speculative_tokens": 5,
          "draft_sample_method": "probabilistic",
          "rejection_sample_method": "block",
          "enable_adaptive_verification": false
        },
        "--compilation-config": {
          "cudagraph_mode": "FULL_DECODE_ONLY"
        }
      },
      "points": {
        "tp8_c1": {
          "label": "1 (TP8)",
          "concurrency": 1,
          "tp": 8,
          "json_args": {
            "--engram-config": {
              "cpu_offload": false
            }
          }
        },
        "tp8_c2": {
          "label": "2 (TP8)",
          "concurrency": 2,
          "tp": 8,
          "json_args": {
            "--engram-config": {
              "cpu_offload": false
            }
          }
        },
        "tp8_c4": {
          "label": "4 (TP8)",
          "concurrency": 4,
          "tp": 8,
          "json_args": {
            "--engram-config": {
              "cpu_offload": false
            }
          }
        },
        "tp8_c8": {
          "label": "8 (TP8)",
          "concurrency": 8,
          "tp": 8,
          "json_args": {
            "--engram-config": {
              "cpu_offload": false
            }
          }
        },
        "tp8_c16": {
          "label": "16 (TP8)",
          "concurrency": 16,
          "tp": 8,
          "json_args": {
            "--engram-config": {
              "cpu_offload": false
            }
          }
        },
        "tp8_c32": {
          "label": "32 (TP8)",
          "concurrency": 32,
          "tp": 8,
          "json_args": {
            "--engram-config": {
              "cpu_offload": false
            }
          }
        },
        "tp4_c1": {
          "label": "1 (TP4)",
          "concurrency": 1,
          "tp": 4
        },
        "tp4_c2": {
          "label": "2 (TP4)",
          "concurrency": 2,
          "tp": 4
        },
        "tp4_c4": {
          "label": "4 (TP4)",
          "concurrency": 4,
          "default": true,
          "tp": 4
        },
        "tp4_c8": {
          "label": "8 (TP4)",
          "concurrency": 8,
          "tp": 4
        },
        "tp4_c16": {
          "label": "16 (TP4)",
          "concurrency": 16,
          "tp": 4
        },
        "tp4_c32": {
          "label": "32 (TP4)",
          "concurrency": 32,
          "tp": 4
        }
      },
      "runbook": "These points serve the 0909 launch checkpoint with five-token DSpark and\nreal block verification. TP8 keeps Engram in HBM; TP4 offloads it to host\nmemory. Decode uses full graphs and prefill runs eagerly. There is no TP2\nlane, and no monokernel point: its weight copies leave about 2.7 GiB a\nrank on this 192 GB part.\n\nDecoder SWA bounded replay keeps vLLM's enabled default. The pinned image\ncarries [vLLM #65249](https://github.com/vllm-project/vllm/pull/65249),\nwhich turns on prefix-cache SWA replay on CDNA3, so the sliding-window\ncache no longer takes part in prefix caching. The lane's earlier v0.33.0\nimage predates #65249 and ran with `--no-swa-bounded-replay`; keep that\nflag if you serve these points on such an image. There decoder replay\ntrims the sliding-window layers while their cache still takes part in\nprefix caching, so a later prefix hit can read window KV that was never\nwritten. Adaptive verification stays disabled, as in the measured lane.\n\n[Run 43350013915](https://github.com/SemiAnalysisAI/InferenceX/actions/runs/43350013915)\npassed all 12 performance points and the TP8 c32 GSM8K evaluation at\n`3df6aeb375cc`, with 97.65% strict exact match over 1,319 samples.\n\nInferenceX throughput measurement separately substitutes synthetic\nacceptance length 3.51 from its committed DSpark thinking-on curve.\nThis control is excluded from the preset's serving and accuracy commands;\nthe generic Bench action is not an AgentX trace replay. Concurrency labels\nidentify the measured workload, while the generated sequence cap controls\nadmission and may queue additional sessions. No independent accuracy\nevaluation was performed at every concurrency or on the 1017 checkpoint.\n",
      "json": "/deepseek-ai/DeepSeek-V4.1-Flash/presets/mi300x_agentx.json"
    },
    "mi355x_agentx": {
      "label": "AgentX TP",
      "hardware": "mi355x",
      "strategy": "single_node_tp",
      "variants": [
        "fp8",
        "default"
      ],
      "workload": "Agentic (InferenceX AgentX)",
      "description": "TP8 at concurrency 1 and TP4 at 1 and 2 with resident Engram tables, and TP2 at 1 to 64 with host Engram tables; mono decode on every point, with per-point sequence caps, prefill budgets and graph sizes tuned for AgentX interactivity.",
      "source": {
        "label": "InferenceX #5195",
        "href": "https://github.com/SemiAnalysisAI/InferenceX/pull/5195",
        "key": "dsv41flash-fp4-mi355x-vllm-agentic-dspark",
        "revision": "66f2a2d57073b65ef20e60d13c5ae5df687fd788"
      },
      "image": "vllm/vllm-openai-rocm:deepseek-v41-flash-8a13616@sha256:cea337b2136fa69aa5f02447dc75fa41fe3ca77857427924e1f2017f83d78d87",
      "select": {
        "frontend": "rust",
        "features": {
          "spec_decoding": true,
          "text_only": true,
          "encoder_parallel": false
        }
      },
      "args": [
        "--max-num-batched-tokens",
        "16384",
        "--max-cudagraph-capture-size",
        "1024"
      ],
      "env": {
        "VLLM_ROCM_QUICK_REDUCE_QUANTIZATION": "NONE",
        "OMP_NUM_THREADS": "1"
      },
      "json_args": {
        "--kernel-config": {
          "amd_kernels": {
            "enabled": false
          }
        }
      },
      "points": {
        "c1_tp8": {
          "label": "1 (TP8)",
          "concurrency": 1,
          "description": "The Engram tables stay in HBM at TP8.",
          "tp": 8,
          "args": [
            "--max-num-seqs",
            "1",
            "--max-num-batched-tokens",
            "32768",
            "--max-cudagraph-capture-size",
            "8"
          ],
          "json_args": {
            "--engram-config": {
              "cpu_offload": false
            }
          }
        },
        "c1_tp4": {
          "label": "1 (TP4)",
          "concurrency": 1,
          "description": "The Engram tables stay in HBM at TP4.",
          "tp": 4,
          "args": [
            "--max-num-seqs",
            "1",
            "--max-num-batched-tokens",
            "32768",
            "--max-cudagraph-capture-size",
            "8"
          ],
          "json_args": {
            "--engram-config": {
              "cpu_offload": false
            }
          }
        },
        "c2_tp4": {
          "label": "2 (TP4)",
          "concurrency": 2,
          "description": "The Engram tables stay in HBM at TP4.",
          "tp": 4,
          "args": [
            "--max-num-seqs",
            "1",
            "--max-num-batched-tokens",
            "32768",
            "--max-cudagraph-capture-size",
            "8"
          ],
          "json_args": {
            "--engram-config": {
              "cpu_offload": false
            }
          }
        },
        "c1_tp2": {
          "label": "1 (TP2)",
          "concurrency": 1,
          "args": [
            "--max-num-seqs",
            "1",
            "--max-num-batched-tokens",
            "32768",
            "--max-cudagraph-capture-size",
            "8"
          ]
        },
        "c2_tp2": {
          "label": "2 (TP2)",
          "concurrency": 2,
          "args": [
            "--max-num-seqs",
            "1",
            "--max-num-batched-tokens",
            "32768",
            "--max-cudagraph-capture-size",
            "8"
          ]
        },
        "c4_tp2": {
          "label": "4 (TP2)",
          "concurrency": 4,
          "args": [
            "--max-num-seqs",
            "1",
            "--max-num-batched-tokens",
            "32768",
            "--max-cudagraph-capture-size",
            "8"
          ]
        },
        "c8_tp2": {
          "label": "8 (TP2)",
          "concurrency": 8,
          "default": true,
          "args": [
            "--max-num-seqs",
            "2",
            "--max-num-batched-tokens",
            "8192",
            "--max-cudagraph-capture-size",
            "16"
          ]
        },
        "c16_tp2": {
          "label": "16 (TP2)",
          "concurrency": 16,
          "args": [
            "--max-num-seqs",
            "4",
            "--max-num-batched-tokens",
            "8192"
          ]
        },
        "c32_tp2": {
          "label": "32 (TP2)",
          "concurrency": 32,
          "args": [
            "--max-num-seqs",
            "8",
            "--max-num-batched-tokens",
            "8192"
          ]
        },
        "c64_tp2": {
          "label": "64 (TP2)",
          "concurrency": 64
        }
      },
      "runbook": "The MI355X AgentX TP lanes in [SemiAnalysis InferenceX](https://inferencex.semianalysis.com/) (`dsv41flash-fp4-mi355x-vllm-agentic-dspark` and, for TP8 at concurrency 1, `dsv41flash-fp4-mi355x-vllm-agentic-dspark-tp8-c1`, [SemiAnalysisAI/InferenceX#5195](https://github.com/SemiAnalysisAI/InferenceX/pull/5195)), one engine per point. They have been measured only on the image digest the preset pins. For concurrency 128 and above, see [AgentX DP](#preset-mi355x_agentx_dp).\n\n**Points.**\n- **Concurrency 1: TP8 with resident Engram tables.** One sequence at a time with 32768-token prefill chunks, as the TP4 concurrency-1 point. TP8 mono is a concurrency-1 configuration: [vllm-project/vllm#64101](https://github.com/vllm-project/vllm/pull/64101), which enables `--monokernel` at TP8, measured one TP8 server at concurrency 4 with 26% lower throughput than two TP4 replicas. Serve TP4 or TP2 replicas once more than one request is in flight.\n- **Concurrency 1 and 2: TP4 with resident Engram tables.** One sequence at a time with 32768-token prefill chunks and graphs up to 8.\n- **Concurrency 1 to 64: TP2 with the Engram tables in host memory**, where resident tables leave too little KV. Concurrency 1 to 4 run one sequence at a time with 32768-token prefill chunks and concurrency 8 caps at 2 sequences with 8192-token chunks. Concurrency 16 and 32 run 8192-token chunks and admit at most 4 and 8 sequences. Concurrency 16 to 64 capture graphs up to 1024.\n\nExcess sessions queue behind the sequence cap. These settings target AgentX p90 interactivity; assess queueing, TTFT, end-to-end latency and throughput for your traffic.\n\n**Serving config.**\n- **Mono decode** (`--monokernel`, from the MI355X TP profile) runs two persistent launches a layer on all 40 backbone layers and the three DSpark draft layers for decode steps of up to 48 rows. The TP8 server log shows it active for both.\n- **amd_kernels off.** The pinned image turns every amd_kernels route on by default, so the preset passes `--kernel-config '{\"amd_kernels\":{\"enabled\":false}}'` and the server log reads `amd_kernels routes: none`. These points serve the stock vLLM kernels they were tuned on.\n- **Spec decoding** uses the DSpark draft with 5 tokens, probabilistic drafting and block rejection, with adaptive verification off.\n\n**Precision.** BF16 all-reduce (`VLLM_ROCM_QUICK_REDUCE_QUANTIZATION=NONE`, overriding the INT4 of the MI355X TP profile) on every point, and the model's default `fp8_ds_mla` KV cache with an MXFP4 indexer cache.\n\n**Image.** `vllm/vllm-openai-rocm:deepseek-v41-flash-8a13616` is built from the vLLM branch `dsv41f-amd-kernels` at `8a136163b6`, which is main `647a76866` (2026-11-22) plus changes not yet merged; the DEP8 points of [AgentX DP](#preset-mi355x_agentx_dp) use them. The points here only need main: mono decode at TP8 needs #64101 (merged 2026-10-29).\n\n[InferenceX run 45218564620](https://github.com/SemiAnalysisAI/InferenceX/actions/runs/45218564620) ran all ten points on this image at `47e883bb9`. Its serving settings match the source revision `66f2a2d57`, which only moved the job's GPU counts to the gpus-per-worker form. TP2 concurrency 64 failed on its first attempt with no successful requests and passed on the second, which the table reports. Each point is one run.\n\n| Concurrency | Interactivity p50 / p90 (tokens/s/user) | Total tokens/s per GPU | TTFT p50 / p90 (s) |\n| --- | ---: | ---: | ---: |\n| 1 (TP8) | 812.0 / 789.0 | 4,050 | 0.11 / 0.46 |\n| 1 (TP4) | 766.9 / 745.9 | 8,053 | 0.11 / 0.60 |\n| 2 (TP4) | 763.6 / 736.3 | 8,391 | 0.12 / 1.02 |\n| 1 (TP2) | 606.7 / 593.6 | 15,022 | 0.13 / 0.84 |\n| 2 (TP2) | 607.0 / 591.1 | 15,069 | 0.12 / 1.07 |\n| 4 (TP2) | 607.7 / 588.9 | 20,008 | 0.12 / 3.19 |\n| 8 (TP2) | 495.1 / 459.0 | 32,663 | 0.12 / 1.76 |\n| 16 (TP2) | 379.4 / 310.9 | 57,913 | 0.10 / 2.03 |\n| 32 (TP2) | 238.6 / 192.7 | 112,868 | 0.15 / 8.74 |\n| 64 (TP2) | 105.4 / 70.4 | 193,353 | 0.15 / 0.53 |\n\nGSM8K exact match (strict) over 1319 questions, with block verification, was 0.975 at TP2 concurrency 64 in each of its two runs; the run has no TP4 or TP8 accuracy job. Throughput runs use DSpark's synthetic golden acceptance length (3.51); the preset keeps real block rejection for ordinary serving and accuracy evaluation.\n",
      "json": "/deepseek-ai/DeepSeek-V4.1-Flash/presets/mi355x_agentx.json"
    },
    "mi355x_agentx_dp": {
      "label": "AgentX DP",
      "hardware": "mi355x",
      "strategy": "single_node_dep",
      "variants": [
        "fp8",
        "default"
      ],
      "workload": "Agentic (InferenceX AgentX)",
      "description": "Attention DP2 with the MoE tensor-parallel across both ranks and host Engram tables at concurrency 128 to 384, with UMBP KV offload at 256 and 384; DEP8 with MoRI all-to-all, AITER MegaMoE, the amd_kernels routes and the prefill delayer at 256 to 1024. Per-tensor fp8 KV cache, behind a consistent-hash vLLM Router.",
      "source": {
        "label": "InferenceX #5195",
        "href": "https://github.com/SemiAnalysisAI/InferenceX/pull/5195",
        "key": "dsv41flash-fp4-mi355x-vllm-agentic-dspark-dep8",
        "revision": "66f2a2d57073b65ef20e60d13c5ae5df687fd788"
      },
      "image": "vllm/vllm-openai-rocm:deepseek-v41-flash-8a13616@sha256:cea337b2136fa69aa5f02447dc75fa41fe3ca77857427924e1f2017f83d78d87",
      "select": {
        "frontend": "rust",
        "features": {
          "spec_decoding": true,
          "text_only": true,
          "encoder_parallel": false
        },
        "kv_offload": "umbp"
      },
      "args": [
        "--attention-config",
        "{\"indexer_kv_dtype\":\"mxfp4\",\"indexer_sparse_logits\":true}",
        "--block-size",
        "128",
        "--kv-cache-dtype",
        "fp8_e4m3",
        "--max-cudagraph-capture-size",
        "1024"
      ],
      "env": {
        "VLLM_ROCM_USE_AITER_TRITON_SPARSE_MLA": "1",
        "VLLM_ROCM_QUICK_REDUCE_QUANTIZATION": "NONE",
        "OMP_NUM_THREADS": "1"
      },
      "points": {
        "c128_dp2": {
          "label": "128 (DP2)",
          "concurrency": 128,
          "select": {
            "kv_offload": "off"
          },
          "remove_args": [
            "--enable-expert-parallel"
          ],
          "args": [
            "--data-parallel-size",
            "2",
            "--engram-config",
            "{\"cpu_offload\":true}",
            "--prefill-schedule-interval",
            "11",
            "--max-num-batched-tokens",
            "16384"
          ],
          "json_args": {
            "--kernel-config": {
              "amd_kernels": {
                "enabled": false
              }
            }
          }
        },
        "c256_dp2_umbp": {
          "label": "256 (DP2, UMBP)",
          "concurrency": 256,
          "default": true,
          "remove_args": [
            "--enable-expert-parallel"
          ],
          "args": [
            "--data-parallel-size",
            "2",
            "--engram-config",
            "{\"cpu_offload\":true}",
            "--prefill-schedule-interval",
            "11",
            "--max-num-batched-tokens",
            "16384"
          ],
          "json_args": {
            "--kernel-config": {
              "amd_kernels": {
                "enabled": false
              }
            }
          }
        },
        "c384_dp2_umbp": {
          "label": "384 (DP2, UMBP)",
          "concurrency": 384,
          "remove_args": [
            "--enable-expert-parallel"
          ],
          "args": [
            "--data-parallel-size",
            "2",
            "--engram-config",
            "{\"cpu_offload\":true}",
            "--prefill-schedule-interval",
            "11",
            "--max-num-batched-tokens",
            "16384"
          ],
          "json_args": {
            "--kernel-config": {
              "amd_kernels": {
                "enabled": false
              }
            }
          }
        },
        "c256_dep8": {
          "label": "256 (DEP8)",
          "concurrency": 256,
          "select": {
            "kv_offload": "off"
          },
          "args": [
            "--all2all-backend",
            "mori",
            "--moe-backend",
            "aiter_mega_moe",
            "--engram-config",
            "{\"cpu_offload\":false,\"embedding_across_dp\":true}",
            "--max-num-seqs",
            "128",
            "--max-num-batched-tokens",
            "32768",
            "--prefill-schedule-interval",
            "96",
            "--prefill-schedule-policy",
            "delayer",
            "--prefill-max-wait-ms",
            "5000",
            "--long-prefill-token-threshold",
            "8192"
          ],
          "env": {
            "MORI_SHMEM_HEAP_SIZE": "64G",
            "VLLM_RPC_TIMEOUT": "600000",
            "VLLM_RANDOMIZE_DP_DUMMY_INPUTS": "1"
          },
          "json_args": {
            "--kernel-config": {
              "amd_kernels": {
                "enabled": true,
                "expert_perm": "expert_plan_S49.npz"
              }
            }
          }
        },
        "c512_dep8": {
          "label": "512 (DEP8)",
          "concurrency": 512,
          "select": {
            "kv_offload": "off"
          },
          "args": [
            "--all2all-backend",
            "mori",
            "--moe-backend",
            "aiter_mega_moe",
            "--engram-config",
            "{\"cpu_offload\":false,\"embedding_across_dp\":true}",
            "--max-num-seqs",
            "128",
            "--max-num-batched-tokens",
            "32768",
            "--prefill-schedule-interval",
            "96",
            "--prefill-schedule-policy",
            "delayer",
            "--prefill-max-wait-ms",
            "5000",
            "--long-prefill-token-threshold",
            "8192"
          ],
          "env": {
            "MORI_SHMEM_HEAP_SIZE": "64G",
            "VLLM_RPC_TIMEOUT": "600000",
            "VLLM_RANDOMIZE_DP_DUMMY_INPUTS": "1"
          },
          "json_args": {
            "--kernel-config": {
              "amd_kernels": {
                "enabled": true,
                "expert_perm": "expert_plan_S49.npz"
              }
            }
          }
        },
        "c1024_dep8": {
          "label": "1024 (DEP8)",
          "concurrency": 1024,
          "select": {
            "kv_offload": "off"
          },
          "args": [
            "--all2all-backend",
            "mori",
            "--moe-backend",
            "aiter_mega_moe",
            "--engram-config",
            "{\"cpu_offload\":false,\"embedding_across_dp\":true}",
            "--max-num-seqs",
            "160",
            "--max-num-batched-tokens",
            "32768",
            "--prefill-schedule-interval",
            "96",
            "--prefill-schedule-policy",
            "delayer",
            "--prefill-max-wait-ms",
            "5000",
            "--long-prefill-token-threshold",
            "8192"
          ],
          "env": {
            "MORI_SHMEM_HEAP_SIZE": "64G",
            "VLLM_RPC_TIMEOUT": "600000",
            "VLLM_RANDOMIZE_DP_DUMMY_INPUTS": "1"
          },
          "json_args": {
            "--kernel-config": {
              "amd_kernels": {
                "enabled": true,
                "expert_perm": "expert_plan_S49.npz"
              }
            }
          }
        }
      },
      "runbook": "The MI355X AgentX data-parallel lanes in [SemiAnalysis InferenceX](https://inferencex.semianalysis.com/) ([SemiAnalysisAI/InferenceX#5195](https://github.com/SemiAnalysisAI/InferenceX/pull/5195)): DP2 at concurrency 128 from `dsv41flash-fp4-mi355x-vllm-agentic-dspark`, DP2 with UMBP from `dsv41flash-fp4-mi355x-vllm-agentic-dspark-umbp` and DEP8 from `dsv41flash-fp4-mi355x-vllm-agentic-dspark-dep8`. They have been measured only on the image digest the preset pins. For concurrency 64 and below, see [AgentX TP](#preset-mi355x_agentx).\n\n**Points.**\n- **Concurrency 128: DP2, KV cache on the GPU.** Two GPUs per server, so an 8-GPU node holds four. Attention is data-parallel over the two ranks and the MoE tensor-parallel across both (`--enable-expert-parallel` removed). The Engram tables are in host memory, prefill is admitted every 11 engine steps (`--prefill-schedule-interval 11`) with 16384-token chunks, and the amd_kernels routes are off.\n- **Concurrency 256 and 384: DP2 with UMBP KV offload**, otherwise as concurrency 128.\n- **Concurrency 256, 512 and 1024: DEP8.** One server on the node's eight GPUs with expert parallelism, MoRI all-to-all and AITER MegaMoE (`--moe-backend aiter_mega_moe`), and GPU-resident Engram tables shared across the DP ranks. `--max-num-seqs` is 128 (160 at 1024) with 32768-token chunks; `--long-prefill-token-threshold 8192` prefills a cold long prompt in chunks so one rank's prompt does not stall the others' decode. The prefill delayer (`--prefill-schedule-policy delayer`) exchanges the ranks' prefill state every step and holds prefill until the ranks can run it in the same step with a well-filled batch: at least 96 engine steps apart (`--prefill-schedule-interval 96`), and released once the oldest waiting request has queued 5000 ms (`--prefill-max-wait-ms`). It trades TTFT for fewer prefill-carrying steps.\n\n**Serving config.**\n- **amd_kernels.** The pinned image turns every amd_kernels route on by default. The DP2 points turn them off (`amd_kernels routes: none` in the server log). The DEP8 points turn them on with the static expert placement `expert_plan_S49.npz` shipped in the image; the server log lists every route, the S49 plan (49 slots per rank) and `KV cache sizing keeps 20.0 GiB free for serving transients`.\n- **DEP8 environment**, as InferenceX runs it: `MORI_SHMEM_HEAP_SIZE=64G`, `VLLM_RPC_TIMEOUT=600000` and `VLLM_RANDOMIZE_DP_DUMMY_INPUTS=1`.\n- **vLLM Router.** Every point runs behind vLLM Router 0.1.14 (`--policy consistent_hash`, `--intra-node-data-parallel-size` equal to the server's DP size, as on the router tab), plus `--request-timeout-secs 14400` so long agentic requests outlive the 1800 s default and `--disable-retries` so a failed request is not replayed. InferenceX also exports the router's Prometheus metrics on `127.0.0.1:18000`. For DEP8 the router listens with a backlog of 128, which resets connections in the AgentX warm-up burst, so InferenceX starts it with `LD_PRELOAD=/opt/dsv41f/lib/listen_backlog_shim.so` and `LISTEN_BACKLOG_MIN=4096`; the shim ships in the image and is not part of vLLM.\n- **UMBP.** The UMBP Server on the KV Offload row runs once per node and every server on the node attaches to it; its pool is shared, with no per-engine quota. InferenceX sizes the pool at 449 GB for one two-GPU server (0.60 of that server's share of host DRAM), on 4 KiB pages. In local agentx-fast replays (1200 s, single runs) of the DP2 configuration on the default `fp8_ds_mla` KV cache and an earlier nightly, against the same configuration without offloading, total throughput per GPU rose 10.1% at concurrency 256 and doubled at 384, where the server without offloading was overloaded (73% GPU prefix hits, 265 s TTFT p90) and UMBP restored 21.5% of prompt tokens. At 128 the GPU KV cache held the working set and UMBP did not help (−4.7%), so the 128 point runs without it.\n\n**Precision.** BF16 all-reduce (`VLLM_ROCM_QUICK_REDUCE_QUANTIZATION=NONE`) and a per-tensor `fp8_e4m3` KV cache ([vllm-project/vllm#66036](https://github.com/vllm-project/vllm/pull/66036)) instead of the block-scaled `fp8_ds_mla`, shared by the DSpark draft layers, with an MXFP4 indexer cache.\n\n**Image.** `vllm/vllm-openai-rocm:deepseek-v41-flash-8a13616` is built from the vLLM branch `dsv41f-amd-kernels` at `8a136163b6`, which is main `647a76866` (2026-11-22) plus changes not yet merged. On main, `--kernel-config`'s `amd_kernels` routes (the bridge of [vllm-project/vllm#69097](https://github.com/vllm-project/vllm/pull/69097) on [#67850](https://github.com/vllm-project/vllm/pull/67850)) and the prefill delayer ([#65655](https://github.com/vllm-project/vllm/pull/65655), [#66927](https://github.com/vllm-project/vllm/pull/66927)) do not exist, and the image also carries [ROCm/aiter#8453](https://github.com/ROCm/aiter/pull/8453), so the DEP8 points fail at startup on main or nightly images. The DP2 points need only main.\n\n[InferenceX run 45218564620](https://github.com/SemiAnalysisAI/InferenceX/actions/runs/45218564620) ran all six points on this image at `47e883bb9`, whose serving settings match the source revision `66f2a2d57`. Each point is one run.\n\n| Concurrency | Interactivity p50 / p90 (tokens/s/user) | Total tokens/s per GPU | TTFT p50 / p90 (s) |\n| --- | ---: | ---: | ---: |\n| 128 (DP2) | 69.1 / 44.3 | 266,589 | 0.56 / 1.62 |\n| 256 (DP2, UMBP) | 35.0 / 24.5 | 407,378 | 1.04 / 2.59 |\n| 384 (DP2, UMBP) | 20.0 / 15.5 | 421,803 | 1.61 / 3.70 |\n| 256 (DEP8) | 235.5 / 200.2 | 206,961 | 1.49 / 3.38 |\n| 512 (DEP8) | 163.8 / 101.8 | 353,736 | 1.93 / 5.06 |\n| 1024 (DEP8) | 57.3 / 32.7 | 515,633 | 2.59 / 5.64 |\n\nGSM8K exact match (strict) over 1319 questions, with block verification, was 0.973 and 0.976 at DP2 concurrency 384 with UMBP, and 0.972 and 0.975 at DEP8 concurrency 1024 (two runs each). Throughput runs use DSpark's synthetic golden acceptance length (3.51); the preset keeps real block rejection for ordinary serving and accuracy evaluation.\n",
      "json": "/deepseek-ai/DeepSeek-V4.1-Flash/presets/mi355x_agentx_dp.json"
    },
    "gb300_agentx_tp": {
      "label": "AgentX TP4 (Dynamo)",
      "hardware": "gb300",
      "strategy": "single_node_tp",
      "variants": [
        "fp8"
      ],
      "workload": "Agentic (InferenceX AgentX)",
      "description": "TP4 for concurrency 1 to 8: latency-specialized decode steps, prefill admitted every 24 steps, host Engram tables and FlashInfer autotuning.",
      "source": {
        "label": "InferenceX #5015",
        "href": "https://github.com/SemiAnalysisAI/InferenceX/pull/5015",
        "key": "dsv41flash-fp4-gb300-dynamo-vllm-agentic-dspark-agg",
        "revision": "1b1eec0"
      },
      "image": {
        "vllm": "vllm/vllm-openai:cu134-nightly-aarch64-01fba62-1111d@sha256:9aa51d63c0f9e408a6a38df5aaeac2794da5de766d7398035a380bdf3d41389a",
        "dynamo": "1.6.0.dev20261010"
      },
      "select": {
        "frontend": "rust",
        "features": {
          "spec_decoding": true,
          "text_only": true,
          "encoder_parallel": false
        }
      },
      "tp": 4,
      "args": [
        "--kernel-config",
        "{\"enable_flashinfer_autotune\":true}",
        "--engram-config",
        "{\"cpu_offload\":true,\"use_thp\":false}",
        "--additional-config",
        "{\"decode_backend\":\"latency_specialized\"}",
        "--prefill-schedule-interval",
        "24",
        "--max-model-len",
        "1048576",
        "--numa-bind"
      ],
      "env": {
        "VLLM_USE_V2_MODEL_RUNNER": "1",
        "VLLM_ENGINE_READY_TIMEOUT_S": "7200",
        "PYTHONHASHSEED": "0"
      },
      "json_args": {
        "--speculative-config": {
          "enable_adaptive_verification": false
        }
      },
      "points": {
        "c1": {
          "label": "1",
          "concurrency": 1,
          "default": true,
          "args": [
            "--max-num-seqs",
            "1",
            "--max-num-batched-tokens",
            "4096",
            "--compilation-config",
            "{\"mode\":\"VLLM_COMPILE\",\"cudagraph_mode\":\"FULL_AND_PIECEWISE\",\"cudagraph_capture_sizes\":[5,6,10,12,15,18,20,24,25,30,35,36,40,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2046,3072,4092]}",
            "--max-cudagraph-capture-size",
            "4092"
          ]
        },
        "c4": {
          "label": "4",
          "concurrency": 4,
          "args": [
            "--max-num-seqs",
            "8",
            "--max-num-batched-tokens",
            "4096",
            "--compilation-config",
            "{\"mode\":\"VLLM_COMPILE\",\"cudagraph_mode\":\"FULL_AND_PIECEWISE\",\"cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2046,3072,4092]}",
            "--max-cudagraph-capture-size",
            "4092"
          ]
        },
        "c8": {
          "label": "8",
          "concurrency": 8,
          "args": [
            "--max-num-seqs",
            "16",
            "--max-num-batched-tokens",
            "8192",
            "--compilation-config",
            "{\"mode\":\"VLLM_COMPILE\",\"cudagraph_mode\":\"FULL_AND_PIECEWISE\",\"cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2046,3072,4092,6144,8190]}",
            "--max-cudagraph-capture-size",
            "8190"
          ]
        }
      },
      "runbook": "The aggregated engine settings of\n[InferenceX #5015](https://github.com/SemiAnalysisAI/InferenceX/pull/5015) at\n[`1b1eec0`](https://github.com/SemiAnalysisAI/InferenceX/blob/1b1eec0819566a70a51ee041528d447f1472634d/inferencex-e2e/benchmarks/multi_node/srt-slurm-recipes/dsv41flash/vllm/gb300-fp4/agentx/agg-variants.yaml),\non the 0909 launch checkpoint. All three points and the c8 GSM8K eval\n(strict-match 0.978) passed in\n[this sweep](https://github.com/SemiAnalysisAI/InferenceX/actions/runs/43089248484).\n\nThe image is vLLM main at `01fba62` with\n[vllm-project/vllm#66552](https://github.com/vllm-project/vllm/pull/66552)\napplied; main from `2acfc19` on carries every flag here. The measured\ndeployment ran one Dynamo `1.6.0.dev20261010` worker behind the Dynamo\nfrontend (etcd, TCP request plane, ZMQ events, KV-aware routing with a\n14400-second session-affinity TTL, `deepseek_v41` tool and reasoning\nparsers in the frontend), not the native frontend the builder renders.\nThe throughput harness's synthetic DSpark acceptance is not a serving\nsetting and is left out.\n",
      "json": "/deepseek-ai/DeepSeek-V4.1-Flash/presets/gb300_agentx_tp.json"
    },
    "gb300_agentx_pd": {
      "label": "AgentX DEP2 prefill / DEP decode (Dynamo)",
      "hardware": "gb300",
      "strategy": "pd_cluster",
      "variants": [
        "fp8"
      ],
      "workload": "Agentic (InferenceX AgentX)",
      "description": "DEP2 prefill workers with lazy host-KV offload and Engram tables split across all prefill GPUs, and one DEP16 or DEP32 decode worker; KV moves by NIXL push over the NVLink fabric. Worker counts are in the runbook.",
      "source": {
        "label": "InferenceX #5015",
        "href": "https://github.com/SemiAnalysisAI/InferenceX/pull/5015",
        "key": "dsv41flash-fp4-gb300-dynamo-vllm-agentic-dspark-disagg",
        "revision": "1b1eec0"
      },
      "image": {
        "vllm": "vllm/vllm-openai:cu134-nightly-aarch64-01fba62-1111d@sha256:9aa51d63c0f9e408a6a38df5aaeac2794da5de766d7398035a380bdf3d41389a",
        "dynamo": "1.6.0.dev20261010"
      },
      "select": {
        "pd_router": "dynamo",
        "pd_connector": "nixl",
        "kv_offload": "simple",
        "frontend": "rust",
        "features": {
          "tool_calling": false,
          "reasoning": false,
          "spec_decoding": true,
          "text_only": true,
          "encoder_parallel": false
        }
      },
      "args": [
        "--kv-cache-dtype",
        "fp8",
        "--max-model-len",
        "1048576",
        "--attention-config",
        "{\"backend\":\"FLASHMLA_MEGA_ATTN_DSV41\",\"indexer_kv_dtype\":\"mxfp4\",\"indexer_sparse_logits\":true}",
        "--enable-cumem-allocator",
        "--enable-ep-weight-filter",
        "--gpu-memory-utilization",
        "0.92",
        "--enable-eplb",
        "--numa-bind"
      ],
      "env": {
        "PYTHONHASHSEED": "0",
        "VLLM_USE_V2_MODEL_RUNNER": "1",
        "VLLM_ENGINE_READY_TIMEOUT_S": "3600",
        "VLLM_RPC_TIMEOUT": "600000",
        "VLLM_ALLREDUCE_USE_SYMM_MEM": "0",
        "VLLM_RANDOMIZE_DP_DUMMY_INPUTS": "1",
        "NCCL_CUMEM_ENABLE": "1",
        "NCCL_MNNVL_ENABLE": "1",
        "NCCL_NVLS_ENABLE": "1",
        "UCX_TLS": "cuda_copy,cuda_ipc,tcp",
        "UCX_CUDA_IPC_ENABLE_MNNVL": "y",
        "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",
        "VLLM_DEEP_GEMM_WARMUP": "relax"
      },
      "json_args": {
        "--speculative-config": {
          "rejection_sample_method": null,
          "enable_adaptive_verification": false,
          "disable_eagle_block_drop": true
        },
        "--kv-transfer-config": {
          "NixlConnector": {
            "kv_buffer_device": "cuda",
            "kv_load_failure_policy": "fail",
            "kv_connector_extra_config": {
              "transfer_mode": "push",
              "backends": [
                "UCX"
              ],
              "enforce_handshake_compat": false,
              "kv_lease_duration": 120
            }
          }
        }
      },
      "roles": {
        "prefill": {
          "nodes": 1,
          "parallelism": "dep",
          "env": {
            "CUDA_VISIBLE_DEVICES": "0,1"
          },
          "args": [
            "--data-parallel-size",
            "2",
            "--data-parallel-size-local",
            "2",
            "--kernel-config",
            "{\"enable_flashinfer_autotune\":true,\"moe_backend\":\"deep_gemm_mega_moe\",\"sparse_indexer_topk_backend\":\"deep_select\",\"linear_backend_per_quant\":{\"mxfp8\":\"torch\"}}",
            "--eplb-config",
            "{\"communicator\":\"symm_mem\",\"num_redundant_experts\":2,\"window_size\":1000,\"step_interval\":2000,\"use_async\":true,\"log_balancedness\":true,\"log_balancedness_interval\":1000}",
            "--max-num-seqs",
            "64",
            "--max-num-batched-tokens",
            "32768",
            "--long-prefill-token-threshold",
            "8192",
            "--prefix-cache-retention-interval",
            "32768",
            "--safetensors-load-strategy",
            "prefetch",
            "--compilation-config",
            "{\"mode\":\"VLLM_COMPILE\",\"cudagraph_mode\":\"FULL_AND_PIECEWISE\",\"cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2046],\"decoder_replay_cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2048],\"max_cudagraph_capture_size\":2046}"
          ],
          "json_args": {
            "--kv-transfer-config": {
              "SimpleCPUOffloadConnector": {
                "kv_connector_extra_config": {
                  "cpu_bytes_to_use": 182536110080,
                  "cpu_bytes_to_use_per_rank": null,
                  "lazy_offload": true
                }
              }
            }
          }
        },
        "decode": {
          "nodes": 4,
          "parallelism": "dep",
          "args": [
            "--kernel-config",
            "{\"enable_flashinfer_autotune\":true,\"moe_backend\":\"deep_gemm_mega_moe\",\"sparse_indexer_topk_backend\":\"deep_select\"}",
            "--engram-config",
            "{\"cpu_offload\":false,\"embedding_across_dp\":true,\"use_thp\":false}",
            "--additional-config",
            "{\"dspark_fused_markov\":true}",
            "--no-enable-prefix-caching",
            "--numa-bind-nodes",
            "0",
            "0",
            "1",
            "1"
          ],
          "json_args": {
            "--kv-transfer-config": {
              "NixlConnector": {
                "kv_role": "kv_consumer"
              }
            }
          }
        }
      },
      "points": {
        "c3200": {
          "label": "3200 (5P1D, DEP32 decode)",
          "concurrency": 3200,
          "default": true,
          "roles": {
            "prefill": {
              "args": [
                "--engram-config",
                "{\"cpu_offload\":false,\"embedding_across_dp\":true,\"use_thp\":false,\"peer_group_size\":10,\"peer_group_store\":\"/logs/engram-peers/store\"}"
              ]
            },
            "decode": {
              "nodes": 8,
              "args": [
                "--eplb-config",
                "{\"communicator\":\"symm_mem\",\"num_redundant_experts\":32,\"window_size\":1000,\"step_interval\":3000,\"use_async\":true,\"log_balancedness\":false,\"log_balancedness_interval\":3000}",
                "--max-num-seqs",
                "18",
                "--max-num-batched-tokens",
                "180",
                "--max-num-inflight-kv-loads",
                "40",
                "--max-async-kv-loads-per-step",
                "3",
                "--compilation-config",
                "{\"cudagraph_mode\":\"FULL_DECODE_ONLY\",\"max_cudagraph_capture_size\":108,\"cudagraph_capture_sizes\":[6,12,18,24,30,36,42,48,54,60,66,72,78,84,90,96,102,108]}"
              ]
            }
          }
        },
        "c6600": {
          "label": "6600 (7P1D, DEP16 decode)",
          "concurrency": 6600,
          "roles": {
            "prefill": {
              "args": [
                "--engram-config",
                "{\"cpu_offload\":false,\"embedding_across_dp\":true,\"use_thp\":false,\"peer_group_size\":14,\"peer_group_store\":\"/logs/engram-peers/store\"}"
              ]
            },
            "decode": {
              "args": [
                "--eplb-config",
                "{\"communicator\":\"symm_mem\",\"num_redundant_experts\":16,\"window_size\":1000,\"step_interval\":3000,\"use_async\":true,\"log_balancedness\":false,\"log_balancedness_interval\":3000}",
                "--max-num-seqs",
                "128",
                "--max-num-batched-tokens",
                "1280",
                "--max-num-inflight-kv-loads",
                "128",
                "--max-async-kv-loads-per-step",
                "3",
                "--compilation-config",
                "{\"cudagraph_mode\":\"FULL_DECODE_ONLY\",\"max_cudagraph_capture_size\":768,\"cudagraph_capture_sizes\":[6,12,18,24,30,36,42,48,54,60,66,72,78,84,90,96,102,108,114,120,126,132,138,144,150,156,162,168,174,180,186,192,198,204,210,216,222,228,234,240,246,252,258,264,270,276,282,288,294,300,306,312,318,324,330,336,342,348,354,360,366,372,378,384,390,396,402,408,414,420,426,432,438,444,450,456,462,468,474,480,486,492,498,504,510,516,522,528,534,540,546,552,558,564,570,576,582,588,594,600,606,612,618,624,630,636,642,648,654,660,666,672,678,684,690,696,702,708,714,720,726,732,738,744,750,756,762,768]}"
              ]
            }
          }
        },
        "c10288": {
          "label": "10288 (12P1D, DEP32 decode)",
          "concurrency": 10288,
          "roles": {
            "prefill": {
              "args": [
                "--engram-config",
                "{\"cpu_offload\":false,\"embedding_across_dp\":true,\"use_thp\":false,\"peer_group_size\":24,\"peer_group_store\":\"/logs/engram-peers/store\"}"
              ]
            },
            "decode": {
              "nodes": 8,
              "args": [
                "--eplb-config",
                "{\"communicator\":\"symm_mem\",\"num_redundant_experts\":32,\"window_size\":1000,\"step_interval\":3000,\"use_async\":true,\"log_balancedness\":false,\"log_balancedness_interval\":3000}",
                "--max-num-seqs",
                "72",
                "--max-num-batched-tokens",
                "720",
                "--max-num-inflight-kv-loads",
                "72",
                "--max-async-kv-loads-per-step",
                "3",
                "--compilation-config",
                "{\"cudagraph_mode\":\"FULL_DECODE_ONLY\",\"max_cudagraph_capture_size\":432,\"cudagraph_capture_sizes\":[6,12,18,24,30,36,42,48,54,60,66,72,78,84,90,96,102,108,114,120,126,132,138,144,150,156,162,168,174,180,186,192,198,204,210,216,222,228,234,240,246,252,258,264,270,276,282,288,294,300,306,312,318,324,330,336,342,348,354,360,366,372,378,384,390,396,402,408,414,420,426,432]}"
              ]
            }
          }
        }
      },
      "runbook": "The disaggregated engine settings of\n[InferenceX #5015](https://github.com/SemiAnalysisAI/InferenceX/pull/5015) at\n[`1b1eec0`](https://github.com/SemiAnalysisAI/InferenceX/blob/1b1eec0819566a70a51ee041528d447f1472634d/inferencex-e2e/benchmarks/multi_node/srt-slurm-recipes/dsv41flash/vllm/gb300-fp4/agentx/disagg-variants.yaml),\non the 0909 launch checkpoint. All three points and their GSM8K evals\n(strict-match 0.976, 0.975 and 0.973) passed in\n[this sweep](https://github.com/SemiAnalysisAI/InferenceX/actions/runs/43089248484).\nThe image is vLLM main at `01fba62` with\n[vllm-project/vllm#66552](https://github.com/vllm-project/vllm/pull/66552)\napplied; main from `2acfc19` on carries every flag here.\n\n### Worker layout\n\nThe builder renders one prefill worker and one decode worker. The lane runs:\n\n| point | prefill | decode |\n|---|---|---|\n| 3200 | 5 DEP2 workers on 3 trays | DEP32 on 8 trays |\n| 6600 | 7 DEP2 workers on 4 trays | DEP16 on 4 trays |\n| 10288 | 12 DEP2 workers on 6 trays | DEP32 on 8 trays |\n\nTwo prefill workers share a tray: start the second with\n`CUDA_VISIBLE_DEVICES=2,3`. Every prefill worker passes the same\n`--engram-config`. Its `peer_group_size` is the point's total prefill\nGPU count, and `peer_group_store` must be one path that every prefill\nworker can reach and that is fresh per launch (the lane uses its job\nlog directory). The workers meet there once at startup, so all of them\nmust start. The point's `cpu_bytes_to_use` (170 GiB) is per prefill\nworker: two workers use 340 GiB of a tray's 840 GiB of host memory.\n\n### Dynamo\n\nDynamo `1.6.0.dev20261010` with etcd, the TCP request plane and ZMQ\nevents, and the gRPC sidecar with a 3600-second startup deadline. The\nfrontend runs on its own node with KV-aware routing (14400-second soft\nsession affinity, KV events off) and picks the decode worker by least\nactive requests (`dynamo-two-tier-cost-fn`, `cache_threshold: 1.0`);\nprefill and decode thresholds are off. Tool calls and reasoning are\nparsed in the frontend with `deepseek_v41` (`--dyn-tool-call-parser`,\n`--dyn-reasoning-parser`), so the workers run without vLLM parsers.\n",
      "json": "/deepseek-ai/DeepSeek-V4.1-Flash/presets/gb300_agentx_pd.json"
    },
    "ascend_a2_w4a8_pd": {
      "label": "Ascend A2 W4A8 PD (1P + 1D)",
      "hardware": "ascend_910b",
      "strategy": "pd_cluster",
      "variants": [
        "ascend_w4a8"
      ],
      "default": false,
      "select": {
        "pd_router": "ascend",
        "pd_connector": "mooncake_ascend",
        "frontend": "python",
        "kv_offload": false,
        "features": {
          "spec_decoding": true,
          "encoder_parallel": false
        }
      },
      "source": {
        "label": "vLLM Ascend DeepSeek-V4.1-Flash tutorial",
        "href": "https://docs.vllm.ai/projects/ascend/en/latest/tutorials/models/DeepSeek-V4.1-Flash.html",
        "key": "dsv41-a2-w4a8-pd",
        "revision": "2026-11-13"
      },
      "runbook": "## Topology\n\nOne prefill node and one decode node, eight Ascend 910B4 (64 GB) each,\nfronted by the Ascend proxy. Validated lane: prefill DP2 x TP1 x PCP4,\ndecode DP8 x TP1, KV transfer over MooncakeHybridConnector, DSpark\ndrafts five tokens. The hardware note lists the manual edits each node\nneeds before launch.\n\n## Environment\n\nSet the node IP and NIC per host, and give each DP rank its own device\nslice.\n",
      "roles": {
        "prefill": {
          "nodes": 1,
          "parallelism": "dep",
          "data_parallel_lb": "internal",
          "tp": 4,
          "pp": 1,
          "args": [
            "--max-num-batched-tokens",
            "4096",
            "--max-num-seqs",
            "16",
            "--enforce-eager",
            "--swa-bounded-replay",
            "--enable-prefix-caching",
            "--additional-config",
            "{\"enable_cpu_binding\":true,\"enable_fused_mc2\":2,\"enable_flashcomm1\":false,\"enable_shared_expert_dp\":true}"
          ],
          "env": {
            "HCCL_BUFFSIZE": "1024",
            "HCCL_IF_IP": "$PREFILL_NODE_1",
            "VLLM_HOST_IP": "$PREFILL_NODE_1",
            "HCCL_SOCKET_IFNAME": "$IFACE_NAME",
            "GLOO_SOCKET_IFNAME": "$IFACE_NAME",
            "TP_SOCKET_IFNAME": "$IFACE_NAME"
          },
          "json_args": {
            "--kv-transfer-config": {
              "kv_connector": "MooncakeHybridConnector",
              "kv_role": "kv_producer",
              "kv_port": "30000",
              "kv_connector_extra_config": {
                "connectors": null,
                "prefill": {
                  "dp_size": 2,
                  "tp_size": 1,
                  "pcp_size": 4
                },
                "decode": {
                  "dp_size": 8,
                  "tp_size": 1
                }
              }
            }
          }
        },
        "decode": {
          "nodes": 1,
          "parallelism": "dep",
          "data_parallel_lb": "internal",
          "tp": 1,
          "pp": 1,
          "args": [
            "--prefill-context-parallel-size",
            "1",
            "--max-num-batched-tokens",
            "512",
            "--max-num-seqs",
            "72",
            "--async-scheduling",
            "--no-enable-prefix-caching",
            "--no-swa-bounded-replay",
            "--kv-cache-memory-bytes",
            "4600000000",
            "--additional-config",
            "{\"ascend_compilation_config\":{\"enable_npugraph_ex\":true,\"enable_static_kernel\":false},\"enable_flashcomm1\":false,\"enable_cpu_binding\":true,\"multistream_overlap_shared_expert\":true,\"recompute_scheduler_enable\":true}"
          ],
          "env": {
            "HCCL_BUFFSIZE": "1800",
            "HCCL_IF_IP": "$DECODE_NODE_1",
            "VLLM_HOST_IP": "$DECODE_NODE_1",
            "HCCL_SOCKET_IFNAME": "$IFACE_NAME",
            "GLOO_SOCKET_IFNAME": "$IFACE_NAME",
            "TP_SOCKET_IFNAME": "$IFACE_NAME"
          },
          "json_args": {
            "--speculative-config": {
              "enforce_eager": false
            },
            "--compilation-config": {
              "cudagraph_mode": "FULL_DECODE_ONLY"
            },
            "--kv-transfer-config": {
              "kv_connector": "MooncakeHybridConnector",
              "kv_role": "kv_consumer",
              "kv_port": "30100",
              "kv_connector_extra_config": {
                "prefill": {
                  "dp_size": 2,
                  "tp_size": 1,
                  "pcp_size": 4
                },
                "decode": {
                  "dp_size": 8,
                  "tp_size": 1
                }
              }
            }
          }
        }
      },
      "json": "/deepseek-ai/DeepSeek-V4.1-Flash/presets/ascend_a2_w4a8_pd.json"
    },
    "ascend_a5_pd": {
      "label": "950DT MXFP 1P1D (DP8/TP1 per role)",
      "hardware": "ascend_950dt",
      "strategy": "pd_cluster",
      "variants": [
        "default"
      ],
      "default": true,
      "description": "Direct KV transfer between two eight-NPU nodes, with eager Prefill and graph-mode Decode.",
      "image": {
        "model_revision": "08c8657f02291e11b6f6b63e0e16014f8e748518"
      },
      "select": {
        "pd_router": "ascend",
        "pd_connector": "mooncake_ascend",
        "frontend": "python",
        "features": {
          "spec_decoding": true,
          "encoder_parallel": false
        },
        "kv_offload": "off"
      },
      "args": [
        "--port",
        "7100",
        "--data-parallel-rpc-port",
        "12321",
        "--enable-prefix-caching"
      ],
      "env": {
        "GLOO_SOCKET_IFNAME": "$IFACE_NAME",
        "TP_SOCKET_IFNAME": "$IFACE_NAME",
        "HCCL_SOCKET_IFNAME": "$IFACE_NAME"
      },
      "roles": {
        "prefill": {
          "nodes": 1,
          "parallelism": "dep",
          "data_parallel_lb": "external",
          "tp": 1,
          "pp": 1,
          "args": [
            "--host",
            "$PREFILL_NODE_1",
            "--max-num-batched-tokens",
            "5120",
            "--max-num-seqs",
            "16",
            "--swa-bounded-replay",
            "--enforce-eager"
          ],
          "env": {
            "VLLM_HOST_IP": "$PREFILL_NODE_1",
            "HCCL_IF_IP": "$PREFILL_NODE_1",
            "HCCL_BUFFSIZE": "1024"
          },
          "json_args": {
            "--speculative-config": {
              "enforce_eager": true
            },
            "--additional-config": {
              "multistream_engram_overlap": false,
              "multistream_overlap_shared_expert": true
            },
            "--kv-transfer-config": {
              "MooncakeConnectorV2": {
                "kv_connector": "MooncakeHybridConnector",
                "kv_port": 26010
              }
            }
          }
        },
        "decode": {
          "nodes": 1,
          "parallelism": "dep",
          "data_parallel_lb": "external",
          "tp": 1,
          "pp": 1,
          "args": [
            "--host",
            "$DECODE_NODE_1",
            "--max-num-batched-tokens",
            "1024",
            "--max-num-seqs",
            "64",
            "--gpu-memory-utilization",
            "0.92",
            "--no-swa-bounded-replay"
          ],
          "env": {
            "VLLM_HOST_IP": "$DECODE_NODE_1",
            "HCCL_IF_IP": "$DECODE_NODE_1"
          },
          "json_args": {
            "--compilation-config": {
              "cudagraph_mode": "FULL_DECODE_ONLY"
            },
            "--additional-config": {
              "multistream_overlap_shared_expert": true,
              "combine_quant_mode": 4,
              "scheduler_config": {
                "recompute_scheduler_enable": true
              }
            },
            "--kv-transfer-config": {
              "MooncakeConnectorV2": {
                "kv_connector": "MooncakeHybridConnector",
                "kv_port": 27010
              }
            }
          }
        }
      },
      "source": {
        "label": "v0.32.0rc 950DT PD tutorial",
        "href": "https://github.com/vllm-project/vllm-ascend/blob/49007fd8cbcf597d9a1a4e2ebc968c69257045ed/docs/source/tutorials/models/DeepSeek-V4.1-Flash.md#950dt-dp8-prefill-and-dp8-decode",
        "revision": "49007fd8cbcf597d9a1a4e2ebc968c69257045ed"
      },
      "runbook": "Set PREFILL_NODE_1, DECODE_NODE_1 and IFACE_NAME for your hosts. The native vLLM supervisor starts eight HTTP endpoints per role on ports 7100–7107. The separate DP groups each use RPC port 12321. Prefill and Decode start KV transfer at ports 26010 and 27010, respectively. Check every worker's /health endpoint before starting the Ascend proxy with ROUTER_PORT=30000. Verify /v1/models and send a request for dsv41 through the proxy, then confirm KV transfer in the worker logs.",
      "json": "/deepseek-ai/DeepSeek-V4.1-Flash/presets/ascend_a5_pd.json"
    }
  },
  "hardware_notes": {
    "dgx_station_gb300": {
      "title": "Weights in Grace memory (UVA offload)",
      "body": "Single GB300 with both Engram tables and 60 GiB of routed experts in pinned Grace memory (UVA offload). Measured on a nightly image; vLLM 0.31.0 carries every flag this row uses. The first boot on a new flag set runs a 75-90 min FlashInfer autotune; keep /root/.cache/vllm on a persistent volume."
    },
    "ascend_910b": {
      "title": "W4A8 prefill/decode disaggregation on Atlas 800I A2 (910B4)",
      "body": "Apply the edits below to the rendered commands before launch.\n\n**Prefill node**\n- replace `--tensor-parallel-size 4` with `--tensor-parallel-size 1 --prefill-context-parallel-size 4`\n\n**Both nodes**\n- add `--ipc=host`\n",
      "link": {
        "label": "vLLM Ascend DeepSeek-V4.1-Flash tutorial",
        "href": "https://docs.vllm.ai/projects/ascend/en/latest/tutorials/models/DeepSeek-V4.1-Flash.html"
      }
    },
    "ascend_950dt": {
      "title": "Docker setup for Ascend 950DT",
      "body": "Use the vLLM Ascend `v0.32.0rc1-a5` image shown in the Docker tab. The Install header displays the model's general minimum vLLM version.\nBefore running the Prefill and Decode commands, add the UMMU and UBURMA devices, the urma_admin bind mount, and the model directory mount as shown in the tutorial. Use the same mounted checkpoint path in both serving commands.",
      "link": {
        "label": "vLLM Ascend v0.32 RC tutorial for 950DT Docker setup",
        "href": "https://github.com/vllm-project/vllm-ascend/blob/49007fd8cbcf597d9a1a4e2ebc968c69257045ed/docs/source/tutorials/models/DeepSeek-V4.1-Flash.md#L183-L222"
      }
    }
  },
  "guide": "## Overview\n\nDeepSeek-V4.1 is a vision-language Mixture-of-Experts model: **552B backbone parameters\nplus 196B of Engram memory, 8B active per prompt token and 16B per output token**, 40\ntransformer layers at hidden size 5120, with a 32-layer ViT and aligner in front of the\ntext stack. Six things distinguish it from V4:\n\n- **Causal encoder-decoder.** The 40 layers split into a 20-layer encoder and a\n  20-layer decoder, and the decoder's global KV is projected from the encoder's final\n  hidden state instead of being computed layer by layer. Prefill therefore only runs\n  the encoder half, which is where the 8B-prefill / 16B-decode split comes from.\n- **Two-tier sparse attention.** Every layer attends over a 128-token sliding window.\n  Layers that carry a compression ratio add compressed KV latents reaching further\n  back, pooled by a learned softmax gate. A small side attention — the *indexer*,\n  inherited from V3.2-Exp — scores those latents and keeps the best 512 per query,\n  pre-filtered by a candidate stage that selects 2048 blocks of 8. Only four layers\n  (2, 8, 14, 20) actually compress their own KV; the rest read that cache. V4.1 uses\n  only compression ratios 1 and 2, where V4 used 4 and 128.\n- **Engram n-gram memory.** Layers 1 and 14 each own a hash table of ~384M rows x 256\n  dims, looked up by 2-, 3- and 4-gram hashes of the input and written into the residual\n  stream through a learned gate. These two tables alone are **196.6B parameters (~183 GiB)** —\n  plan capacity for them, they dominate everything except the experts.\n- **Hyper-Connections.** The residual stream is carried as 4 parallel copies; each\n  sublayer derives its own pre/post/combine coefficients from the stream, with the\n  combine matrix made doubly stochastic by 20 Sinkhorn iterations.\n- **DSpark draft head.** Three stages (128 routed experts each, 3 activated) draft a\n  block of 5 tokens, reading the attention input of layers 37-39, with a Markov bias\n  head and a confidence head on the last stage.\n- **Mixed MXFP4/MXFP8 checkpoint.** Routed expert weights are MXFP4; everything else is\n  MXFP8 block-quantized, UE8M0 scales throughout. Embedding and LM head are BF16.\n\nRouting is 6 of 384 experts per token plus one shared expert, scored with\n`sqrtsoftplus` and a `noaux_tc` bias — with a **separate routing bias for tokens\ninside an image span**, so vision and text tokens do not compete for the same experts.\n\n## Checkpoints\n\n| Variant | Checkpoint | Notes |\n|---|---|---|\n| **FP8 (1017)** (default) | [deepseek-ai/DeepSeek-V4.1-Flash-1017](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017) | 2026-10-17 weight update — recommended |\n| **FP8 (0909)** | [deepseek-ai/DeepSeek-V4.1-Flash](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash) | Launch release (2026-09-09) |\n\n**1017 is the default here.** It is a minor update with the same architecture,\n`config.json`, tokenizer and prompt encoding as the launch checkpoint — only the\nweights change. DeepSeek reports gains across reasoning, coding, agentic and visual\nbenchmarks (e.g. Terminal-Bench 4.0 31.2 → 42.3, HLE w/o tools 36.8 → 42.6) along with\nshorter outputs. Both serve with the same command; the Variant row only swaps the model\nid. Like the launch repo it ships no Jinja chat template, which the\n`--tokenizer-mode deepseek_v41` flag already covers. Pick **FP8 (0909)** to reproduce\nearlier results.\n\nThe verified hardware badges and the measured numbers in the sections below\n(benchmarks, KV offloading validation) were taken on the 0909 launch checkpoint; the\n1017 weights share its config and footprint but have not been separately re-run.\n\n## Context length\n\n1,048,576 tokens, reached by YaRN with factor 16 over a 65,536-token training window.\nCompressed KV rotates at its own RoPE theta (160,000) because one latent stands for\nseveral tokens, so its positions are further apart than the raw stream's.\n\n## Images\n\nImages enter the prompt as `<|deepseek_image|>` spans; every position in the span\ncarries the image token id, and the per-position role (start / newline / end / image)\ncomes from the processor. The vision tower is a 32-layer ViT at hidden size 1024, patch\n14, with a 3x downsampling aligner and a cap of 1024 tokens per image (minimum 295,936\npixels). There is **no limit on images per prompt**. Merged embeddings enter the text\nmodel as `inputs_embeds`, before the hyper-connection stream expansion, while raw token\nids still flow through so the router can apply the image routing bias.\n\nTick **Encoder parallel** to run the ViT data-parallel (`--mm-encoder-tp-mode data`)\ninstead of tensor-parallel: at 32 layers / hidden 1024 the encoder is small enough\nthat TP communication costs more than it saves, which can significantly reduce TTFT\nfor multi-image requests. It is mutually exclusive with **Text only**.\n\n## Reasoning and tool calling\n\nTwo thinking modes and a **numeric reasoning budget** rather than discrete tiers.\nSend them as `chat_template_kwargs`:\n\n| key | values |\n|---|---|\n| `thinking` / `enable_thinking` | boolean; if you send both they must agree |\n| `reasoning_effort` | `low` (25), `high` (50), `xhigh` (75), `max` (100), **or an integer 1-100** |\n\nThe top-level OpenAI `reasoning_effort` field also works, where `\"none\"` turns\nthinking off. `\"minimal\"` and `\"medium\"` are rejected — they are not part of this\nmodel's set.\n\nNote that the DeepSeek API maps its `low` / `high` / `max` tiers to 50 / 75 / 100,\nwhile the open-source prompt encoder (and therefore vLLM) maps `low` / `high` /\n`xhigh` / `max` to 25 / 50 / 75 / 100. A request tuned at `high` on the API runs at\neffort 50 here; pass an integer if you need parity.\n\n> **With both keys unset, thinking is ON at effort 50.** The do-nothing config is\n> the most verbose one, so a request with a small `max_tokens` spends its budget on\n> the trace and returns empty `content` with `finish_reason=length`. That reads as a\n> broken model and is not. Either pin `thinking: false` or give the budget room.\n\nIn thinking mode the budget is rendered into the prompt as a `Reasoning Effort: N`\nprefix on the first turn only.\n\n```python\nresp = client.chat.completions.create(\n    model=\"deepseek-ai/DeepSeek-V4.1-Flash-1017\",\n    messages=[{\"role\": \"user\", \"content\": \"What is 17*19?\"}],\n    extra_body={\"chat_template_kwargs\": {\"thinking\": True, \"reasoning_effort\": 25}},\n)\n```\n\nDeepSeek's published numbers use `temperature=1.0`, `top_p=0.95` and effort 100 with\n`max_tokens` of at least 256K. The tech report notes that efforts of 60-80 recover most\nof that accuracy at well under half the tokens, so reserve `max` for hard tasks.\n\nTool calls are wrapped in DSML tag blocks rather than JSON fences, and tool output\ncomes back in `<tool_result>` tags.\n\n## Speculative decoding\n\nDSpark is the only speculative method for this checkpoint. V4.1 dropped the MTP module\nthat V3 and V4 trained alongside the backbone. **Speculative decoding** enables a 5-token\nblock. On NVIDIA it also turns on adaptive verification (see the feature description).\nOn AMD, vLLM currently refuses adaptive verification. The generated command sets\n`enable_adaptive_verification:false` and verifies the full block. Two checks in\n`maybe_create_adaptive_verification_manager` fail on ROCm: the indexer helper\n`supports_device_cpu_query_lens_mismatch()` is False, and\n`DeepseekV41ROCMAiterSparseSWABackend` reports `AttentionCGSupport.UNIFORM_BATCH`\nrather than `ALWAYS`. Remove the AMD override only after a serve with the true flag\nstarts. Acceptance depends on the workload, so measure it on your own traffic before\nsizing a deployment around it.\nThe drafter's experts add roughly 14B parameters to the load.\n\n## Serving text-only\n\nTick **Text only** to add `--language-model-only`, which skips the vision encoder\nentirely. Worth it whenever the workload is text: it drops the ViT and aligner from\nthe load and frees that VRAM for KV cache. It is mutually exclusive with\n`encoder_parallel`. The verified GB200 runs (TP4 and 1P1D) were text-only.\n\n## Prefill/Decode disaggregation\n\nThe **Prefill/Decode Disaggregation** strategy is the verified 1P1D layout on GB200\nNVL4: one tray (4 GPUs) per role, TP4 in each pool, KV handed over through NIXL,\nfronted by `vllm-router --vllm-pd-disaggregation`. Both pools disable FlashInfer\nautotune plus JIT and CuTeDSL warmup via `--kernel-config`, skip the DeepGEMM warmup\n(`VLLM_DEEP_GEMM_WARMUP=skip`), and cap `--max-num-seqs` at 32. On 8-GPU nodes the\nsame layout becomes TP8 per role.\n\nWith **Speculative decoding** on, DSpark runs in both pools so the transferred KV\nstays compatible.\n\n### GB300\n\nGB300's **AgentX DEP2 prefill / DEP decode (Dynamo)** preset runs both pools as DEP,\nper [SemiAnalysisAI/InferenceX#5015](https://github.com/SemiAnalysisAI/InferenceX/pull/5015):\n5 to 12 DEP2 prefill workers and one DEP16 or DEP32 decode worker. Keep them on DEP;\nMegaMoE needs expert parallelism. The preset's runbook covers the worker layout, the\nEngram peer group across prefill workers, and the Dynamo frontend.\n\n## Memory\n\nThe checkpoint is roughly **511 GB on disk** (476 GiB), which breaks down as:\n\n| Component | Entries | Stored |\n|---|---:|---:|\n| Routed + DSpark experts (MXFP4) | 557.2B | 259.5 GiB |\n| Engram tables (FP8) | 196.6B | 183.1 GiB |\n| Attention, dense projections, routers (FP8) | 7.4B | 6.9 GiB |\n| Embedding + LM head (BF16), norms (FP32) | 2.0B | 3.9 GiB |\n| UE8M0 block scales | 23.6B | 21.9 GiB |\n\nDeepSeek's 552B backbone figure covers the routed experts, attention and embeddings;\nthe Engram tables, the ~14B DSpark drafter and the block scales sit outside it.\n\n`vram_minimum_gb: 614` is that total times the schema's 1.2 headroom factor. It fits\none GB200 NVL4 tray (768 GB) at TP4, or one 8-GPU H200 node (1128 GB) with room for\nKV cache.\n\nKV cache is a small share of that budget. The compressed latents are shared across\nlayers and trained to be stored in FP4, and DeepSeek puts the resulting global KV at\n**890 bytes per token**, about a quarter of V4-Flash; by that accounting a full 1M-token\nprompt holds under 1 GB of global KV, plus a fixed 128-token sliding window per layer.\nWeights and batch size, not cache, set the capacity limit — still, measure before\nassuming a given context/batch fits.\n\n## Prerequisites\n\n- vLLM 0.31.0+, from the pip wheel or the release image. The architecture shipped in\n  0.30.0 ([vllm-project/vllm#56228](https://github.com/vllm-project/vllm/pull/56228));\n  0.31.0 adds the KV-offload fix ([vllm-project/vllm#57145](https://github.com/vllm-project/vllm/pull/57145))\n  and the ROCm Engram host-memory gate ([vllm-project/vllm#57491](https://github.com/vllm-project/vllm/pull/57491)).\n  The launch-day `deepseekv41-flash-0909` image is no longer needed.\n- On AMD the Docker tab uses `vllm/vllm-openai-rocm:nightly-rocm100`, the ROCm 10.0\n  nightly the AMD rows were verified on. **MI355X and MI325X need it**: their\n  commands pass `--monokernel`, and MI355X also passes the ROCm MXFP4 indexer.\n  Both are on `main` but not in 0.31.0, so the Install block offers only Docker\n  on those two SKUs. MI300X and MI350X also run from the ROCm pip wheel.\n- The Rust OpenAI frontend is selected by default in the command builder. Switch\n  to Python if you encounter unsupported features or compatibility issues.\n- Expect a long first load: `VLLM_ENGINE_READY_TIMEOUT_S=3600` is set for that reason.\n- On AMD, the generated command sets `VLLM_USE_BREAKABLE_CUDAGRAPH=1`. DeepSeek-V4.1-Flash does not support `torch.compile`, and the ROCm sparse SWA backend only supports uniform-batch CUDA graphs. Without breakable CUDA graphs, default `FULL_AND_PIECEWISE` dies at capture.\n- On AMD, the generated command passes `--moe-backend aiter` rather than naming a kernel. Naming `aiter_triton_mxfp4_bf16` pins the Triton W4A16 `_moe_gemm_a16w4` kernel; the plain name lets vLLM select the Composable Kernel a8w4 experts, used in the MI355X benchmark below. It also sets `AITER_TRITON_LOG_LEVEL=ERROR` to drop AITER's per-call \"Gluon unavailable\" warning, which is constant on gfx950 and dominated the server log.\n- On MI355X, **Tensor Parallel** inherits vLLM's scheduler limits. Tune `--max-num-seqs` for your traffic and memory budget if needed. The benchmark configuration below records an explicit limit for reproducibility.\n- On AMD, ticking **Speculative decoding** also sets `enable_adaptive_verification:false`. vLLM currently refuses the true flag: `DeepseekV41IndexerBackend.supports_device_cpu_query_lens_mismatch()` is False, and `DeepseekV41ROCMAiterSparseSWABackend` reports `UNIFORM_BATCH` rather than `ALWAYS`. DSpark still drafts 5 tokens per round.\n\n## Verifying\n\nServe, then send one text request and one image request — the vision tower is a\nseparate path and a text-only smoke test will not exercise it:\n\n```bash\ncurl http://localhost:8000/v1/chat/completions \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"model\":\"deepseek-ai/DeepSeek-V4.1-Flash-1017\",\n       \"messages\":[{\"role\":\"user\",\"content\":\"What is 17*19? Return only the integer.\"}]}'\n```\n\nA correct answer is `323`.\n\n## Performance tuning\n\nStart with vLLM's defaults and tune one parameter at a time for your workload:\n\n- `--max-num-seqs`: raise the running-sequence limit if it causes queueing and\n  memory permits; lower it if larger batches hurt latency or memory use.\n- `--max-num-batched-tokens`: balance prefill throughput against decode latency\n  and memory use by adjusting the token budget per scheduling iteration.\n- `--max-cudagraph-capture-size`: cover expected decode batches, including DSpark\n  draft tokens, while accounting for graph memory and startup cost: 128 sequences\n  with five drafts need `128 * (1 + 5) = 768` tokens, which the MI355X AgentX\n  presets round up to 1024.\n- `--max-model-len`: size the context limit for your prompt plus output lengths.\n\n## MI355X Tensor Parallel\n\nOn MI355X, **Tensor Parallel** defaults to **TP2** with Engram CPU offload\n(`--engram-config '{\"cpu_offload\":true}'`). The Engram tables cost 47.2 GiB of\ndevice memory per rank at TP4 and 94.4 GiB at TP2; on a 288 GiB card the TP2\nfigure does not fit beside half the checkpoint, so the tables move to pinned\nhost memory. TP2 halves the GPUs per server and so doubles the servers per\nnode. For TP4, pass `--tensor-parallel-size 4` and\n`--engram-config '{\"cpu_offload\":false}'` to keep the tables resident.\n\nThe offload resolves on gfx950 only on builds carrying\n[vllm-project/vllm#57491](https://github.com/vllm-project/vllm/pull/57491),\nwhich widened two `is_cuda()` gates to `is_cuda_alike()`. Those builds also\ndefault `cpu_offload` on through `VLLM_PLE_CPU_OFFLOAD`, so set it explicitly\nrather than inheriting the default.\n\n`--monokernel` selects the mono decode layer from\n[vllm-project/vllm#60397](https://github.com/vllm-project/vllm/pull/60397),\nwhich [vllm-project/vllm#61082](https://github.com/vllm-project/vllm/pull/61082)\nextended to all 40 backbone layers and moved from the\n`VLLM_ROCM_MONO_DECODE` environment variable to this flag. Two persistent\nlaunches cover a layer for decode steps of up to 48 rows, which with five\nDSpark drafts is concurrency 8; larger steps fall back to the regular path, so\nthe gain is largest at low concurrency and fades as concurrency rises.\n\nDecoder SWA bounded replay\n([vllm-project/vllm#59039](https://github.com/vllm-project/vllm/pull/59039))\nis on by default on ROCm, so the recipe no longer passes\n`--no-swa-bounded-replay`. Use a nightly from 2026-10-13 or later; earlier\nROCm builds lack the replay window clamp and fault at the first prefix hit.\n\n### AgentX on MI355X\n\nTwo opt-in presets render the lanes of\n[InferenceX #5195](https://github.com/SemiAnalysisAI/InferenceX/pull/5195) on their\npinned ROCm image, one point per benchmark concurrency.\n[AgentX TP](#preset-mi355x_agentx) serves TP8 at concurrency 1, TP4 at 1 and 2 with\nresident Engram tables, and TP2 at 1 to 64 with Engram CPU offload.\n[AgentX DP](#preset-mi355x_agentx_dp) serves attention DP2 at 128 to 384, with UMBP\nKV offload at 256 and 384, and DEP8 with MoRI all-to-all, AITER MegaMoE and the\namd_kernels routes at 256 to 1024. Their points carry the corresponding sequence\ncaps, prefill budgets and graph sizes. The lanes served **FP8 (0909)**. These\nlimits are workload-specific, not generic defaults.\n\n## MI300X Tensor Parallel\n\nOn MI300X, **Tensor Parallel** takes the recipe default of **TP4** with the\nEngram tables offloaded to pinned host memory\n(`--engram-config '{\"cpu_offload\":true}'`). At TP4 the resident weights are\nroughly 81 GiB per rank, which leaves a healthy KV pool on a 192 GB card.\n\n**TP2 does not fit on this SKU.** At TP2 the offloaded weights rise to roughly\n145 GiB per rank, and a measured run reported\n`Available KV cache memory: -13.51 GiB`, so the engine refused to start with\n`No available memory for the cache blocks`. That was already with the\nsparse-attention indexer buffer halved to 4096 batched tokens. Raising\n`--gpu-memory-utilization` and halving the buffer again recover roughly 13 GiB\nbetween them, which still leaves no usable KV for a 1M-context model, so TP2\nis not offered here. MI325X runs the same TP2 configuration successfully on\nits larger 256 GB card.\n\nMI300X is gfx942 and needs the same two workarounds as MI325X: no FP4 MFMA, so\nthe MXFP4 experts run through a Triton kernel and device memory is better spent\non KV than on resident Engram tables; and piecewise graph capture segfaults\nevery worker, so this recipe sets `VLLM_USE_BREAKABLE_CUDAGRAPH=0` and captures\nonly full decode graphs\n(`--compilation-config '{\"cudagraph_mode\":\"FULL_DECODE_ONLY\"}'`), with prefill\neager.\n\nThis recipe does not pass `--monokernel`. With the kernels' weight copies\nincluded, #60731 measured 170.11 GiB of weights a rank. At\n`--gpu-memory-utilization 0.9` a 192 GiB MI300X leaves about 2.7 GiB beside\nthose weights.\n\nThe offload resolves on gfx942 only on builds carrying\n[vllm-project/vllm#57491](https://github.com/vllm-project/vllm/pull/57491),\nthe same gate MI325X and MI355X need. Those builds also default `cpu_offload`\non through `VLLM_PLE_CPU_OFFLOAD`, so set it explicitly rather than inheriting\nthe default.\n\n## MI325X Tensor Parallel\n\nOn MI325X, **Tensor Parallel** takes the recipe default of **TP4**, with the\nEngram tables offloaded to pinned host memory\n(`--engram-config '{\"cpu_offload\":true}'`). A 256 GB card leaves roughly\n81 GiB per rank of resident weights at TP4 and roughly 145 GiB at TP2; TP2\nfits but leaves the smallest KV pool of any arm in this recipe, so TP4 is the\ndefault here rather than the TP2 that MI355X uses on its larger 288 GiB card.\nFor TP2, pass `--tensor-parallel-size 2`.\n\nMI325X is gfx942, which differs from gfx950 in two ways that matter. It has no\nFP4 MFMA, so the MXFP4 experts run through a Triton kernel and device memory is\nbetter spent on KV than on resident Engram tables. It also segfaults in every\nworker during piecewise graph capture, so this recipe sets\n`VLLM_USE_BREAKABLE_CUDAGRAPH=0` and captures only full decode graphs\n(`--compilation-config '{\"cudagraph_mode\":\"FULL_DECODE_ONLY\"}'`); prefill runs\neagerly.\n\n`--monokernel` selects the gfx942 mono decode kernels from\n[vllm-project/vllm#60731](https://github.com/vllm-project/vllm/pull/60731).\nThey run at TP4 only, on decode steps of up to 42 rows (7 requests with\nfive DSpark drafts). Larger steps, prefill, and mixed batches take the\nregular path, and TP2 stays on vLLM's path. With their weight copies\nincluded, #60731 measured 170.11 GiB of weights a rank, up from 98.88 GiB.\nAt `--gpu-memory-utilization 0.9` the KV pool still held 11.18 million\ntokens. Use a ROCm nightly from 2026-10-20 or later;\n`nightly-rocm100-df3bd094aeea829f27baa0a5282830464f601d9f` is the first.\nEarlier builds have the flag for gfx950 only and refuse to start on MI325X.\n\nThe offload resolves on gfx942 only on builds carrying\n[vllm-project/vllm#57491](https://github.com/vllm-project/vllm/pull/57491),\nthe same gate MI355X needs. Those builds also default `cpu_offload` on through\n`VLLM_PLE_CPU_OFFLOAD`, so set it explicitly rather than inheriting the\ndefault.\n\n## H200 Tensor Parallel\n\nOn H200, **Tensor Parallel** uses the TP4 default with Engram CPU offload\n(`--engram-config '{\"cpu_offload\":true}'`). The Engram tables move to pinned\nhost DRAM and are read through UVA, so the output is unchanged. On 141 GB\ncards that offload is what makes TP4 practical: it moves 23.6 GiB per rank off\nthe GPU, leaving 81.2 GiB of resident weights and 38.5 GiB of KV per GPU\n(about 20M tokens). No scheduler caps are needed at this replica size.\n\n## Blackwell TP and DEP\n\nOn B200, B300, GB200 and GB300, **Tensor Parallel** uses **TP2** with\n`FLASHINFER_MLA_SPARSE_DSV41` and Engram CPU offload\n(`--engram-config '{\"cpu_offload\":true}'`), which moves the Engram tables to\npinned host DRAM and reads them through UVA; the output is unchanged.\n**Data + Expert Parallel** uses the hardware's\nGPU count: DEP4 on GB200/GB300 trays, DEP8 on B200/B300 nodes. It enables\n`--enable-expert-parallel`, `FLASHMLA_MEGA_ATTN_DSV41`,\n`--kernel-config '{\"moe_backend\":\"deep_gemm_mega_moe\"}'`, and\n`--engram-config '{\"embedding_across_dp\":true}'`.\n\nBoth configurations set `indexer_kv_dtype` to `mxfp4`, `indexer_sparse_logits`\nto `true`, `--kv-cache-dtype fp8`, and `--max-num-seqs 128`. Reasoning uses\n`--reasoning-parser deepseek_v41`.\n\nEach Blackwell SKU carries an exact-GPU override that takes precedence over\nthe shared Blackwell defaults. B300 keeps its existing CUDA Graph capture\nconfiguration (`--max-cudagraph-capture-size 8190`),\n`--max-num-batched-tokens 8192` and `--max-num-seqs 256`; B200, GB200 and\nGB300 add Engram CPU offload and otherwise inherit the shared Blackwell\nsettings. On B200 and GB200 both strategies open on the InferenceX AgentX presets (see\n**AgentX tuning on NVIDIA GPUs**); pick **Baseline** in the Preset row for the\nshared Blackwell settings.\nScheduler limits are workload-dependent at TP2, so size\n`--max-num-batched-tokens` and `--max-cudagraph-capture-size` for your own\nserving profile. For high interactivity on any of them, use\n`--tensor-parallel-size 4`.\n\n## AgentX tuning on NVIDIA GPUs\n\nThe InferenceX AgentX lanes that run as one server are presets, each with the lane's\nconcurrency points (see the **Presets** tab):\n\n- **GB200**: **AgentX TP** (TP4 at concurrency 4, 10 and 16) and **AgentX DEP**\n  (DEP4 at 64 to 256), the defaults on GB200\n  ([InferenceX #4783](https://github.com/SemiAnalysisAI/InferenceX/pull/4783)).\n- **B200**: **AgentX TP** (TP4 at concurrency 4 to 24) and **AgentX DEP**\n  (DEP4 at 66, DEP8 at 224 to 576), the defaults on B200\n  ([InferenceX #4786](https://github.com/SemiAnalysisAI/InferenceX/pull/4786)).\n- **B300**: **AgentX TP4** and **AgentX DEP2** on the specialized decode image\n  ([InferenceX #4332](https://github.com/SemiAnalysisAI/InferenceX/pull/4332)).\n- **GB300**: **AgentX TP4 (Dynamo)** (TP4 at concurrency 1, 4 and 8, with\n  latency-specialized decode)\n  ([InferenceX #5015](https://github.com/SemiAnalysisAI/InferenceX/pull/5015)).\n\nThe lanes served the 0909 launch checkpoint, **FP8 (0909)**. Where a DEP point uses\nfewer than the node's GPUs (DEP4 on B200), run one server per GPU group, each behind\nits own vLLM Router.\n\n### Dynamo disaggregated serving on B300\n\nThe AgentX lane in\n[InferenceX #4231](https://github.com/SemiAnalysisAI/InferenceX/pull/4231) runs\nN DEP2 prefill engines and one DEP decode engine, each with its own sidecar, behind one\nKV-routing frontend. Prefill pushes KV to decode with NIXL and keeps a host KV tier.\nThe `push_as_nixl` connector and `VLLM_MAX_ASYNC_KV_ADMITS_PER_STEP` come from the dev\nimage `vllm/vllm-openai:nightly-x86_64-dev-20261012-59e75f4`. GB300's Dynamo lane is\nthe **AgentX DEP2 prefill / DEP decode (Dynamo)** preset (see **GB300** under\nPrefill/Decode disaggregation).\n\n| Clients | Prefill engines | Decode | Decode `--max-num-seqs` | `VLLM_MAX_ASYNC_KV_ADMITS_PER_STEP` |\n|---|---:|---|---|---|\n| 256, 768, 1280, 2048, 3584 | 2, 2, 3, 4, 5 | DEP8 | 18, 40, 72, 132, 168 | 4 |\n\nBoth roles use TP1 with expert parallelism and these settings:\n\n```bash\nexport VLLM_USE_V2_MODEL_RUNNER=1 VLLM_ALLREDUCE_USE_SYMM_MEM=0 VLLM_RANDOMIZE_DP_DUMMY_INPUTS=1 NCCL_CUMEM_ENABLE=1\nexport UCX_MEMTYPE_CACHE=n UCX_MEMTYPE_REG_WHOLE=n UCX_RNDV_PIPELINE_ERROR_HANDLING=y\nexport VLLM_ENGINE_READY_TIMEOUT_S=7200 VLLM_RPC_TIMEOUT=600000\n--attention-config '{\"backend\":\"FLASHMLA_MEGA_ATTN_DSV41\",\"indexer_kv_dtype\":\"mxfp4\",\"indexer_sparse_logits\":true}'\n--kernel-config '{\"enable_flashinfer_autotune\":true,\"moe_backend\":\"deep_gemm_mega_moe\",\"sparse_indexer_topk_backend\":\"deep_select\"}'\n--speculative-config '{\"method\":\"dspark\",\"num_speculative_tokens\":5,\"draft_sample_method\":\"probabilistic\",\"enable_adaptive_verification\":false}'\n--kv-cache-dtype fp8 --gpu-memory-utilization 0.95 --prefill-schedule-interval 2 --enable-ep-weight-filter --numa-bind\n```\n\n| Setting | B300 |\n|---|---|\n| NIXL backend | `LIBFABRIC` over EFA |\n| Env | `FI_PROVIDER=efa FI_EFA_USE_DEVICE_RDMA=1 FI_EFA_FORK_SAFE=1 UCX_TLS=cuda_copy,cuda_ipc,srd,tcp NIXL_UCX_SGL_ENABLE=0` |\n| Allocator | `--no-enable-cumem-allocator` (EFA cannot register VMM memory) |\n| DSpark | adds `\"rejection_sample_method\":\"block\"` |\n| Engram | `{\"cpu_offload\":true,\"embedding_across_dp\":true,\"use_thp\":false}` |\n| Host KV per prefill rank | 70 GiB |\n| Prefill `--max-num-batched-tokens` | 16384 |\n| Decode EPLB redundant experts | 16 |\n| Decode `--numa-bind-nodes` | `0 0 0 0 1 1 1 1` |\n\nOn B300, set `--cpu-distributed-timeout-seconds 7200` for the Engram load. NIXL's\nLIBFABRIC plugin also needs libfabric and rdma-core from the AWS EFA installer and the\nCUDA 12 runtime (`nvidia-cuda-runtime-cu12`), which the image lacks.\n\nPrefill runs `--data-parallel-size 2` per GPU pair with `--max-num-seqs 64`,\n`--long-prefill-token-threshold 8192` and `--prefix-cache-retention-interval 32768`. Its\nKV config:\n\n```json\n{\"kv_connector\":\"MultiConnector\",\"kv_role\":\"kv_both\",\"kv_connector_extra_config\":{\"connectors\":[\n  {\"kv_connector\":\"NixlConnector\",\"kv_connector_module_path\":\"vllm.distributed.kv_transfer.kv_connector.v1.nixl.push_as_nixl\",\"kv_role\":\"kv_both\",\"kv_load_failure_policy\":\"fail\",\"kv_buffer_device\":\"cuda\",\"kv_connector_extra_config\":{\"backends\":[\"LIBFABRIC\"],\"enforce_handshake_compat\":false,\"kv_lease_duration\":120}},\n  {\"kv_connector\":\"SimpleCPUOffloadConnector\",\"kv_role\":\"kv_both\",\"kv_connector_extra_config\":{\"cpu_bytes_to_use\":75161927680,\"lazy_offload\":true}}]}}\n```\n\nPrefill graphs:\n`{\"mode\":\"VLLM_COMPILE\",\"cudagraph_mode\":\"FULL_AND_PIECEWISE\",\"cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2046],\"decoder_replay_cudagraph_capture_sizes\":[6,12,18,24,30,36,48,60,72,96,120,144,192,240,288,384,480,576,768,1020,1536,2048],\"max_cudagraph_capture_size\":2046}`.\n\nDecode uses the `NixlConnector` entry alone with `\"kv_role\":\"kv_consumer\"` and\n`--no-enable-prefix-caching`. It sets `--max-num-batched-tokens` to ten times\n`--max-num-seqs` and captures FULL decode-only graphs in steps of 6 up to six times\n`--max-num-seqs`. It balances experts with `--enable-eplb` and\n`--eplb-config '{\"communicator\":\"symm_mem\",\"num_redundant_experts\":16,\"window_size\":1000,\"step_interval\":3000,\"use_async\":true}'`.\n\nLaunch the sidecars as in **Dynamo sidecar serving**, with\n`--grpc-startup-deadline-secs 3600`. Start the frontend so that every request prefills\non a prefill engine and each session stays on one prefill engine's prefix and host KV\ncache.\n\n```bash\nexport DYN_ROUTER_TEMPERATURE=0 DYN_ROUTER_QUEUE_THRESHOLD=None DYN_ROUTER_ACTIVE_REQUEST_EXPIRY_SECS=3600\nexport DYN_TOKENIZER=fastokens DYN_TOKENIZER_CACHE=1 DYN_TOKENIZER_CACHE_BYTES=8000000000\nexport DYN_TCP_CHANNEL_BUFFER=128 DYN_TCP_REQUEST_TIMEOUT=60\nuv run --no-project python -m dynamo.frontend --http-port 8000 --router-mode kv \\\n  --router-session-affinity-ttl-secs 14400 --active-decode-blocks-threshold None \\\n  --active-prefill-tokens-threshold None --active-prefill-tokens-threshold-frac None\n```\n\n## Dynamo sidecar serving\n\nDynamo can route requests to vLLM's native gRPC server through a colocated\nsidecar. Choose the checkpoint, hardware and parallelism in the command\nbuilder above. For compatible runtime installation and complete launch\nexamples, see the [Dynamo vLLM sidecar guide](https://github.com/ai-dynamo/dynamo/blob/main/docs/fern/pages/developer-guide/knowledge-base/modular-components/backends/vllm/sidecar.md).\n\nThe B300 deployment in [InferenceX #4231](https://github.com/SemiAnalysisAI/InferenceX/pull/4231)\nvalidated this integration with the original\n[DeepSeek-V4.1-Flash checkpoint](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash).\nThe builder defaults to DeepSeek-V4.1-Flash-1017; that checkpoint was not\ncovered by this deployment's validation.\n\n### Connect the engine and sidecar\n\nUse the generated model and hardware arguments with `vllm-rs serve`.\nAdd `--grpc-port 19000` and set `--reasoning-parser None`; omit the engine's\n`--tool-call-parser` and `--enable-auto-tool-choice` flags because the\nsidecar handles reasoning and tool parsing. For KV-aware routing, enable\nKV events on the engine with `--kv-events-config`:\n\n```json\n{\"publisher\":\"zmq\",\"topic\":\"kv-events\",\"enable_kv_cache_events\":true,\"endpoint\":\"tcp://*:5200\"}\n```\n\nWith etcd running, set its reachable address in each frontend and sidecar\nshell, along with the shared request and event planes:\n\n```bash\nexport ETCD_ENDPOINTS=http://ETCD_HOST:2379\nexport DYN_REQUEST_PLANE=tcp DYN_EVENT_PLANE=zmq\n```\n\nIn a separate shell on the engine host, connect one sidecar to the engine:\n\n```bash\nexport DYN_VLLM_KV_EVENT_PORT=5200\nuv run --no-project python -m dynamo.vllm.sidecar \\\n  --grpc-endpoint 127.0.0.1:19000 \\\n  --dyn-tool-call-parser deepseek_v41 --dyn-reasoning-parser deepseek_v41\n```\n\nStart a shared frontend:\n\n```bash\nuv run --no-project python -m dynamo.frontend --http-port 8000 --router-mode kv\n```\n\nFor disaggregated serving, configure the engines as in\n**Dynamo disaggregated serving on B300** (GB300: its preset runbook). Add `--disaggregation-mode prefill --component prefill` to prefill sidecars\nand `--disaggregation-mode decode` to decode sidecars. Allocate distinct\ngRPC and KV-event ports when running several engines on the same host.\n\nCheck the frontend after the workers register:\n\n```bash\ncurl --fail http://FRONTEND_HOST:8000/health\ncurl --fail http://FRONTEND_HOST:8000/v1/chat/completions \\\n  -H 'Content-Type: application/json' \\\n  -d '{\"model\":\"deepseek-ai/DeepSeek-V4.1-Flash\",\"messages\":[{\"role\":\"user\",\"content\":\"Hello\"}],\"max_tokens\":32}'\n```\n\nSet the request's `model` to the served model name selected for the engine.\n\n## DGX Station (GB300) Tensor Parallel\n\nOne GB300 exposes 252 GB of HBM next to 496 GB of Grace LPDDR5X, and the\n476 GiB checkpoint does not fit the HBM. The Station row serves TP1 with\nboth Engram tables (189 GiB) and 60 GiB of routed experts in pinned host\nmemory, read through UVA. At `--gpu-memory-utilization 0.97` the KV pool\nholds about 3.09M tokens at full 1M context. 60 GiB is the lowest\nverified offload at 1M context with speculative decoding on (55 fails the\nminimum-KV check). For more concurrent 1M contexts, raise\n`--cpu-offload-gb` to 70 and accept ~10% lower single-stream decode.\n\nMeasured on `vllm/vllm-openai:nightly-dee37d89`:\n\n| | 1 stream | 2 | 4 | 8 | 12 | 16 |\n|---|--:|--:|--:|--:|--:|--:|\n| aggregate tok/s, prose | 90.5 | 124 | 168 | 302 | 378 | 416–423 |\n\n- **Autotune.** The first boot on a new flag set or image runs a 75–90\n  minute FlashInfer autotune. Mount `/root/.cache/vllm` on a persistent\n  volume; later boots start in about 7 minutes.\n- **Host memory.** With the server loaded, ~430 of the 494 GiB Grace pool\n  is in use (pinned weights plus loader shared memory).\n  `VLLM_WEIGHT_OFFLOADING_DISABLE_PIN_MEMORY=1` frees ~66 GB at about 7%\n  lower single-stream decode.\n\nLaunch scripts and full measurements:\n[J-M-Recipes/recipes](https://github.com/J-M-Recipes/recipes/tree/main/recipes/dgx-station-gb300/deepseek-v4.1-flash-vllm-uva-dspark).\n\n## KV cache offloading\n\nOffloading requires vLLM 0.31.0+, the first release containing [vllm-project/vllm#57145](https://github.com/vllm-project/vllm/pull/57145).\nValidation used [deepseek-ai/DeepSeek-V4.1-Flash](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash) on 4×H200 (TP4),\nvLLM commit `d1b4028d7e`, the Python frontend, `--enforce-eager`,\n`--max-model-len 16384`, `--max-num-seqs 16` and `--max-num-batched-tokens 8192`.\nDeepSeek validation used `--gpu-memory-utilization 0.95`.\nValidation used `TieringOffloadingSpec`: 8 GiB total CPU tier, `blocks_per_chunk: 1`,\na persistent filesystem `root_dir`, eight read/write threads and `PYTHONHASHSEED=0`.\nThree CPU-tier reloads and three filesystem reloads after restarting the server passed.\nReloaded responses matched the cold output, including the reasoning field.\nThe five-shot GSM8K diagnostic scored 31/32; this is a small sample, not the full benchmark.\nThese results cover this text-only configuration, not the builder's larger tier/chunk defaults or other variants.\n\n## References\n\n- [Model card](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash)\n- [DeepSeek-V4.1-Flash-1017 model card](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017)\n- [Technical report](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash/blob/main/DeepSeek_V41_Tech_Report.pdf)\n- [DeepSeek-V4-Flash recipe](/deepseek-ai/DeepSeek-V4-Flash) — the V4 sibling this diverges from\n- [DeepSeek-V3.2-Exp recipe](/deepseek-ai/DeepSeek-V3.2-Exp) — where the indexer first appeared\n\n## Ascend 950DT PD deployment\n\nUse the [official MXFP checkpoint](https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017)\non two dedicated eight-NPU nodes for 1P1D. Before serving, follow the\n[release tutorial's 950DT container setup](https://github.com/vllm-project/vllm-ascend/blob/49007fd8cbcf597d9a1a4e2ebc968c69257045ed/docs/source/tutorials/models/DeepSeek-V4.1-Flash.md#41-docker-image-installation)\nfor the host driver, URMA devices and mount, and local checkpoint storage.\nKeep 512 GiB of container shared memory for Engram. Replace the model ID\nin the serving command with the absolute path of the mounted checkpoint\non your data volume. Use the same path on both nodes.\n\nThe 1P1D preset uses MooncakeHybridConnector for direct KV transfer and\nlaunches both DP groups with `--data-parallel-multi-port-external-lb`.\nThis native launcher has been checked by rendering the commands.\n",
  "source": {
    "source": "vllm",
    "repo": "vllm-project/vllm",
    "ref": "main",
    "sha": "d51a5147112a31dfbed08cfa4b774c27c34ce90d",
    "path": "recipes/models/deepseek-ai/DeepSeek-V4.1-Flash.yaml",
    "edit_url": "https://github.com/vllm-project/vllm/edit/main/recipes/models/deepseek-ai/DeepSeek-V4.1-Flash.yaml",
    "overlays": [
      {
        "source": "vllm-ascend",
        "repo": "vllm-project/vllm-ascend",
        "ref": "main",
        "sha": "146b0a57242da88e245bfc4840367947d9b33a68",
        "path": "recipes/overlays/deepseek-ai/DeepSeek-V4.1-Flash.yaml",
        "edit_url": "https://github.com/vllm-project/vllm-ascend/edit/main/recipes/overlays/deepseek-ai/DeepSeek-V4.1-Flash.yaml"
      }
    ]
  }
}