Skip to content

[Doc] Add 950DT DeepSeek-V4.1-Flash deployment examples for v0.32.0rc - #20801

Merged
liqian79 merged 23 commits into
vllm-project:releases/v0.32.0rcfrom
rikakuhi:codex/a5-dsv41-pd-docs-v032rc
Nov 9, 2026
Merged

liqian79 merged 23 commits into
vllm-project:releases/v0.32.0rcfrom
rikakuhi:codex/a5-dsv41-pd-docs-v032rc

Conversation

@rikakuhi

@rikakuhi rikakuhi commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

What this PR does / why we need it?

Add DeepSeek-V4.1-Flash deployment instructions for 950DT products alongside the A2/A3 guide, targeting vLLM Ascend v0.32.0rc with vLLM v0.32.0. Integrate the merged A3 update in #20764 while preserving its serving commands, accuracy table, and original tuning guidance.

  • Add single-node DP8/TP1/EP8 serving and two-node PD with DP8/TP1/EP8 per role, plus optional PCP8 Prefill and EP16 Decode layouts. The 950DT examples use the official DeepSeek-V4.1-Flash-1017 MXFP checkpoint from the deepseek-ai repositories on Hugging Face and ModelScope, with model runner V2. Both ordinary and pooled Decode explicitly enable local prefix caching, disable SWA bounded replay, and keep the recompute scheduler enabled.
  • Add Memcache DRAM pooling and organize the instructions into 950DT products and A3 series tabs, following v0.30.0. Keep the existing A2 Mooncake example. The 950DT pooled Prefill uses 5120 batch tokens and explicitly enables SWA bounded replay, matching ordinary Prefill; local prefix caching stays disabled to exercise the external pool.
  • Cover all three hardware families and their pooling examples in the overview and feature table. Consolidate weight-path setup and service verification, and retain the original concise performance-tuning section.
  • Use quay.io/ascend/vllm-ascend:{{ vllm_ascend_version }}-a5 consistently with the A2/A3 release image examples. Use 950DT products in the prose and preserve the image suffix -a5.
  • Apply the relevant textual review feedback from [Doc] Update DeepSeek-V4.1-Flash W4A8 deployment for v0.32.0 #20764: omit redundant 950DT defaults, retain explicit Prefill eager execution and disabled Engram overlap, and repair section links.

Companion to the main-branch tutorial update in #21211. Merge #21211 first.

Related contribution by @linfeng-yuan in #20137.

Does this PR introduce any user-facing change?

Documentation only. Update docs/source/tutorials/models/DeepSeek-V4.1-Flash.md and its incoming Memcache-service link in DeepSeek-V4-Flash.md. Users get 950DT installation and deployment instructions alongside the updated A2/A3 guide. Runtime code is unchanged.

How was this patch tested?

  • markdownlint, codespell, typos, and git diff --check: passed.
  • Syntax-checked 44 shell blocks, parsed four Python blocks, 65 shell JSON arguments and two standalone JSON blocks, and validated 47 local links against rendered Markdown. Release image macros were substituted for shell syntax checks.
  • Rendered the Memcache section with the repository's tab extension settings: two hardware tabs, each containing four steps. Validated the pooled Prefill batch-token alignment and explicit SWA replay. For the Decode prefix-cache update, verified that only the two 950DT Decode scripts changed; both pass Bash syntax checks and all ten JSON arguments parse. Other code blocks are unchanged by this update.
  • Verified that all ten upstream A2/A3 serving commands and launchers are unchanged. The 950DT launcher is preserved. The 950DT Prefill and Decode settings described above were checked against the paired vLLM v0.32.0 configuration and Ascend scheduler/connector code.
  • Rebased onto 0bd823c53, containing [Doc] Update DeepSeek-V4.1-Flash W4A8 deployment for v0.32.0 #20764.
  • Full bash format.sh ci and the required pre-commit run --from-ref <base> --to-ref <head> --hook-stage manual did not complete: actionlint Go-toolchain environment setup encountered download connection errors and timeouts. The focused documentation hooks above passed.
  • No NPU inference, P-to-D transfer, pool-hit, accuracy, or performance validation was run for this update.

Checklist

The runtime-test checklist items below do not apply to this documentation-only change. Hardware execution of the documented recipe remains unverified as stated above.

Testing

  • Boundary / edge-case coverage: I reviewed whether this change involves boundary conditions (e.g. empty input, single/zero element, min/max values, off-by-one, sequence-length limits, integer overflow). Where applicable, I added unit tests covering these edge cases in tests/ut/ or tests/e2e/.

  • Regression test: If this PR fixes a bug, I added a regression test that would fail without the fix.

  • Error / failure path coverage: I covered abnormal paths (exceptions, timeouts, out-of-range, division by zero) in addition to the happy path.

  • Meaningful & reliable tests: New tests assert real behavior and are not written merely to satisfy CI.

  • Performance impact: If this PR touches a performance-sensitive path, I attached benchmark results and added performance regression tests.

  • vLLM main: vllm-project/vllm@544f182

@rikakuhi
rikakuhi requested review from LCAIZJ and Yikun as code owners November 3, 2026 12:21
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request adds a new reference deployment guide for the DeepSeek-V4.1-Flash model on A5 (950DT) hardware using a disaggregated Prefill-Decode (PD) architecture. The changes provide a complete recipe for setting up the environment, launching DP engines, and configuring the proxy, ensuring consistency with existing A2/A3 documentation while highlighting necessary A5-specific runtime requirements.

Highlights

  • Documentation Update: Added a comprehensive A5 (950DT) PD deployment guide for DeepSeek-V4.1-Flash in the tutorials documentation.
  • Configuration Details: Included specific reference configurations for DP8/TP1/EP8, including launcher scripts, container setup, and model-runner V2 requirements.
  • Performance Tuning: Specified batch token limits (5120 for Prefill, 1024 for Decode) and clarified replay settings for vLLM 0.32.0 compatibility.
New Features

🧠 You can now enable Memory (public preview) to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution. ↩

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the DeepSeek-V4.1-Flash tutorial documentation to add a comprehensive guide for A5 (950DT) products, including a DP8/TP1 Prefill-Decode (PD) disaggregated configuration reference. It details the A5 runtime, container installation, DP launcher script, and role-specific templates for Prefill and Decode nodes, while clarifying the use of model runner V2 for A5. The reviewer's feedback correctly identifies that the PR title and summary do not adhere to the repository's style guide and provides a compliant suggested title and summary.

vLLM Ascend supports W8A8 deployment on Atlas 800 A3 and A2 servers. This
guide provides a single-node colocated A3 configuration and a two-node A3
Prefill-Decode (PD) disaggregated configuration. It also supports a two-node hybrid A2 configuration and a four-node Prefill-Decode (PD) disaggregated configuration.
For 950DT products (A5), Section 5.2 provides a DP8/TP1 PD reference using

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The Pull Request title and summary do not fully adhere to the repository's style guide. Specifically, the title is missing the [Branch] and [Action] prefixes, and the summary should be formatted using markdown code blocks as specified in the style guide.\n\nHere are the suggested PR Title and Summary according to the style guide:\n\nSuggested PR Title:\n\nmarkdown\n[v0.32.0rc][Doc][Feature] Add A5 DeepSeek-V4.1-Flash PD guide\n\n\nSuggested PR Summary:\n\nmarkdown\n### What this PR does / why we need it?\n\nThe DeepSeek-V4.1-Flash tutorial has no complete A5 (950DT) P/D deployment example in section 5.2. This PR adds a two-server DP8/TP1/EP8 reference guide for A5 (950DT) products, using the structure of the v0.30.0 A5 example.\n\nSpecifically, it:\n- Documents the matching A5 runtime, original checkpoint, container devices and mounts, and proxy file-descriptor limit.\n- Includes the per-rank DP launcher, separate Prefill/Decode templates, MooncakeHybridConnector topology and ports, and proxy startup and health checks.\n- Sets Prefill batch tokens to 5120, with prefix caching and bounded replay enabled. Decode uses batch tokens 1024, prefix caching enabled, FULL_DECODE_ONLY, and the recompute scheduler with bounded replay explicitly disabled.\n- Clarifies the A5 model-runner V2 and runtime requirements while retaining the existing A2/A3 examples.\n\nCompanion to https://github.com/vllm-project/vllm-ascend/pull/20800.\n\n### Does this PR introduce _any_ user-facing change?\n\nNo runtime/API/default change. This is documentation-only.\n\n### How was this patch tested?\n\nPassed locally on the final branch:\n- Ran markdownlint, codespell, and typos on the modified file.\n- Parsed all eight A5 Bash code blocks with `bash -n`, parsed the Python launcher with `ast.parse`, parsed the serving JSON, and checked relative documentation links.\n

