Skip to content

[Doc] Add 950DT DeepSeek-V4.1-Flash deployment examples - #20800

Open
rikakuhi wants to merge 9 commits into
vllm-project:mainfrom
rikakuhi:codex/a5-dsv41-pd-docs-main
Open

rikakuhi wants to merge 9 commits into
vllm-project:mainfrom
rikakuhi:codex/a5-dsv41-pd-docs-main

Conversation

@rikakuhi

@rikakuhi rikakuhi commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

What this PR does / why we need it?

Document the 950DT (A5) DeepSeek-V4.1-Flash deployment options for main.

  • Section 5.1 adds single-node colocated DP8/TP1/EP8 serving with the original MXFP checkpoint.
  • Section 5.2 documents the two-server DP8/TP1/EP8 launcher, backend commands and proxy. Prefill uses 5120 batch tokens, local prefix caching and --swa-bounded-replay. Decode uses 1024 batch tokens, local prefix caching, FULL_DECODE_ONLY and the recompute scheduler with --no-swa-bounded-replay.
  • The optional variants cover experimental PCP8 Prefill for long prompts and EP16 Decode across two Decode servers. Both include the corresponding connector topology and proxy endpoint changes.
  • Section 5.3.5 gives the 950DT Memcache DRAM pool setup, P/D templates and hit checks. Its Prefill uses 4096 batch tokens and disables local prefix caching to expose external hits. Each worker contributes 25GB of DRAM in the example.
  • The guide includes pooling-specific container mounts, service endpoints, text and image checks, and a per-role tuning table.

The matching release change is #20801.

Related contribution by @linfeng-yuan in #20137.

Does this PR introduce any user-facing change?

Documentation only. The change is confined to docs/source/tutorials/models/DeepSeek-V4.1-Flash.md.

How was this patch tested?

  • markdownlint, codespell and typos pre-commit hooks passed for the tutorial. git diff --check passed for the PR range.
  • Verified the batch limits, replay flags, prefix caching and connector settings in all five serving templates. The Markdown link checker passed all six external links.
  • Syntax-checked the 23 changed shell blocks and parsed the 22 JSON options across five A5 service templates. Rendered the Markdown and checked the local links and anchors added by this PR.
  • Exercised the documented DP launcher with local stand-in scripts for DP8, the second DP16 node, TP2, and a rank exiting with status 7 while a peer remained active. Verified rank, port and device assignments and a nonzero launcher exit on failure.
  • Checked the Docker build arguments against the pin in this branch and the proxy path against the source copied by Dockerfile.a5. The Docker build was not executed.
  • Full local pre-commit checks were blocked by a TLS timeout downloading the actionlint Go toolchain. On Windows the gitleaks hook also requires /bin/bash. The symbolic-meta check passed when invoked with the local Python interpreter.
  • Applied the tutorial diff from release PR [Doc] Update DeepSeek-V4.1-Flash W4A8 deployment for v0.32.0 #20764 (f4066adf) in a local three-way merge to check a possible main backport. Both application orders produced the same tutorial. Checked the same-page anchors in both the standalone and combined tutorials. The A3 PD commands from [Doc] Update DeepSeek-V4.1-Flash W4A8 deployment for v0.32.0 #20764 and the 950DT service commands are preserved in the combined file.
  • Hardware inference, P-to-D transfer, pool-hit metrics and performance were not run for this branch.

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@24420b7

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>
@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 expands the DeepSeek-V4.1-Flash tutorial by introducing a detailed reference recipe for A5 (950DT) hardware. It provides necessary configuration steps for a two-server disaggregated Prefill-Decode deployment, ensuring users have a clear path for setting up the environment, launching DP engines, and configuring the MooncakeHybridConnector. The changes focus on providing a complete reference for the A5 architecture without altering existing A2/A3 examples.

Highlights

  • Documentation Update: Added a comprehensive deployment guide for DeepSeek-V4.1-Flash on A5 (950DT) hardware, including a DP8/TP1/EP8 reference configuration.
  • Configuration Details: Documented runtime requirements, container setup, proxy configuration, and specific batch token settings for Prefill and Decode roles.
  • Model Runner Support: Clarified the usage of model runner V2 for A5 deployments while maintaining existing A2/A3 V1-based documentation.
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. ↩

@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.

@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

Suggested PR Title:

[Doc][Feature] Add documentation for DeepSeek-V4.1-Flash on A5 (950DT) hardware

Suggested PR Summary:

### What this PR does / why we need it?
This pull request updates the DeepSeek-V4.1-Flash tutorial documentation to add support and deployment instructions for 950DT products (A5). It introduces a DP8/TP1 Prefill-Decode (PD) disaggregated configuration reference using the original checkpoint, model runner V2, and native SWA bounded replay. Detailed steps are provided for Docker image installation, DP launcher setup, role-specific templates (Prefill and Decode), proxy deployment, and replay configuration.

### Does this PR introduce _any_ user-facing change?
No, this is a documentation-only update.

### How was this patch tested?
No code changes were made; documentation was updated and verified for accuracy.

I have no further feedback to provide as there are no review comments.

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>
@rikakuhi rikakuhi changed the title [Doc] Add A5 DeepSeek-V4.1-Flash PD deployment guide [Doc] Add 950DT DeepSeek-V4.1-Flash deployment examples Nov 4, 2026
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>
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>
@github-actions

Copy link
Copy Markdown
Contributor

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

3 similar comments
@github-actions

Copy link
Copy Markdown
Contributor

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

@github-actions

Copy link
Copy Markdown
Contributor

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

@github-actions

Copy link
Copy Markdown
Contributor

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

This branch has not been deployed

No deployments
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 merge-conflicts

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant