3838 CACHING_URL="cache-service.nginx-pypi-cache.svc.cluster.local"
3939 sed -Ei "s@(ports|archive).ubuntu.com@${CACHING_URL}:8081@g" /etc/apt/sources.list
4040 pip config set global.index-url http://${CACHING_URL}/pypi/simple
41- pip config set global.trusted-host ${CACHING_URL}
41+ pip config set global.extra-index-url "https://pypi.tuna.tsinghua.edu.cn/simple https://mirrors.aliyun.com/pypi/simple/"
42+ pip config set global.trusted-host "${CACHING_URL} pypi.tuna.tsinghua.edu.cn mirrors.aliyun.com"
4243
43- bash scripts/ci/npu_ci_install_dependency.sh
44+ bash scripts/ci/npu_ci_install_dependency.sh 910b
4445 # copy required file from our daily cache
4546 cp ~/.cache/modelscope/hub/datasets/otavia/ShareGPT_Vicuna_unfiltered/ShareGPT_V3_unfiltered_cleaned_split.json /tmp
4647 # copy download through proxy
@@ -53,13 +54,20 @@ jobs:
5354 SGLANG_IS_IN_CI : true
5455 HF_ENDPOINT : https://hf-mirror.com
5556 TORCH_EXTENSIONS_DIR : /tmp/torch_extensions
57+ PYTORCH_NPU_ALLOC_CONF : " expandable_segments:True"
58+ STREAMS_PER_DEVICE : 32
5659 run : |
60+ export PATH="/usr/local/Ascend/8.3.RC1/compiler/bishengir/bin:${PATH}"
5761 cd test/srt
5862 python3 run_suite.py --suite per-commit-1-ascend-npu
5963
6064 per-commit-2-ascend-npu :
6165 if : github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-ci')
6266 runs-on : linux-arm64-npu-2
67+ strategy :
68+ fail-fast : false
69+ matrix :
70+ part : [0, 1, 2]
6371 container :
6472 image : swr.cn-southwest-2.myhuaweicloud.com/base_image/ascend-ci/cann:8.2.rc1-910b-ubuntu22.04-py3.11
6573 steps :
@@ -72,24 +80,28 @@ jobs:
7280 CACHING_URL="cache-service.nginx-pypi-cache.svc.cluster.local"
7381 sed -Ei "s@(ports|archive).ubuntu.com@${CACHING_URL}:8081@g" /etc/apt/sources.list
7482 pip config set global.index-url http://${CACHING_URL}/pypi/simple
75- pip config set global.trusted-host ${CACHING_URL}
83+ pip config set global.extra-index-url "https://pypi.tuna.tsinghua.edu.cn/simple https://mirrors.aliyun.com/pypi/simple/"
84+ pip config set global.trusted-host "${CACHING_URL} pypi.tuna.tsinghua.edu.cn mirrors.aliyun.com"
7685
77- bash scripts/ci/npu_ci_install_dependency.sh
86+ bash scripts/ci/npu_ci_install_dependency.sh 910b
7887 # copy required file from our daily cache
7988 cp ~/.cache/modelscope/hub/datasets/otavia/ShareGPT_Vicuna_unfiltered/ShareGPT_V3_unfiltered_cleaned_split.json /tmp
8089 # copy download through proxy
8190 curl -o /tmp/test.jsonl -L https://gh-proxy.test.osinfra.cn/https://raw.githubusercontent.com/openai/grade-school-math/master/grade_school_math/data/test.jsonl
8291
8392 - name : Run test
84- timeout-minutes : 90
93+ timeout-minutes : 60
8594 env :
8695 SGLANG_USE_MODELSCOPE : true
8796 SGLANG_IS_IN_CI : true
8897 HF_ENDPOINT : https://hf-mirror.com
8998 TORCH_EXTENSIONS_DIR : /tmp/torch_extensions
99+ PYTORCH_NPU_ALLOC_CONF : " expandable_segments:True"
100+ STREAMS_PER_DEVICE : 32
90101 run : |
102+ export PATH="/usr/local/Ascend/8.3.RC1/compiler/bishengir/bin:${PATH}"
91103 cd test/srt
92- python3 run_suite.py --suite per-commit-2-ascend-npu
104+ python3 run_suite.py --suite per-commit-2-ascend-npu --auto-partition-id ${{ matrix.part }} --auto-partition-size 3
93105
94106 per-commit-4-ascend-npu :
95107 if : github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'run-ci')
@@ -106,22 +118,26 @@ jobs:
106118 CACHING_URL="cache-service.nginx-pypi-cache.svc.cluster.local"
107119 sed -Ei "s@(ports|archive).ubuntu.com@${CACHING_URL}:8081@g" /etc/apt/sources.list
108120 pip config set global.index-url http://${CACHING_URL}/pypi/simple
109- pip config set global.trusted-host ${CACHING_URL}
121+ pip config set global.extra-index-url "https://pypi.tuna.tsinghua.edu.cn/simple https://mirrors.aliyun.com/pypi/simple/"
122+ pip config set global.trusted-host "${CACHING_URL} pypi.tuna.tsinghua.edu.cn mirrors.aliyun.com"
110123
111- bash scripts/ci/npu_ci_install_dependency.sh
124+ bash scripts/ci/npu_ci_install_dependency.sh 910b
112125 # copy required file from our daily cache
113126 cp ~/.cache/modelscope/hub/datasets/otavia/ShareGPT_Vicuna_unfiltered/ShareGPT_V3_unfiltered_cleaned_split.json /tmp
114127 # copy download through proxy
115128 curl -o /tmp/test.jsonl -L https://gh-proxy.test.osinfra.cn/https://raw.githubusercontent.com/openai/grade-school-math/master/grade_school_math/data/test.jsonl
116129
117130 - name : Run test
118- timeout-minutes : 120
131+ timeout-minutes : 60
119132 env :
120133 SGLANG_USE_MODELSCOPE : true
121134 SGLANG_IS_IN_CI : true
122135 HF_ENDPOINT : https://hf-mirror.com
123136 TORCH_EXTENSIONS_DIR : /tmp/torch_extensions
137+ PYTORCH_NPU_ALLOC_CONF : " expandable_segments:True"
138+ STREAMS_PER_DEVICE : 32
124139 run : |
140+ export PATH="/usr/local/Ascend/8.3.RC1/compiler/bishengir/bin:${PATH}"
125141 cd test/srt
126142 python3 run_suite.py --suite per-commit-4-ascend-npu --timeout-per-file 3600
127143
@@ -140,21 +156,25 @@ jobs:
140156 CACHING_URL="cache-service.nginx-pypi-cache.svc.cluster.local"
141157 sed -Ei "s@(ports|archive).ubuntu.com@${CACHING_URL}:8081@g" /etc/apt/sources.list
142158 pip config set global.index-url http://${CACHING_URL}/pypi/simple
143- pip config set global.trusted-host ${CACHING_URL}
159+ pip config set global.extra-index-url "https://pypi.tuna.tsinghua.edu.cn/simple https://mirrors.aliyun.com/pypi/simple/"
160+ pip config set global.trusted-host "${CACHING_URL} pypi.tuna.tsinghua.edu.cn mirrors.aliyun.com"
144161
145- bash scripts/ci/npu_ci_install_dependency.sh
162+ bash scripts/ci/npu_ci_install_dependency.sh a3
146163 # copy required file from our daily cache
147164 cp ~/.cache/modelscope/hub/datasets/otavia/ShareGPT_Vicuna_unfiltered/ShareGPT_V3_unfiltered_cleaned_split.json /tmp
148165 # copy download through proxy
149166 curl -o /tmp/test.jsonl -L https://gh-proxy.test.osinfra.cn/https://raw.githubusercontent.com/openai/grade-school-math/master/grade_school_math/data/test.jsonl
150167
151168 - name : Run test
152- timeout-minutes : 90
169+ timeout-minutes : 60
153170 env :
154171 SGLANG_USE_MODELSCOPE : true
155172 SGLANG_IS_IN_CI : true
156173 HF_ENDPOINT : https://hf-mirror.com
157174 TORCH_EXTENSIONS_DIR : /tmp/torch_extensions
175+ PYTORCH_NPU_ALLOC_CONF : " expandable_segments:True"
176+ STREAMS_PER_DEVICE : 32
158177 run : |
178+ export PATH="/usr/local/Ascend/8.3.RC1/compiler/bishengir/bin:${PATH}"
159179 cd test/srt
160- python3 run_suite.py --suite per-commit-16-ascend-a3 --timeout-per-file 5400
180+ python3 run_suite.py --suite per-commit-16-ascend-a3 --timeout-per-file 3600
0 commit comments