References
  1. PR Title and Summary must follow the specific formats and be outputted in markdown code blocks. (link)

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Nov 3, 2026
@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

👋 Hi! Thank you for contributing to the vLLM Ascend project. The following points will speed up your PR merge:‌‌

  • A PR should do only one thing, smaller PRs enable faster reviews.
  • Every PR should include unit tests and end-to-end tests ‌to ensure it works and is not broken by other future PRs.
  • Write the commit message by fulfilling the PR description to help reviewer and future developers understand.

If CI fails, you can run linting and testing checks locally according Contributing and Testing.

@rikakuhi rikakuhi changed the title [Doc] Add A5 DeepSeek-V4.1-Flash PD guide for v0.32.0rc [Doc] Add 950DT DeepSeek-V4.1-Flash deployment examples for v0.32.0rc Nov 4, 2026
@github-actions

github-actions Bot commented Nov 5, 2026

Copy link
Copy Markdown
Contributor

This pull request has conflicts, please resolve those before we can evaluate the pull request.

Signed-off-by: rikakuhi <942697235@qq.com>
Signed-off-by: rikakuhi <942697235@qq.com>
Signed-off-by: rikakuhi <942697235@qq.com>
Signed-off-by: rikakuhi <942697235@qq.com>
Adapt the colocated, PCP, wide EP, Memcache and verification examples from linfeng-yuan in vllm-project#20137 and the v0.30.0 guide. Keep the ordinary PD templates and distinguish their replay and batch settings from the pooled deployment.

Signed-off-by: rikakuhi <942697235@qq.com>
List the host and port for each deployment so the Markdown link checker does not probe placeholder URLs. Keep the complete URL in the executable health check example.

Signed-off-by: rikakuhi <942697235@qq.com>
Give the runtime, replay and pooling settings directly in the model tutorial so readers can configure each role from the instructions for their hardware.

Signed-off-by: rikakuhi <942697235@qq.com>
Use the vLLM revision pinned by this branch, address the proxy in the image, and propagate local DP rank failures to the launcher.

Signed-off-by: rikakuhi <942697235@qq.com>
Keep 950DT installation, runner settings and tuning in their own paragraphs so that the A3 W4A8 update can merge independently.

Signed-off-by: rikakuhi <942697235@qq.com>
Use the published release-branch A5 image and put model and weight guidance alongside the other hardware examples. Disable local Decode prefix caching for both ordinary PD and Memcache.

Signed-off-by: rikakuhi <942697235@qq.com>
Signed-off-by: rikakuhi <942697235@qq.com>
Signed-off-by: rikakuhi <942697235@qq.com>
@rikakuhi
rikakuhi force-pushed the codex/a5-dsv41-pd-docs-v032rc branch from 9933d5f to d96f716 Compare November 5, 2026 11:32
Signed-off-by: rikakuhi <942697235@qq.com>
Signed-off-by: rikakuhi <942697235@qq.com>
Signed-off-by: rikakuhi <942697235@qq.com>
Signed-off-by: rikakuhi <942697235@qq.com>
Signed-off-by: rikakuhi <942697235@qq.com>
Describe how the parameter overlaps Engram preparation with model computation in the 950DT PD tutorial.

