Skip to content

[NPU] [DOC] Create deployment tutorials for mainstream models on Ascend NPU - #27893

Merged
sglang-npu-bot merged 60 commits into
sgl-project:mainfrom
amote-i:br_docs_model_tutorial
Jun 22, 2026
Merged

sglang-npu-bot merged 60 commits into
sgl-project:mainfrom
amote-i:br_docs_model_tutorial

Conversation

@amote-i

@amote-i amote-i commented Jun 11, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

Create deployment tutorials for mainstream models on Ascend NPU

Modifications

N/A

Accuracy Tests

N/A

Speed Tests and Profiling

N/A

Checklist

Review and Merge Process

  1. Ping Merge Oncalls to start the process. See the PR Merge Process.
  2. Get approvals from CODEOWNERS and other reviewers.
  3. Trigger CI tests with comments or contact authorized users to do so.
    • Common commands include /tag-and-rerun-ci, /tag-run-ci-label, /rerun-failed-ci
  4. After green CI and required approvals, ask Merge Oncalls or people with Write permission to merge the PR.

CI States

Latest PR Test (Base): ✅ Run #27924773314
Latest PR Test (Extra): ❌ Run #27924773253

@github-actions github-actions Bot added documentation Improvements or additions to documentation deepseek npu labels Jun 11, 2026

@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 introduces comprehensive deployment tutorials and documentation for running various LLMs (including DeepSeek, GLM, Kimi, MiniMax, and Qwen models) on Ascend NPUs using SGLang. The review feedback highlights a critical, recurring configuration issue across multiple tutorial files: several deployment commands incorrectly specify Data Parallelism (--dp-size) alongside Tensor Parallelism (--tp-size) in scenarios where the Tensor Parallelism size already consumes all available NPUs on the node(s). This misconfiguration would cause the server launch to fail, and the reviewer recommends removing these invalid DP-related flags.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@amote-i
amote-i marked this pull request as draft June 11, 2026 07:44
@amote-i
amote-i force-pushed the br_docs_model_tutorial branch 2 times, most recently from b1bc48d to 325d747 Compare June 16, 2026 01:30
amote-i added 12 commits June 17, 2026 10:10
- Fix MiniMax-M2.5 specs: 456B/45.9B active -> ~230B/10B active, 1M -> 200K context, remove MLA

- Fix Qwen3-8B/32B context length: 256K -> 128K (per official Qwen3 blog)

- Fix DeepSeek V3.2 context parallel flags: --enable-dsa-* -> --enable-nsa-* (NSA for V3.2)

- Update GLM-5.1 introduction with detailed architecture specs (744B/40B, 256 experts, MLA+DSA+MTP, ~200K context)

- Add BF16 model weight links for Qwen3.6-27B and Qwen3.6-35B-A3B

- Fix DeepSeek-R1 metatags description to match documented modes
- Unify tp/dp/ep flags to --xp-size format across all models
- Add NPU Graph description: enabled by default, disable/control flags
- Add Chunked Prefill description: auto based on device memory, disable with -1
- Remove unnecessary --max-prefill-tokens from chunked prefill examples
- Replace chunked-prefill-size -1 with explicit positive values in examples
- Fix glm_5_1 context parallelism: add --nsa-prefill-cp-mode, correct attn-cp-size to 4
- Fix SGLANG_ENABLE_OVERLAP_PLAN_STREAM=0 -> =1 for qwen3_6_27b and qwen3_6_35b
- Remove unsupported --quantization modelslim from qwen3_6_35b_a3b
- Standardize speculative draft model path placeholder
- Add <br/> line breaks to long table rows for readability
…practice and update model-tutorial references
…e and remove redundant model-tutorial section
…aggregation section (no corresponding config exists)
@amote-i
amote-i marked this pull request as ready for review June 17, 2026 11:24
@amote-i
amote-i force-pushed the br_docs_model_tutorial branch from 46bf673 to 5663db5 Compare June 18, 2026 01:38
@sglang-npu-bot

Copy link
Copy Markdown
Collaborator

/tag-and-rerun-ci

@github-actions github-actions Bot added the run-ci CI: run the baseline test suite on this PR label Jun 22, 2026
@sglang-npu-bot
sglang-npu-bot merged commit 93553a6 into sgl-project:main Jun 22, 2026
91 of 99 checks passed
zijiexia added a commit that referenced this pull request Jun 23, 2026
None of these are introduced by this PR — they predate it; the new mint gate
(internal) and a one-off lychee external scan surfaced them.

#27893 Ascend NPU restructure (monolithic ascend_npu_best_practice split into
best_practice/* + model-tutorials/*) left dangling cross-links and nav:
- model-tutorials/*.mdx: drop anchors to best_practice sections that don't exist
  under those slugs (link to the model's best_practice page).
- ascend_npu_optimization.mdx: point the DeepSeek-V3.2 reference at
  best_practice/deepseek_v3_2 and the general links at the Ascend NPU landing.
- cookbook DeepSeek-V3.mdx: repoint the deleted ascend_npu_deepseek_example link.
- docs.json: repoint 5 redirects and remove 5 stale nav entries to deleted pages.

Upstream files/pages that moved (each verified 404 in a browser):
- cookbook/diffusion/*: github multimodal_gen/docs/{install,support_matrix,
  openai_api,cache_dit}.md -> the /docs/sglang-diffusion/* pages they became.
- srt/conversation.py -> srt/parser/conversation.py; ollama/README -> README.md.
- ggerganov/llama.cpp -> ggml-org/llama.cpp (+ .md); qwenlm qwen-image-edit-2511
  -> qwen-image-edit; nvidia MLNX_OFED and kubernetes-sigs/lws install-doc URLs.

mint broken-links reports zero; the moved-page links verified 200 in a browser.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
Chronostasys pushed a commit to MindLab-Research/sglang that referenced this pull request Aug 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

deepseek documentation Improvements or additions to documentation npu run-ci CI: run the baseline test suite on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants