From 13a4aafdbe693da7a7bbc80952383c1bcabf39a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9C=8B=E6=B5=B7=E7=9A=84=E4=BA=BA?= <37328560+zhsurpass@users.noreply.github.com> Date: Mon, 13 Apr 2026 22:53:24 +0800 Subject: [PATCH] [NPU] update glm5 running guide (#22712) --- docs/platforms/ascend/ascend_npu_glm5_examples.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/docs/platforms/ascend/ascend_npu_glm5_examples.md b/docs/platforms/ascend/ascend_npu_glm5_examples.md index f613e8956..6c3e1500c 100644 --- a/docs/platforms/ascend/ascend_npu_glm5_examples.md +++ b/docs/platforms/ascend/ascend_npu_glm5_examples.md @@ -53,10 +53,16 @@ docker run -itd --shm-size=16g --privileged=true --name ${NAME} \ swr.cn-southwest-2.myhuaweicloud.com/base_image/dockerhub/lmsysorg/sglang:${TAG} ``` -Note: Using this image, you need to update transformers to main branch +### Best Practices +Note: Using this image for **best practices**, you need to update transformers to version 5.3.0 ``` shell # reinstall transformers -pip install git+https://github.com/huggingface/transformers.git + +# Install transformers version 5.3.0 from PyPI +pip install transformers==5.3.0 + +# Install from GitHub v5.3.0 tag from GitHub +pip install git+https://github.com/huggingface/transformers.git@v5.3.0 ``` ## Deployment