[CI/Build] Use modelscope's international site for regression test (#42176)

Signed-off-by: Isotr0py <mozf@mail2.sysu.edu.cn>
This commit is contained in:
Isotr0py
2026-05-09 19:47:09 -07:00
committed by GitHub
parent 0b272a6e01
commit 1029e5ef28
+2 -1
View File
@@ -56,9 +56,10 @@ def test_gc():
def test_model_from_modelscope(monkeypatch: pytest.MonkeyPatch):
# model: https://modelscope.cn/models/qwen/Qwen1.5-0.5B-Chat/summary
# model: https://www.modelscope.ai/models/qwen/Qwen1.5-0.5B-Chat
with monkeypatch.context() as m:
m.setenv("VLLM_USE_MODELSCOPE", "True")
m.setenv("MODELSCOPE_DOMAIN", "www.modelscope.ai")
# Don't use HF_TOKEN for ModelScope repos, otherwise it will fail
# with 400 Client Error: Bad Request.
m.setenv("HF_TOKEN", "")