Unverified Commit 9bddf1c8 authored by Cheng Wan's avatar Cheng Wan Committed by GitHub
Browse files

Deferring 8 GPU test (#6102)

parent 24c13ca9
...@@ -7,12 +7,14 @@ on: ...@@ -7,12 +7,14 @@ on:
- "python/**" - "python/**"
- "scripts/**" - "scripts/**"
- "test/**" - "test/**"
- ".github/workflows/pr-test.yml"
pull_request: pull_request:
branches: [ main ] branches: [ main ]
paths: paths:
- "python/**" - "python/**"
- "scripts/**" - "scripts/**"
- "test/**" - "test/**"
- ".github/workflows/pr-test.yml"
workflow_dispatch: workflow_dispatch:
inputs: inputs:
version: version:
...@@ -87,24 +89,6 @@ jobs: ...@@ -87,24 +89,6 @@ jobs:
cd test/srt cd test/srt
python3 run_suite.py --suite per-commit-2-gpu 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: performance-test-1-gpu-part-1:
if: (github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request') && if: (github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request') &&
github.event.pull_request.draft == false github.event.pull_request.draft == false
...@@ -256,12 +240,35 @@ jobs: ...@@ -256,12 +240,35 @@ jobs:
cd test/srt cd test/srt
python3 test_moe_eval_accuracy_large.py 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: finish:
if: always() if: always()
needs: [ 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, 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 runs-on: ubuntu-latest
steps: steps:
......
...@@ -61,7 +61,7 @@ class TestPPAccuracy(unittest.TestCase): ...@@ -61,7 +61,7 @@ class TestPPAccuracy(unittest.TestCase):
metrics = run_eval(args) metrics = run_eval(args)
print(f"{metrics=}") 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. # Wait a little bit so that the memory check happens.
time.sleep(5) time.sleep(5)
......
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