From 8febc3650d0490db2ed3fcc471b6925028dc027c Mon Sep 17 00:00:00 2001 From: monkeyLoveding <125486029+monkeyLoveding@users.noreply.github.com> Date: Thu, 26 Mar 2026 19:35:34 +0800 Subject: [PATCH] [NPU] multimodal-gen-test-8-npu-a3,Cache pytorch dependency (#21470) Co-authored-by: Kelon --- .github/workflows/pr-test-npu.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pr-test-npu.yml b/.github/workflows/pr-test-npu.yml index f3d99fdda..38b49f234 100644 --- a/.github/workflows/pr-test-npu.yml +++ b/.github/workflows/pr-test-npu.yml @@ -392,13 +392,16 @@ jobs: git config --system --add safe.directory ${GITHUB_WORKSPACE} - name: Install dependencies + env: + TORCH_CACHE_URL: "http://cache-service.nginx-pypi-cache.svc.cluster.local/whl/cpu" + PYPI_CACHE_URL: "http://cache-service.nginx-pypi-cache.svc.cluster.local/pypi/simple" + GITHUB_PROXY_URL: "https://gh-proxy.test.osinfra.cn/" run: | # speed up by using infra cache services CACHING_URL="cache-service.nginx-pypi-cache.svc.cluster.local" sed -Ei "s@(ports|archive).ubuntu.com@${CACHING_URL}:8081@g" /etc/apt/sources.list pip config set global.index-url http://${CACHING_URL}/pypi/simple - pip config set global.extra-index-url "https://pypi.tuna.tsinghua.edu.cn/simple" - pip config set global.trusted-host "${CACHING_URL} pypi.tuna.tsinghua.edu.cn" + pip config set global.trusted-host "${CACHING_URL}" bash scripts/ci/npu/npu_ci_install_dependency.sh a3 diffusion # copy required file from our daily cache