Unverified Commit fe5086fd authored by li chaoran's avatar li chaoran Committed by GitHub
Browse files

chore: speedup NPU CI by cache (#8270)


Signed-off-by: default avatarmywaaagh_admin <pkwarcraft@gmail.com>
Co-authored-by: default avatarronnie_zheng <zl19940307@163.com>
parent 04913430
......@@ -35,8 +35,10 @@ jobs:
- name: Install dependencies
run: |
bash scripts/npu_ci_install_dependency.sh
# copy required dataset file from our daily cache
# copy required file from our daily cache
cp ~/.cache/modelscope/hub/datasets/otavia/ShareGPT_Vicuna_unfiltered/ShareGPT_V3_unfiltered_cleaned_split.json /tmp
# copy download through proxy
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
- name: Run test
timeout-minutes: 30
......
#!/bin/bash
set -euo pipefail
# Install the required dependencies in CI.
sed -i 's|ports.ubuntu.com|mirrors.tuna.tsinghua.edu.cn|g' /etc/apt/sources.list
# Install the required dependencies from cache
sed -Ei 's@(ports|archive).ubuntu.com@cache-service.nginx-pypi-cache.svc.cluster.local:8081@g' /etc/apt/sources.list
apt update -y
apt install -y build-essential cmake python3-pip python3-dev wget net-tools zlib1g-dev lld clang software-properties-common
apt install -y build-essential cmake python3-pip python3-dev wget net-tools zlib1g-dev lld clang software-properties-common curl
pip config set global.index-url https://mirrors.huaweicloud.com/repository/pypi/simple
# Setup pip cache
pip config set global.index-url http://cache-service.nginx-pypi-cache.svc.cluster.local/pypi/simple
pip config set global.trusted-host cache-service.nginx-pypi-cache.svc.cluster.local
python3 -m pip install --upgrade pip
pip uninstall sgl-kernel -y || true
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment