-
Notifications
You must be signed in to change notification settings - Fork 46
95 lines (89 loc) · 3.18 KB
/
test.yml
File metadata and controls
95 lines (89 loc) · 3.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: Run Tests on gpu and iluvatar
on: push
jobs:
upload_on_gpu:
name: Upload on bj-gpu-03 runner
runs-on: [bj-gpu-03]
container:
image: ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlepaddle/paddle:3.2.1-gpu-cuda11.8-cudnn8.9
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies (bj-gpu-03)
shell: bash
run: |
set -euxo pipefail
pip install --pre paddlepaddle-gpu -i https://www.paddlepaddle.org.cn/packages/nightly/cu118/
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
pip install func_timeout pandas pebble pynvml pyyaml
- name: Run EngineV2 (upload on bj-gpu-03)
shell: bash
run: |
set -euxo pipefail
python engineV2.py \
--custom_device_vs_gpu=True \
--custom_device_vs_gpu_mode=upload \
--random_seed=712 \
--api_config_file="tests/test.txt" \
--num_gpus=-1 \
--num_workers_per_gpu=1 \
--required_memory=10.0
- name: Package logs (bj-gpu-03)
if: always()
shell: bash
run: |
set -euxo pipefail
tar -czf test_log.tar.gz tester/api_config/test_log
- name: Upload test logs artifact (bj-gpu-03)
if: always()
uses: actions/upload-artifact@v4
with:
name: test_log_bj-gpu-03
path: test_log.tar.gz
download_on_iluvatar:
name: Download on iluvatar-gpu-2-1 runner
runs-on: [iluvatar-gpu-2-1]
needs: upload_on_gpu
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies (iluvatar-gpu-2-1)
shell: bash
run: |
set -euxo pipefail
pip install func_timeout pandas pebble pynvml pyyaml
python -m pip install paddlepaddle==3.2.1 -i https://www.paddlepaddle.org.cn/packages/stable/cpu/
python -m pip install paddle-iluvatar-gpu==3.2.1 -i https://www.paddlepaddle.org.cn/packages/stable/ixuca/
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
- name: Run EngineV2 (download on iluvatar-gpu-2-1)
shell: bash
run: |
set -euxo pipefail
python engineV2.py \
--custom_device_vs_gpu=True \
--custom_device_vs_gpu_mode=download \
--random_seed=712 \
--api_config_file="tests/test.txt" \
--num_gpus=-1 \
--num_workers_per_gpu=1 \
--required_memory=10.0
- name: Package logs (iluvatar-gpu-2-1)
if: always()
shell: bash
run: |
set -euxo pipefail
tar -czf test_log.tar.gz tester/api_config/test_log
- name: Upload test logs artifact (iluvatar-gpu-2-1)
if: always()
uses: actions/upload-artifact@v4
with:
name: test_log_iluvatar-gpu-2-1
path: test_log.tar.gz