-
Notifications
You must be signed in to change notification settings - Fork 95
140 lines (118 loc) · 4.67 KB
/
nightly-test-daily.yml
File metadata and controls
140 lines (118 loc) · 4.67 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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
name: Nightly Test Daily
on:
schedule:
- cron: '0 16 * * *'
push:
branches:
- main
paths:
- "python/sgl_jax/version.py"
workflow_dispatch:
concurrency:
group: nightly-test-${{ github.ref }}
cancel-in-progress: true
jobs:
nightly-test-accuracy-text-models-1-tpu-daily:
if: github.repository == 'sgl-project/sglang-jax'
runs-on: arc-runner-v6e-1
continue-on-error: true
env:
TZ: Asia/Shanghai
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run eval test for text models
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_HUB_DOWNLOAD_TIMEOUT: ${{ vars.HF_HUB_DOWNLOAD_TIMEOUT }}
timeout-minutes: 3000
run: |
python3.12 -m venv .venv
source .venv/bin/activate
pip install uv
uv pip install -e "python[all]"
uv pip install evalscope==1.0.0
export OUTPUT_DIR_NAME=$(date +'%Y-%m-%d')
export BENCH_OUTPUT_DIR="$GITHUB_WORKSPACE/test/nightly_test_output/benchmark/$OUTPUT_DIR_NAME"
echo "BENCH_OUTPUT_DIR=$BENCH_OUTPUT_DIR" >> $GITHUB_ENV
mkdir -p $BENCH_OUTPUT_DIR
bash scripts/killall_sglang.sh
cd test/srt
python3 run_suite.py --suite nightly-test-accuracy-text-models-tpu-v6e-1-daily
- name: Publish traces to storage repo
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT_FOR_NIGHTLY_CI_DATA }}
GITHUB_RUN_ID: ${{ github.run_id }}
GITHUB_RUN_NUMBER: ${{ github.run_number }}
run: |
python3 scripts/ci/publish_bench_and_perf.py --source-dir ./test/nightly_test_output
nightly-test-perf-text-models-1-tpu-daily:
if: github.repository == 'sgl-project/sglang-jax'
runs-on: arc-runner-v6e-1
continue-on-error: true
env:
TZ: Asia/Shanghai
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run performance test for text models
timeout-minutes: 1800
env:
TRACE_BASE_URL: https://raw.githubusercontent.com/sglang-bot/sglang-ci-data/main/traces/${{ github.run_id }}
PERFETTO_RELAY_URL: ${{ vars.PERFETTO_RELAY_URL }}
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_HUB_DOWNLOAD_TIMEOUT: ${{ vars.HF_HUB_DOWNLOAD_TIMEOUT }}
run: |
python3.12 -m venv .venv
source .venv/bin/activate
pip install uv
uv pip install -e "python[all]"
export OUTPUT_DIR_NAME=$(date +'%Y-%m-%d')
export PERF_OUTPUT_DIR="$GITHUB_WORKSPACE/test/nightly_test_output/perf/$OUTPUT_DIR_NAME"
echo "PERF_OUTPUT_DIR=$PERF_OUTPUT_DIR" >> $GITHUB_ENV
mkdir -p $PERF_OUTPUT_DIR
bash scripts/killall_sglang.sh
cd test/srt
python3 run_suite.py --suite nightly-test-perf-text-models-tpu-v6e-1-daily
- name: Publish traces to storage repo
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT_FOR_NIGHTLY_CI_DATA }}
GITHUB_RUN_ID: ${{ github.run_id }}
GITHUB_RUN_NUMBER: ${{ github.run_number }}
run: |
python3 scripts/ci/publish_bench_and_perf.py --source-dir ./test/nightly_test_output
nightly-test-perf-trace-text-models-1-tpu-daily:
if: github.repository == 'sgl-project/sglang-jax'
runs-on: arc-runner-v6e-1
continue-on-error: true
env:
TZ: Asia/Shanghai
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run performance test for text models
timeout-minutes: 18000
env:
TRACE_BASE_URL: https://raw.githubusercontent.com/sglang-bot/sglang-ci-data/main/traces/${{ github.run_id }}
PERFETTO_RELAY_URL: ${{ vars.PERFETTO_RELAY_URL }}
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_HUB_DOWNLOAD_TIMEOUT: ${{ vars.HF_HUB_DOWNLOAD_TIMEOUT }}
run: |
python3.12 -m venv .venv
source .venv/bin/activate
pip install uv
uv pip install -e "python[all]"
export OUTPUT_DIR_NAME=$(date +'%Y-%m-%d')
export PERF_OUTPUT_DIR="$GITHUB_WORKSPACE/test/nightly_test_output/trace/$OUTPUT_DIR_NAME"
echo "PERF_OUTPUT_DIR=$PERF_OUTPUT_DIR" >> $GITHUB_ENV
mkdir -p $PERF_OUTPUT_DIR
bash scripts/killall_sglang.sh
cd test/srt
python3 run_suite.py --suite nightly-test-perf-trace-text-models-tpu-v6e-1-daily
- name: Publish traces to storage repo
env:
GITHUB_TOKEN: ${{ secrets.GH_PAT_FOR_NIGHTLY_CI_DATA }}
GITHUB_RUN_ID: ${{ github.run_id }}
GITHUB_RUN_NUMBER: ${{ github.run_number }}
run: |
python3 scripts/ci/publish_traces.py --traces-dir ./test/nightly_test_output