Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 27 additions & 20 deletions .github/workflows/pr-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@ on:
- "python/**"
- "scripts/**"
- "test/**"
- ".github/workflows/pr-test.yml"
pull_request:
branches: [ main ]
paths:
- "python/**"
- "scripts/**"
- "test/**"
- ".github/workflows/pr-test.yml"
workflow_dispatch:
inputs:
version:
Expand Down Expand Up @@ -87,24 +89,6 @@ jobs:
cd test/srt
python3 run_suite.py --suite per-commit-2-gpu

unit-test-backend-8-gpu:
if: (github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request') &&
github.event.pull_request.draft == false
runs-on: 8-gpu-runner
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install dependencies
run: |
bash scripts/ci_install_dependency_8_gpu.sh

- name: Run test
timeout-minutes: 20
run: |
cd test/srt
python3 run_suite.py --suite per-commit-8-gpu

performance-test-1-gpu-part-1:
if: (github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request') &&
github.event.pull_request.draft == false
Expand Down Expand Up @@ -256,12 +240,35 @@ jobs:
cd test/srt
python3 test_moe_eval_accuracy_large.py

large-scale-test-8-gpu:
if: (github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request') &&
github.event.pull_request.draft == false
needs: [
unit-test-frontend, unit-test-backend-1-gpu, unit-test-backend-2-gpu,
performance-test-1-gpu-part-1, performance-test-1-gpu-part-2, performance-test-2-gpu,
accuracy-test-1-gpu, accuracy-test-2-gpu,
]
runs-on: 8-gpu-runner
steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Install dependencies
run: |
bash scripts/ci_install_dependency_8_gpu.sh

- name: Run test
timeout-minutes: 25
run: |
cd test/srt
python3 run_suite.py --suite per-commit-8-gpu

finish:
if: always()
needs: [
unit-test-frontend, unit-test-backend-1-gpu, unit-test-backend-2-gpu, unit-test-backend-8-gpu,
unit-test-frontend, unit-test-backend-1-gpu, unit-test-backend-2-gpu,
performance-test-1-gpu-part-1, performance-test-1-gpu-part-2, performance-test-2-gpu,
accuracy-test-1-gpu, accuracy-test-2-gpu,
accuracy-test-1-gpu, accuracy-test-2-gpu, large-scale-test-8-gpu,
]
runs-on: ubuntu-latest
steps:
Expand Down
2 changes: 1 addition & 1 deletion test/srt/test_pp_single_node.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def test_gsm8k(self):
metrics = run_eval(args)
print(f"{metrics=}")

self.assertGreater(metrics["accuracy"], 0.75)
self.assertGreater(metrics["accuracy"], 0.74)
# Wait a little bit so that the memory check happens.
time.sleep(5)

Expand Down
Loading