Fix test and benchmark scripts (#2598)

This commit is contained in:
Lianmin Zheng
2024-12-26 07:56:26 -08:00
committed by GitHub
parent a74d194146
commit dc3bee4815
9 changed files with 27 additions and 21 deletions

View File

@@ -1,4 +1,4 @@
name: Nightly Evaluation
name: Nightly Test
on:
schedule:
@@ -11,11 +11,11 @@ on:
workflow_dispatch:
concurrency:
group: nightly-eval-${{ github.ref }}
group: nightly-test-${{ github.ref }}
cancel-in-progress: true
jobs:
nightly-eval-2-gpu:
nightly-test:
if: github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request'
runs-on: 2-gpu-runner
steps:
@@ -27,14 +27,8 @@ jobs:
bash scripts/ci_install_dependency.sh
pip install --upgrade "evalplus[vllm] @ git+https://github.com/evalplus/evalplus"
- name: Test gsm8k
timeout-minutes: 120
- name: Run test
timeout-minutes: 10
run: |
cd test/srt
python3 test_nightly_gsm8k_eval.py
- name: Test human eval
timeout-minutes: 120
run: |
cd test/srt
python3 test_nightly_human_eval.py
cd test/lang
python3 run_suite.py --suite nightly --timeout-per-file 2400

View File

@@ -45,7 +45,7 @@ jobs:
timeout-minutes: 10
run: |
cd test/lang
python3 run_suite.py --suite minimal
python3 run_suite.py --suite per-commit
unit-test-backend-1-gpu:
if: github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request'
@@ -70,7 +70,7 @@ jobs:
RANGE=${{ matrix.range }}
range_begin=${RANGE%-*}
range_end=${RANGE#*-}
python3 run_suite.py --suite minimal --range-begin ${range_begin} --range-end ${range_end}
python3 run_suite.py --suite per-commit --range-begin ${range_begin} --range-end ${range_end}
unit-test-backend-2-gpu:
if: github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request'