Skip to content

glm5.2 on ascend doc (new version) - #29828

Merged
sglang-npu-bot merged 8 commits into
sgl-project:mainfrom
stellaxcpeng:dev_glm5_2_ascend_md_v2
Jul 3, 2026
Merged

sglang-npu-bot merged 8 commits into
sgl-project:mainfrom
stellaxcpeng:dev_glm5_2_ascend_md_v2

Conversation

@stellaxcpeng

@stellaxcpeng stellaxcpeng commented Jul 1, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

Modifications

Accuracy Tests

Speed Tests and Profiling

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 #28574055727
Latest PR Test (Extra): ❌ Run #28574055566

@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Jul 1, 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 adds a new documentation page for deploying the GLM-5.2 model with SGLang on Ascend NPUs, covering single-node, multi-node, and prefill-decode disaggregation deployment modes. The review feedback highlights several issues in the provided shell scripts, including duplicated --privileged=true flags in the Docker run commands, invalid bash syntax for setting the placeholder MODEL_PATH, and an unnecessary trailing backslash at the end of a command argument list.

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.

Comment on lines +78 to +79
docker run -itd --shm-size=16g --privileged=true --name ${NAME} \
--privileged=true --net=host \

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.

medium

The --privileged=true flag is duplicated in the docker run command. Removing the redundant flag keeps the command clean and concise.

docker run -itd --shm-size=16g --privileged=true --name ${NAME} \
--net=host \

Comment on lines +113 to +114
docker run -itd --shm-size=16g --privileged=true --name ${NAME} \
--privileged=true --net=host \

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.

medium

The --privileged=true flag is duplicated in the docker run command. Removing the redundant flag keeps the command clean and concise.

docker run -itd --shm-size=16g --privileged=true --name ${NAME} \
--net=host \

export DEEPEP_NORMAL_LONG_SEQ_PER_ROUND_TOKENS=1024
export DEEPEP_NORMAL_COMBINE_ENABLE_LONG_SEQ=1

MODEL_PATH={"weights path"}

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.

medium

In bash, MODEL_PATH={"weights path"} is invalid syntax for setting a placeholder path. It will literally assign the string {"weights path"} to MODEL_PATH, which will fail when the server is launched. It should be written as MODEL_PATH="/path/to/weights".

MODEL_PATH="/path/to/weights"

export DEEPEP_NORMAL_COMBINE_ENABLE_LONG_SEQ=1
export DEEP_NORMAL_MODE_USE_INT8_QUANT=1

MODEL_PATH={"weights path"}

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.

medium

In bash, MODEL_PATH={"weights path"} is invalid syntax for setting a placeholder path. It will literally assign the string {"weights path"} to MODEL_PATH, which will fail when the server is launched. It should be written as MODEL_PATH="/path/to/weights".

MODEL_PATH="/path/to/weights"

IPS=('your ip1' 'your ip2')
IP_MASTER="${IPS[0]}:your port"

MODEL_PATH={"weights path"}

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.

medium

In bash, MODEL_PATH={"weights path"} is invalid syntax for setting a placeholder path. It will literally assign the string {"weights path"} to MODEL_PATH, which will fail when the server is launched. It should be written as MODEL_PATH="/path/to/weights".

MODEL_PATH="/path/to/weights"

P_IP=('your ip1')
D_IP=('your ip2')

MODEL_PATH={"weights path"}

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.

medium

In bash, MODEL_PATH={"weights path"} is invalid syntax for setting a placeholder path. It will literally assign the string {"weights path"} to MODEL_PATH, which will fail when the server is launched. It should be written as MODEL_PATH="/path/to/weights".

MODEL_PATH="/path/to/weights"

--load-balance-method round_robin \
--enable-dp-lm-head --moe-dense-tp 1 \
--speculative-draft-model-quantization unquant \
--speculative-algorithm NEXTN --speculative-num-steps 1 --speculative-eagle-topk 1 --speculative-num-draft-tokens 2 \

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.

medium

The trailing backslash \ is unnecessary here because this is the end of the command arguments. Leaving it can cause issues if the empty line below is removed or edited, as subsequent lines (comments) would be joined to the command.

        --speculative-algorithm NEXTN --speculative-num-steps 1 --speculative-eagle-topk 1 --speculative-num-draft-tokens 2

@amote-i

amote-i commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

approve

@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 Jul 2, 2026
@sglang-npu-bot
sglang-npu-bot merged commit a6bc7fe into sgl-project:main Jul 3, 2026
95 of 103 checks passed
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

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants