Update model and feature support for Ascend NPU#16005
Update model and feature support for Ascend NPU#16005iforgetmyname merged 3 commits intosgl-project:ifmn/eagle-dp-attnfrom
Conversation
Summary of ChangesHello @Hexq0210, 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 significantly expands and clarifies the documentation for SGLang's support on Ascend NPU. It provides users with more comprehensive guidance on setting up their environment, including detailed Docker instructions and critical environment variable configurations. Furthermore, it introduces dedicated sections outlining the specific models and features supported, ensuring users can easily identify compatible configurations for various LLM and Multimodal LLM applications. Highlights
🧠 New Feature in Public Preview: You can now enable Memory 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 AssistThe 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
Customization To customize 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 Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. 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. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request significantly enhances the documentation for Ascend NPU support by adding detailed instructions for environment setup, Docker usage, and running SGLang services. It also introduces new pages listing supported models and features. My review focuses on improving the clarity and formatting of the new documentation. I've suggested changes to make the Docker image instructions more user-friendly, improve table readability for long model lists, and correct formatting inconsistencies caused by stray tab characters. Overall, these are valuable additions for users on the Ascend platform.
| # You can choose between dockerhub and quay.io | ||
| dockerhub: docker.io/lmsysorg/sglang:$tag | ||
| quay.io: quay.io/ascend/sglang:$tag | ||
| # Main-based tag, change main to specific version like v0.5.6, | ||
| # you can get image for specific version | ||
| Atlas A3 server : {main}-cann8.3.rc2-a3 | ||
| Atlas A2 server: {main}-cann8.3.rc2-910b |
There was a problem hiding this comment.
This code block is confusing as it mixes instructions with non-executable lines inside a shell block. To improve clarity, it's better to provide commented-out, ready-to-use docker pull examples.
| # You can choose between dockerhub and quay.io | |
| dockerhub: docker.io/lmsysorg/sglang:$tag | |
| quay.io: quay.io/ascend/sglang:$tag | |
| # Main-based tag, change main to specific version like v0.5.6, | |
| # you can get image for specific version | |
| Atlas A3 server : {main}-cann8.3.rc2-a3 | |
| Atlas A2 server: {main}-cann8.3.rc2-910b | |
| # You can choose between Docker Hub (docker.io/lmsysorg/sglang) and Quay.io (quay.io/ascend/sglang). | |
| # The tag is constructed as {version}-cann8.3.rc2-{server_type}. | |
| # Replace {version} with `main` for the latest development version, or a specific version like `v0.5.6`. | |
| # Example for Atlas A3 server: | |
| # docker pull docker.io/lmsysorg/sglang:main-cann8.3.rc2-a3 | |
| # Example for Atlas A2 server: | |
| # docker pull docker.io/lmsysorg/sglang:main-cann8.3.rc2-910b |
| |--------------------------------|------------------------------------------------------------------------------------------------------------------|:----------------------------------------:|:----------------------------------------:| | ||
| | DeepSeek | DeepSeek V1, V2, V3(V3.1,V3.2), R1 | **<span style="color: green;">√</span>** | **<span style="color: green;">√</span>** | | ||
| | Qwen | Qwen 3, Qwen 3Moe | **<span style="color: green;">√</span>** | **<span style="color: green;">√</span>** | | ||
| | Llama | meta-llama/Llama-4-Scout-17B-16E-Instruct,AI-ModelScope/Llama-3.1-8B-Instruct,LLM-Research/Llama-3.2-1B-Instruct | **<span style="color: red;">×</span>** | **<span style="color: red;">×</span>** | |
There was a problem hiding this comment.
This cell contains a long, comma-separated list of model names, which makes the table very wide and hard to read. Consider using <br> tags to place each model on a new line for better readability.
| | Llama | meta-llama/Llama-4-Scout-17B-16E-Instruct,AI-ModelScope/Llama-3.1-8B-Instruct,LLM-Research/Llama-3.2-1B-Instruct | **<span style="color: red;">×</span>** | **<span style="color: red;">×</span>** | | |
| | Llama | meta-llama/Llama-4-Scout-17B-16E-Instruct<br>AI-ModelScope/Llama-3.1-8B-Instruct<br>LLM-Research/Llama-3.2-1B-Instruct | **<span style="color: red;">×</span>** | **<span style="color: red;">×</span>** | |
| | Qwen-VL (Qwen2 series) | Qwen/Qwen3-VL-235B-A22B-Instruct | **<span style="color: red;">×</span>** | **<span style="color: red;">×</span>** | | ||
| | DeepSeek-VL2 | deepseek-ai/deepseek-vl2 | **<span style="color: red;">×</span>** | **<span style="color: red;">×</span>** | | ||
| | Janus-Pro (1B, 7B) | deepseek-ai/Janus-Pro-7B | **<span style="color: green;">√</span>** | **<span style="color: green;">√</span>** | | ||
| | MiniCPM-V / MiniCPM-o | openbmb/MiniCPM-V-2_6 | **<span style="color: red;">×</span>** | **<span style="color: red;">×</span>** | | ||
| | Gemma 3 (Multimodal) | google/gemma-3-4b-it | **<span style="color: green;">√</span>** | **<span style="color: green;">√</span>** | | ||
| | Mistral-Small-3.1-24B | mistralai/Mistral-Small-3.1-24B-Instruct-2503 | **<span style="color: red;">×</span>** | **<span style="color: red;">×</span>** | | ||
| | Phi-4-multimodal-instruct | microsoft/Phi-4-multimodal-instruct | **<span style="color: red;">×</span>** | **<span style="color: red;">×</span>** | | ||
| | MiMo-VL (7B) | XiaomiMiMo/MiMo-VL-7B-RL | **<span style="color: red;">×</span>** | **<span style="color: red;">×</span>** | | ||
| | LLaVA (v1.5 & v1.6) | AI-ModelScope/llava-v1.6-34b | **<span style="color: green;">√</span>** | **<span style="color: green;">√</span>** | | ||
| | LLaVA-NeXT (8B, 72B) | lmms-lab/llava-next-72b | **<span style="color: green;">√</span>** | **<span style="color: green;">√</span>** | | ||
| | LLaVA-OneVision | lmms-lab/llava-onevision-qwen2-7b-ov | **<span style="color: red;">×</span>** | **<span style="color: red;">×</span>** | | ||
| | Kimi-VL (A3B) | Kimi/Kimi-VL-A3B-Instruct | **<span style="color: red;">×</span>** | **<span style="color: red;">×</span>** | | ||
| | GLM-4.5V (106B) / GLM-4.1V(9B) | ZhipuAI/GLM-4.5V | **<span style="color: red;">×</span>** | **<span style="color: green;">√</span>** | | ||
| | Llama 3.2 Vision (11B) | meta-llama/Llama-3.2-11B-Vision-Instruct | **<span style="color: red;">×</span>** | **<span style="color: red;">×</span>** | | ||
|
|
||
| ## Embedding Models | ||
|
|
||
| | Model Family | Example Models | A2 Supported | A3 Supported | | ||
| |--------------------------|-------------------------------------------|----------------------------------------|:----------------------------------------:| | ||
| | E5 (Llama/Mistral based) | intfloat/e5-mistral-7b-instruct | **<span style="color: red;">×</span>** | **<span style="color: red;">×</span>** | | ||
| | GTE-Qwen2 | iic/gte_Qwen2-1.5B-instruct | **<span style="color: red;">×</span>** | **<span style="color: red;">×</span>** | | ||
| | Qwen3-Embedding | Qwen/Qwen3-Embedding-8B | **<span style="color: red;">×</span>** | **<span style="color: red;">×</span>** | | ||
| | GME (Multimodal) | Alibaba-NLP/gme-Qwen2-VL-2B-Instruct | **<span style="color: red;">×</span>** | **<span style="color: red;">×</span>** | | ||
| | CLIP | AI-ModelScope/clip-vit-large-patch14-336 | **<span style="color: red;">×</span>** | **<span style="color: green;">√</span>** | | ||
| | BGE | BAAI/bge-large-en-v1.5 | **<span style="color: red;">×</span>** | **<span style="color: red;">×</span>** | | ||
|
|
||
| ## Reward Models | ||
|
|
||
| | Model Family | Example Models | A2 Supported | A3 Supported | | ||
| |---------------------------|---------------------------------------------|----------------------------------------|:----------------------------------------:| | ||
| | Llama3.1 Reward | Skywork/Skywork-Reward-Llama-3.1-8B-v0.2 | **<span style="color: red;">×</span>** | **<span style="color: green;">√</span>** | | ||
| | InternLM 2 Reward | Shanghai_AI_Laboratory/internlm2-7b-reward | **<span style="color: red;">×</span>** | **<span style="color: green;">√</span>** | | ||
| | Qwen2.5 Reward - Math | Qwen/Qwen2.5-Math-RM-72B | **<span style="color: red;">×</span>** | **<span style="color: green;">√</span>** | | ||
| | Qwen2.5 Reward - Sequence | jason9693/Qwen2.5-1.5B-apeach | **<span style="color: red;">×</span>** | **<span style="color: green;">√</span>** | | ||
| | Gemma 2-27B Reward | Skywork/Skywork-Reward-Gemma-2-27B-v0.2 | **<span style="color: red;">×</span>** | **<span style="color: red;">×</span>** | |
There was a problem hiding this comment.
|
|
||
| | Model Family | Example Models | A2 Supported | A3 Supported | | ||
| |---------------|-------------------------|:--------------------------------------:|:--------------------------------------:| | ||
| | BGE-Reranker | BAAI/bge-reranker-v2-m3 | **<span style="color: red;">×</span>** | **<span style="color: red;">×</span>** | |
There was a problem hiding this comment.
The model family name BGE-Reranker has a trailing tab character (\t). Please remove it for consistent formatting.
| | BGE-Reranker | BAAI/bge-reranker-v2-m3 | **<span style="color: red;">×</span>** | **<span style="color: red;">×</span>** | | |
| | BGE-Reranker | BAAI/bge-reranker-v2-m3 | **<span style="color: red;">×</span>** | **<span style="color: red;">×</span>** | |
…glang into eagle-sche * 'ifmn/eagle-dp-attn' of https://github.com/sgl-project/sglang: (22 commits) dp scheduler enhance support with chunked prefill (sgl-project#16071) modify suffix decoding CI dependency update (sgl-project#16063) fix rotary_embedding init npu (sgl-project#16011) feat: bugfix and accuracy fix for stablelm2_1_6b (sgl-project#15932) Update model and feature support for Ascend NPU (sgl-project#16005) Bugfix for Llama4 (sgl-project#15929) Bugfix for ds-vl2 (sgl-project#15894) gme qwen vl runners fix (sgl-project#15899) add profiling in scheduler (sgl-project#15876) llama use triton rope op (sgl-project#15855) suffix decoding adapt npu suffix decoding adapt npu Add suffix decoding speculative algorithm from feature 13553 cherry sgl-project#15434: qwen3 vl performance update cherry sgl-project#15597: fix Qwen3-VL-30B-A3B-Instruct accuracy loss [Schedule] bug fix for schedule enhancer (sgl-project#15834) minilb support roundrobin (sgl-project#15824) fix torchair compile issue cherry sgl-project#15187: lora fix ... # Conflicts: # python/sglang/srt/managers/scheduler.py # python/sglang/srt/managers/scheduler_enhancer.py
Motivation
Modifications
Accuracy Tests
Benchmarking and Profiling
Checklist