[NPU] [DOC] Fix TOC of Ascend NPU Docs (#29129)
This commit is contained in:
@@ -41,7 +41,7 @@ You can install SGLang using any of the methods below. Please go through `System
|
||||
<tr>
|
||||
<td style={{padding: "9px 12px", fontWeight: 500, backgroundColor: "rgba(255,255,255,0.02)"}}>Triton</td>
|
||||
<td style={{padding: "9px 12px", backgroundColor: "rgba(255,255,255,0.05)"}}>3.2.1.dev20260530</td>
|
||||
<td style={{padding: "9px 12px", backgroundColor: "rgba(255,255,255,0.02)"}}>`pip install triton-ascend==3.2.1.dev20260530 \`<br/>`--extra-index-url=https://mirrors.huaweicloud.com/ascend/repos/pypi/nightly \`<br/>`--trusted-host triton-ascend.osinfra.cn`</td>
|
||||
<td style={{padding: "9px 12px", backgroundColor: "rgba(255,255,255,0.02)"}}>`pip install triton-ascend==3.2.1.dev20260530 \`<br/>`--extra-index-url=https://mirrors.huaweicloud.com/ascend/repos/pypi/nightly \`<br/>`--trusted-host mirrors.huaweicloud.com`</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style={{padding: "9px 12px", fontWeight: 500, backgroundColor: "rgba(255,255,255,0.02)"}}>SGLang NPU Kernel</td>
|
||||
@@ -143,7 +143,7 @@ We provide our own implementation of Triton for Ascend.
|
||||
```bash Command
|
||||
pip install triton-ascend==3.2.1.dev20260530 \
|
||||
--extra-index-url=https://mirrors.huaweicloud.com/ascend/repos/pypi/nightly \
|
||||
--trusted-host triton-ascend.osinfra.cn
|
||||
--trusted-host mirrors.huaweicloud.com
|
||||
```
|
||||
For installation of Triton on Ascend nightly builds or from sources, follow [installation guide](https://gitcode.com/Ascend/triton-ascend/blob/master/docs/sources/getting-started/installation.md)
|
||||
|
||||
@@ -185,7 +185,7 @@ Ensure sufficient disk space before pulling images. Each Docker image requires a
|
||||
1. Download SGLang image
|
||||
|
||||
<Tip>
|
||||
We publish both **stable releases** and **daily builds**. Choose a stable release tag (e.g., `v0.5.10-npu.rc1-a3`) if you prefer a validated version, or a daily build tag (e.g., `main-cann9.0.0-a3`) if you need the latest development changes.
|
||||
We publish both **stable releases** and **daily builds**. Choose a stable release tag (e.g., `v0.5.13.post1-cann9.0.0-a3`) if you prefer a validated version, or a daily build tag (e.g., `main-cann9.0.0-a3`) if you need the latest development changes.
|
||||
</Tip>
|
||||
|
||||
<Tabs>
|
||||
@@ -193,7 +193,7 @@ We publish both **stable releases** and **daily builds**. Choose a stable releas
|
||||
|
||||
```bash Command
|
||||
# Stable release
|
||||
docker pull quay.io/ascend/sglang:v0.5.10-npu.rc1-a3
|
||||
docker pull quay.io/ascend/sglang:v0.5.13.post1-cann9.0.0-a3
|
||||
|
||||
# Daily build
|
||||
docker pull quay.io/ascend/sglang:main-cann9.0.0-a3
|
||||
@@ -204,7 +204,7 @@ docker pull quay.io/ascend/sglang:main-cann9.0.0-a3
|
||||
|
||||
```bash Command
|
||||
# Stable release
|
||||
docker pull quay.io/ascend/sglang:v0.5.10-npu.rc1-910b
|
||||
docker pull quay.io/ascend/sglang:v0.5.13.post1-cann9.0.0-910b
|
||||
|
||||
# Daily build
|
||||
docker pull quay.io/ascend/sglang:main-cann9.0.0-910b
|
||||
|
||||
@@ -26,7 +26,7 @@ First, launch the SGLang environment using the provided container image:
|
||||
<Tab title="Atlas 800I A3">
|
||||
|
||||
```shell Command
|
||||
export IMAGE=quay.io/ascend/sglang:v0.5.10-npu.rc1-a3
|
||||
export IMAGE=quay.io/ascend/sglang:v0.5.13.post1-cann9.0.0-a3
|
||||
|
||||
docker run -it --rm --privileged --network=host --ipc=host --shm-size=16g \
|
||||
--device=/dev/davinci0 --device=/dev/davinci1 --device=/dev/davinci2 --device=/dev/davinci3 \
|
||||
@@ -49,7 +49,7 @@ docker run -it --rm --privileged --network=host --ipc=host --shm-size=16g \
|
||||
<Tab title="Atlas 800I A2">
|
||||
|
||||
```shell Command
|
||||
export IMAGE=quay.io/ascend/sglang:v0.5.10-npu.rc1-910b
|
||||
export IMAGE=quay.io/ascend/sglang:v0.5.13.post1-cann9.0.0-910b
|
||||
|
||||
docker run -it --rm --privileged --network=host --ipc=host --shm-size=16g \
|
||||
--device=/dev/davinci0 --device=/dev/davinci1 --device=/dev/davinci2 --device=/dev/davinci3 \
|
||||
|
||||
@@ -293,7 +293,7 @@ Replace model weights, e.g., switch Qwen/Qwen3.5-27B-FP8 to Eco-Tech/Qwen3.5-27B
|
||||
|
||||
Docker images for Ascend NPU are available in two types:
|
||||
|
||||
- **Stable release** — validated version with a specific tag, e.g., `quay.io/ascend/sglang:v0.5.10-npu.rc1-a3`.
|
||||
- **Stable release** — validated version with a specific tag, e.g., `quay.io/ascend/sglang:v0.5.13.post1-cann9.0.0-a3`.
|
||||
Recommended for production deployments.
|
||||
- **Daily build** — includes the latest development changes, e.g., `quay.io/ascend/sglang:main-cann8.5.0-a3`. Use this
|
||||
if you need the latest features or bug fixes that have not yet been included in a stable release.
|
||||
|
||||
@@ -5,9 +5,9 @@ metatags:
|
||||
---
|
||||
|
||||
This guide explains the role of each parameter used in SGLang deployments on Ascend NPU. It uses
|
||||
the [DeepSeek-V3.2 best practice configuration](/docs/hardware-platforms/ascend-npus/ascend_npu_best_practice#deepseek-v3-2-128k-1k-26ms-on-a3-32-cards-disaggregation-mode)
|
||||
the [DeepSeek-V3.2 best practice configuration](/docs/hardware-platforms/ascend-npus/best_practice/deepseek_v3_2#pd-disaggregation)
|
||||
as the reference example. For a complete list of tested deployment configurations, see the
|
||||
[Ascend NPU Best Practice](/docs/hardware-platforms/ascend-npus/ascend_npu_best_practice) page.
|
||||
[Ascend NPU Best Practice](/docs/hardware-platforms/ascend-npus/best_practice) page.
|
||||
|
||||
<Note>
|
||||
Parameters in this guide fall into two categories:
|
||||
@@ -794,7 +794,7 @@ Casts model weight tensors to the Ascend NPU ACL FRACTAL_NZ format (format 29) f
|
||||
|
||||
## See Also
|
||||
|
||||
- [Ascend NPU Best Practice](/docs/hardware-platforms/ascend-npus/ascend_npu_best_practice) — Complete deployment configurations and benchmark results for all supported models
|
||||
- [Ascend NPU Best Practice](/docs/hardware-platforms/ascend-npus/best_practice) — Complete deployment configurations and benchmark results for all supported models
|
||||
- [Ascend NPU Environment Variables](/docs/hardware-platforms/ascend-npus/ascend_npu_environment_variables) — Reference for all Ascend NPU-related environment variables
|
||||
- [DeepSeek V3.2 Guide](/cookbook/autoregressive/DeepSeek/DeepSeek-V3_2) — Detailed usage guide for DeepSeek V3.2 deployment
|
||||
- [Expert Parallelism](/docs/advanced_features/expert_parallelism) — DeepEP configuration and tuning guide
|
||||
|
||||
@@ -25,8 +25,6 @@ This guide describes the best practice data for DeepSeek-R1 on the Ascend NPU.
|
||||
|
||||
## Optimal Configuration
|
||||
|
||||
<a id="pd-disaggregation" title="Referenced by external docs. Verify before removing."></a>
|
||||
|
||||
### DeepSeek-R1 W4A8 1P1D 16P IN3K5 OUT1K5 41ms
|
||||
|
||||
**Model**: DeepSeek-R1
|
||||
@@ -325,6 +323,8 @@ python -m sglang.bench_serving \
|
||||
--random-range-ratio 1
|
||||
```
|
||||
|
||||
<a id="pd-disaggregation" title="Referenced by external docs. Verify before removing."></a>
|
||||
|
||||
### DeepSeek-R1 W8A8 2P1D 32P IN3K5 OUT1K5 18.9ms
|
||||
|
||||
**Model**: DeepSeek-R1
|
||||
|
||||
@@ -151,14 +151,14 @@ quay.io/ascend/sglang:v0.5.13.post1-cann9.0.0-910b
|
||||
Single-node deployment completes both prefill and decode within the same node (PD mixed mode), suitable for scenarios
|
||||
with limited hardware resources. This scenario is already covered in the best practice. For the complete, optimized
|
||||
deployment commands and benchmark data, see
|
||||
[DeepSeek-R1 Best Practice — W4A8 8P PD Mixed On A3](/docs/hardware-platforms/ascend-npus/best_practice/deepseek_r1#w4a8-8p-pd-mixed).
|
||||
[DeepSeek-R1 Best Practice — W4A8 8P PD Mixed On A3](/docs/hardware-platforms/ascend-npus/best_practice/deepseek_r1#single-node-pd-mixed).
|
||||
|
||||
### Multi-node PD disaggregation deployment
|
||||
|
||||
PD disaggregation splits the prefill and decode stages onto separate nodes, reducing interference and improving
|
||||
throughput for high-concurrency scenarios. This scenario is already covered in the best practice. For the complete, optimized
|
||||
deployment commands and benchmark data, see
|
||||
[DeepSeek-R1 Best Practice — W4A8 16P PD Disaggregation On A3](/docs/hardware-platforms/ascend-npus/best_practice/deepseek_r1#w4a8-16p-pd-disaggregation).
|
||||
[DeepSeek-R1 Best Practice — W8A8 32P PD Disaggregation On A3](/docs/hardware-platforms/ascend-npus/best_practice/deepseek_r1#pd-disaggregation).
|
||||
|
||||
## Functional verification
|
||||
|
||||
|
||||
@@ -155,7 +155,7 @@ quay.io/ascend/sglang:v0.5.13.post1-cann9.0.0-910b
|
||||
Single-node deployment completes both prefill and decode within the same node (PD mixed mode), suitable for scenarios
|
||||
with limited hardware resources. This scenario is already covered in the best practice. For the complete, optimized
|
||||
deployment commands and benchmark data, see
|
||||
[Kimi K2.6 Best Practice — PD Mixed On A3](/docs/hardware-platforms/ascend-npus/best_practice/kimi_k2_6#single-node).
|
||||
[Kimi K2.6 Best Practice — PD Mixed On A3](/docs/hardware-platforms/ascend-npus/best_practice/kimi_k2_6#single-node-pd-mixed).
|
||||
|
||||
### Multi-node online deployment
|
||||
|
||||
@@ -163,7 +163,7 @@ Multi-node deployment distributes the model across multiple Atlas 800I A3 nodes
|
||||
prefill and decode on the same nodes (PD mixed mode), suitable for scenarios that need more device memory than a single
|
||||
node can provide. This scenario is already covered in the best practice. For the complete, optimized
|
||||
deployment commands and benchmark data, see
|
||||
[Kimi-K2.6 Best Practice — Multi-node On A3](/docs/hardware-platforms/ascend-npus/best_practice/kimi_k2_6#multi-node).
|
||||
[Kimi-K2.6 Best Practice — Multi-node On A3](/docs/hardware-platforms/ascend-npus/best_practice/kimi_k2_6#multi-node-pd-mixed).
|
||||
|
||||
### Multi-node PD disaggregation deployment
|
||||
|
||||
|
||||
@@ -149,14 +149,7 @@ quay.io/ascend/sglang:v0.5.13.post1-cann9.0.0-910b
|
||||
Single-node deployment completes both prefill and decode within the same node (PD mixed mode), suitable for scenarios
|
||||
with limited hardware resources. This scenario is already covered in the best practice. For the complete, optimized
|
||||
deployment commands and benchmark data, see
|
||||
[MiniMax-M2.5 Best Practice — PD Mixed On A3](/docs/hardware-platforms/ascend-npus/best_practice/minimax_m2_5#single-node).
|
||||
|
||||
### Multi-node PD disaggregation deployment
|
||||
|
||||
PD disaggregation splits the prefill and decode stages onto separate nodes, reducing interference and improving
|
||||
throughput for high-concurrency scenarios. This scenario is already covered in the best practice. For the complete, optimized
|
||||
deployment commands and benchmark data, see
|
||||
[MiniMax-M2.5 Best Practice — PD Disaggregation On A3](/docs/hardware-platforms/ascend-npus/best_practice/minimax_m2_5#pd-disaggregation).
|
||||
[MiniMax-M2.5 Best Practice — PD Mixed On A3](/docs/hardware-platforms/ascend-npus/best_practice/minimax_m2_5#single-node-pd-mixed).
|
||||
|
||||
## Functional verification
|
||||
|
||||
|
||||
@@ -147,7 +147,7 @@ quay.io/ascend/sglang:v0.5.13.post1-cann9.0.0-910b
|
||||
Single-node deployment completes both prefill and decode within the same node (PD mixed mode), suitable for scenarios
|
||||
with limited hardware resources. This scenario is already covered in the best practice. For the complete, optimized
|
||||
deployment commands and benchmark data, see
|
||||
[Qwen3-8B Best Practice — PD Mixed On A3](/docs/hardware-platforms/ascend-npus/best_practice/qwen3-8b#single-node).
|
||||
[Qwen3-8B Best Practice — PD Mixed On A3](/docs/hardware-platforms/ascend-npus/best_practice/qwen3-8b#single-node-pd-mixed).
|
||||
|
||||
## Functional verification
|
||||
|
||||
|
||||
@@ -153,7 +153,7 @@ quay.io/ascend/sglang:v0.5.13.post1-cann9.0.0-910b
|
||||
Single-node deployment completes both prefill and decode within the same node (PD mixed mode), suitable for scenarios
|
||||
with limited hardware resources. This scenario is already covered in the best practice. For the complete, optimized
|
||||
deployment commands and benchmark data, see
|
||||
[Qwen3-235B-A22B Best Practice — PD Mixed On A3](/docs/hardware-platforms/ascend-npus/best_practice/qwen3_235b_a22b#single-node).
|
||||
[Qwen3-235B-A22B Best Practice — PD Mixed On A3](/docs/hardware-platforms/ascend-npus/best_practice/qwen3_235b_a22b#single-node-pd-mixed).
|
||||
|
||||
### Multi-node PD disaggregation deployment
|
||||
|
||||
|
||||
@@ -147,7 +147,7 @@ quay.io/ascend/sglang:v0.5.13.post1-cann9.0.0-910b
|
||||
Single-node deployment completes both prefill and decode within the same node (PD mixed mode), suitable for scenarios
|
||||
with limited hardware resources. This scenario is already covered in the best practice. For the complete, optimized
|
||||
deployment commands and benchmark data, see
|
||||
[Qwen3-30B-A3B Best Practice — PD Mixed On A3](/docs/hardware-platforms/ascend-npus/best_practice/qwen3_30b_a3b#single-node).
|
||||
[Qwen3-30B-A3B Best Practice — PD Mixed On A3](/docs/hardware-platforms/ascend-npus/best_practice/qwen3_30b_a3b#single-node-pd-mixed).
|
||||
|
||||
## Functional verification
|
||||
|
||||
|
||||
@@ -145,7 +145,7 @@ quay.io/ascend/sglang:v0.5.13.post1-cann9.0.0-910b
|
||||
Single-node deployment completes both prefill and decode within the same node (PD mixed mode), suitable for scenarios
|
||||
with limited hardware resources. This scenario is already covered in the best practice. For the complete, optimized
|
||||
deployment commands and benchmark data, see
|
||||
[Qwen3-32B Best Practice — PD Mixed On A3](/docs/hardware-platforms/ascend-npus/best_practice/qwen3_32b#single-node).
|
||||
[Qwen3-32B Best Practice — PD Mixed On A3](/docs/hardware-platforms/ascend-npus/best_practice/qwen3_32b#single-node-pd-mixed).
|
||||
|
||||
## Functional verification
|
||||
|
||||
|
||||
@@ -148,7 +148,7 @@ quay.io/ascend/sglang:v0.5.13.post1-cann9.0.0-910b
|
||||
Single-node deployment completes both prefill and decode within the same node (PD mixed mode), suitable for scenarios
|
||||
with limited hardware resources. This scenario is already covered in the best practice. For the complete, optimized
|
||||
deployment commands and benchmark data, see
|
||||
[Qwen3.5-397B Best Practice — PD Mixed On A3](/docs/hardware-platforms/ascend-npus/best_practice/qwen3_5_397b#single-node).
|
||||
[Qwen3.5-397B Best Practice — PD Mixed On A3](/docs/hardware-platforms/ascend-npus/best_practice/qwen3_5_397b#single-node-pd-mixed).
|
||||
|
||||
## Functional verification
|
||||
|
||||
|
||||
@@ -145,7 +145,7 @@ quay.io/ascend/sglang:v0.5.13.post1-cann9.0.0-910b
|
||||
Single-node deployment completes both prefill and decode within the same node (PD mixed mode), suitable for scenarios
|
||||
with limited hardware resources. This scenario is already covered in the best practice. For the complete, optimized
|
||||
deployment commands and benchmark data, see
|
||||
[Qwen3.6-27B Best Practice — PD Mixed On A3](/docs/hardware-platforms/ascend-npus/best_practice/qwen3_6_27b#single-node).
|
||||
[Qwen3.6-27B Best Practice — PD Mixed On A3](/docs/hardware-platforms/ascend-npus/best_practice/qwen3_6_27b#single-node-pd-mixed).
|
||||
|
||||
## Functional verification
|
||||
|
||||
|
||||
@@ -145,7 +145,7 @@ quay.io/ascend/sglang:v0.5.13.post1-cann9.0.0-910b
|
||||
Single-node deployment completes both prefill and decode within the same node (PD mixed mode), suitable for scenarios
|
||||
with limited hardware resources. This scenario is already covered in the best practice. For the complete, optimized
|
||||
deployment commands and benchmark data, see
|
||||
[Qwen3.6-35B-A3B Best Practice — PD Mixed On A3](/docs/hardware-platforms/ascend-npus/best_practice/qwen3_6_35b_a3b#single-node).
|
||||
[Qwen3.6-35B-A3B Best Practice — PD Mixed On A3](/docs/hardware-platforms/ascend-npus/best_practice/qwen3_6_35b_a3b#single-node-pd-mixed).
|
||||
|
||||
## Functional verification
|
||||
|
||||
|
||||
+1
-1
@@ -152,7 +152,7 @@ quay.io/ascend/sglang:v0.5.13.post1-cann9.0.0-910b
|
||||
Single-node deployment completes both prefill and decode within the same node (PD mixed mode), suitable for scenarios
|
||||
with limited hardware resources. This scenario is already covered in the best practice. For the complete, optimized
|
||||
deployment commands and benchmark data, see
|
||||
[Qwen3-Next-80B-A3B-Instruct Best Practice — PD Mixed On A3](/docs/hardware-platforms/ascend-npus/best_practice/qwen3_next_80b_a3b_instruct#single-node).
|
||||
[Qwen3-Next-80B-A3B-Instruct Best Practice — PD Mixed On A3](/docs/hardware-platforms/ascend-npus/best_practice/qwen3_next_80b_a3b_instruct#single-node-pd-mixed).
|
||||
|
||||
## Functional verification
|
||||
|
||||
|
||||
Reference in New Issue
Block a user