From d7c9982556eacf893bf88d669f69ba2a58270029 Mon Sep 17 00:00:00 2001 From: Fangzhou-Ai Date: Sat, 12 Sep 2026 05:48:26 +0000 Subject: [PATCH 1/2] [DeepSeek] V4.1-Flash: point the AMD image at a ROCm nightly The deepseekv41-flash-0909 tag predates vllm-project/vllm#56503, which moves the mHC delayed pre block off the eager Torch reference and onto AITER. Pin the AMD image to the nightly that carries it; NVIDIA is unaffected and stays on 0909. Signed-off-by: Fangzhou-Ai Co-authored-by: Cursor --- models/deepseek-ai/DeepSeek-V4.1-Flash.yaml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/models/deepseek-ai/DeepSeek-V4.1-Flash.yaml b/models/deepseek-ai/DeepSeek-V4.1-Flash.yaml index fcffd84b1..d8bd1a9f0 100644 --- a/models/deepseek-ai/DeepSeek-V4.1-Flash.yaml +++ b/models/deepseek-ai/DeepSeek-V4.1-Flash.yaml @@ -5,7 +5,7 @@ meta: 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-09-11 + date_updated: 2026-09-12 difficulty: advanced tasks: - text @@ -27,7 +27,10 @@ model: default_frontend: rust docker_image: nvidia: "vllm/vllm-openai:deepseekv41-flash-0909" - amd: "vllm/vllm-openai-rocm:deepseekv41-flash-0909" + # AMD tracks a ROCm nightly rather than the 0909 release tag: that tag + # predates vllm-project/vllm#56503, which moves the mHC delayed pre block + # off the eager Torch reference and onto AITER. + amd: "vllm/vllm-openai-rocm:nightly-eed1f3d0c6043bd494424a22443ee198dd56f657" architecture: moe parameter_count: "552B" active_parameters: "8-16B" @@ -281,7 +284,9 @@ guide: | ## Prerequisites - The `vllm/vllm-openai:deepseekv41-flash-0909` image (vLLM 0.30.0+). No pip wheel serves - this architecture, so the Install block only offers Docker. + this architecture, so the Install block only offers Docker. On AMD, use the + `vllm/vllm-openai-rocm:nightly-eed1f3d0...` image instead — it carries the AITER + mHC path from vllm-project/vllm#56503, which the 0909 tag predates. - The Rust OpenAI frontend is selected by default in the command builder. Switch to Python if you encounter unsupported features or compatibility issues. - Expect a long first load: `VLLM_ENGINE_READY_TIMEOUT_S=3600` is set for that reason. From 42c2552e106d81a652a0c7bce16823535a172bbd Mon Sep 17 00:00:00 2001 From: Fangzhou-Ai Date: Sat, 12 Sep 2026 21:54:48 +0000 Subject: [PATCH 2/2] [DeepSeek] V4.1-Flash: select the CK a8w4 MoE experts on AMD Naming aiter_triton_mxfp4_bf16 maps to exactly one entry and pins the Triton W4A16 kernel, so decode ran _moe_gemm_a16w4. Plain aiter opens vLLM's full priority list, whose head is the Composable Kernel backend, and the experts become the a8w4 family that the DSV4-Pro MI355X recipe already uses. Decode traces on MI355X TP4 at 131k context put MoE GEMM at 2.30 vs 2.72 ms/step at concurrency 1 and 7.18 vs 9.06 at concurrency 16, for whole-step gains of 4.2% to 8.7%, with gsm8k strict-match unchanged at 0.9719. Also quiet aiter.ops.triton, whose every warning is about Gluon availability. Gluon supports only gfx1250, so on gfx950 it is a fixed property; it was 98% of the lines in a server log with no throughput effect. --- models/deepseek-ai/DeepSeek-V4.1-Flash.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/models/deepseek-ai/DeepSeek-V4.1-Flash.yaml b/models/deepseek-ai/DeepSeek-V4.1-Flash.yaml index d8bd1a9f0..b26245079 100644 --- a/models/deepseek-ai/DeepSeek-V4.1-Flash.yaml +++ b/models/deepseek-ai/DeepSeek-V4.1-Flash.yaml @@ -98,11 +98,24 @@ hardware_overrides: extra_args: - "--gpu-memory-utilization" - "0.9" + # Plain "aiter" rather than "aiter_triton_mxfp4_bf16": the specific name + # maps to one entry and pins the Triton W4A16 kernel (_moe_gemm_a16w4), + # while the plain name opens vLLM's full priority list, whose head is the + # Composable Kernel backend, giving the a8w4 experts + # (mfma_moe1_silu_mul_afp8_wfp4_bf16 / mfma_moe2_afp8_wfp4_bf16). CK + # quantizes activations to FP8 internally, despite the BF16 backend name + # and this checkpoint declaring activation_scheme=dynamic with no + # input_scale tensors. - "--moe-backend" - - "aiter_triton_mxfp4_bf16" + - "aiter" extra_env: VLLM_ROCM_USE_AITER: "1" VLLM_ROCM_USE_AITER_MOE: "1" + # aiter.ops.triton warns on every call that Gluon is unavailable and it + # is falling back to Triton. Gluon supports only gfx1250, so on gfx950 + # that is a fixed property rather than a condition worth reporting, and + # it was 98% of the lines in a server log (411k of 417k, 30 MiB of 32). + AITER_TRITON_LOG_LEVEL: "ERROR" # DeepseekV41ForCausalLM does not support torch.compile. The ROCm sparse # SWA backend only reports UNIFORM_BATCH, so default FULL_AND_PIECEWISE # cannot start unless breakable CUDA graphs are on. @@ -291,6 +304,7 @@ guide: | to Python if you encounter unsupported features or compatibility issues. - Expect a long first load: `VLLM_ENGINE_READY_TIMEOUT_S=3600` is set for that reason. - 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. + - On AMD, the generated command passes `--moe-backend aiter` rather than naming a kernel. Naming `aiter_triton_mxfp4_bf16` pins the Triton W4A16 kernel; the plain name lets vLLM select the Composable Kernel a8w4 experts, which measured 4–9% faster per decode step at 131k context on MI355X (larger gains at higher concurrency) with gsm8k strict-match unchanged. ## Verifying