Signed-off-by: rikakuhi <942697235@qq.com>
@rikakuhi

rikakuhi commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor Author

/rerun
[Bot]: rerun completed.

Rerun (failed jobs only):

  • E2E

1 similar comment
@rikakuhi

rikakuhi commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor Author

/rerun
[Bot]: rerun completed.

Rerun (failed jobs only):

  • E2E

@rikakuhi

rikakuhi commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor Author

/rerun
[Bot]: rerun completed.

Rerun (failed jobs only):

  • E2E

@rikakuhi

rikakuhi commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor Author

/rerun
[Bot]: rerun completed.

Rerun (failed jobs only):

  • E2E

@liqian79
liqian79 merged commit 9ba4e5c into vllm-project:releases/v0.32.0rc Nov 9, 2026
29 of 31 checks passed
liqian79 pushed a commit that referenced this pull request Nov 9, 2026
### What this PR does / why we need it?

Add complete 950DT DeepSeek-V4.1-Flash deployment instructions alongside
the existing A2/A3 guide. The examples cover single-node DP8/TP1/EP8
serving, two-node PD, Memcache DRAM pooling, and optional PCP8 Prefill
and EP16 Decode layouts.

- Use the official `deepseek-ai/DeepSeek-V4.1-Flash-1017` MXFP
checkpoint from Hugging Face or ModelScope and Model Runner V2 in every
950DT serving template.
- Preserve the five 950DT serving templates from #20801: Prefill uses a
5120-token batch budget and SWA bounded replay; Decode enables prefix
caching, disables SWA bounded replay, and uses the recompute scheduler.
Pooled Prefill keeps local prefix caching disabled to verify external
pool reuse.
- Explain `multistream_engram_overlap`, organize Memcache deployment
into 950DT and A3 tabs, and cover all supported hardware in the
overview, weight table, and service verification instructions.
- Follow `main` for source installation and pair it with
`.github/vllm-main-verified.commit`. Container examples use the existing
documentation release-version macro.
- Preserve main's A2/A3 serving commands and launchers. In
`DeepSeek-V4-Flash.md`, only update the incoming Memcache-service
section link.

Supersedes #20800 as the main-branch counterpart of #20801.

### Does this PR introduce _any_ user-facing change?

Documentation only; no runtime code changes or release-note fragment.

### How was this patch tested?

- Markdownlint, codespell, typos, and `git diff --check`: passed for the
changed documentation.
- Syntax-checked 44 shell blocks and four Python blocks; parsed 65 shell
JSON arguments and two standalone JSON blocks; validated 47 local links.
- Rendered the Memcache section and verified separate `950DT products`
and `A3 series` tabs.
- Compared all five 950DT serving scripts byte-for-byte with #20801 at
`19991ed96`; all ten existing A2/A3 serving scripts match the main
baseline. Launchers are unchanged from the source recipe.
- Attempted `bash format.sh ci` and `pre-commit run --from-ref
dc9abfe --to-ref HEAD --hook-stage
manual`; both stopped during actionlint environment installation after a
60-second timeout. The focused documentation hooks above passed.
- No NPU inference, P-to-D transfer, pool-hit, accuracy, or performance
validation was run for this documentation update. No new runtime tests
were added.

---

### Checklist

The runtime-test items below do not apply to this documentation-only
change. Hardware validation remains outstanding as stated above.

#### Testing

- [ ] **Boundary / edge-case coverage**: I reviewed whether this change
involves boundary conditions and added tests where applicable.
- [ ] **Regression test**: If this PR fixes runtime behavior, I added a
regression test.
- [ ] **Error / failure path coverage**: I covered applicable runtime
error and failure paths.
- [ ] **Meaningful & reliable tests**: New tests assert behavior rather
than only satisfying CI.
- [ ] **Performance impact**: Hardware benchmarks are attached where
applicable.

- vLLM main:
vllm-project/vllm@24420b7

---------

Signed-off-by: rikakuhi <942697235@qq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants