Balance test in CI (#1411)
This commit is contained in:
50
.github/workflows/pr-test.yml
vendored
50
.github/workflows/pr-test.yml
vendored
@@ -88,12 +88,37 @@ jobs:
|
|||||||
pip install -e "python[all]"
|
pip install -e "python[all]"
|
||||||
pip install flashinfer -i https://flashinfer.ai/whl/cu121/torch2.4/ --force-reinstall
|
pip install flashinfer -i https://flashinfer.ai/whl/cu121/torch2.4/ --force-reinstall
|
||||||
|
|
||||||
|
- name: Benchmark Single Latency
|
||||||
|
timeout-minutes: 10
|
||||||
|
run: |
|
||||||
|
cd test/srt
|
||||||
|
python3 -m unittest test_bench_latency.TestBenchLatency.test_default
|
||||||
|
|
||||||
|
- name: Benchmark Online Latency
|
||||||
|
timeout-minutes: 10
|
||||||
|
run: |
|
||||||
|
cd test/srt
|
||||||
|
python3 -m unittest test_bench_serving.TestBenchServing.test_online_latency_default
|
||||||
|
|
||||||
- name: Benchmark Offline Throughput
|
- name: Benchmark Offline Throughput
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
run: |
|
run: |
|
||||||
cd test/srt
|
cd test/srt
|
||||||
python3 -m unittest test_bench_serving.TestBenchServing.test_offline_throughput_default
|
python3 -m unittest test_bench_serving.TestBenchServing.test_offline_throughput_default
|
||||||
|
|
||||||
|
performance-test-1-gpu-part-2:
|
||||||
|
if: github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request'
|
||||||
|
runs-on: 1-gpu-runner
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
pip install --upgrade pip
|
||||||
|
pip install -e "python[all]"
|
||||||
|
pip install flashinfer -i https://flashinfer.ai/whl/cu121/torch2.4/ --force-reinstall
|
||||||
|
|
||||||
- name: Benchmark Offline Throughput (w/o RadixAttention)
|
- name: Benchmark Offline Throughput (w/o RadixAttention)
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
run: |
|
run: |
|
||||||
@@ -112,31 +137,6 @@ jobs:
|
|||||||
cd test/srt
|
cd test/srt
|
||||||
python3 -m unittest test_bench_serving.TestBenchServing.test_offline_throughput_with_triton_attention_backend
|
python3 -m unittest test_bench_serving.TestBenchServing.test_offline_throughput_with_triton_attention_backend
|
||||||
|
|
||||||
performance-test-1-gpu-part-2:
|
|
||||||
if: github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request'
|
|
||||||
runs-on: 1-gpu-runner
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
pip install --upgrade pip
|
|
||||||
pip install -e "python[all]"
|
|
||||||
pip install flashinfer -i https://flashinfer.ai/whl/cu121/torch2.4/ --force-reinstall
|
|
||||||
|
|
||||||
- name: Benchmark Single Latency
|
|
||||||
timeout-minutes: 10
|
|
||||||
run: |
|
|
||||||
cd test/srt
|
|
||||||
python3 -m unittest test_bench_latency.TestBenchLatency.test_default
|
|
||||||
|
|
||||||
- name: Benchmark Online Latency
|
|
||||||
timeout-minutes: 10
|
|
||||||
run: |
|
|
||||||
cd test/srt
|
|
||||||
python3 -m unittest test_bench_serving.TestBenchServing.test_online_latency_default
|
|
||||||
|
|
||||||
performance-test-2-gpu:
|
performance-test-2-gpu:
|
||||||
if: github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request'
|
if: github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request'
|
||||||
runs-on: 2-gpu-runner
|
runs-on: 2-gpu-runner
|
||||||
|
|||||||
@@ -7,5 +7,5 @@
|
|||||||
- `bench_latency.py`: Benchmark a single static batch.
|
- `bench_latency.py`: Benchmark a single static batch.
|
||||||
- `bench_serving.py`: Benchmark online serving with dynamic requests.
|
- `bench_serving.py`: Benchmark online serving with dynamic requests.
|
||||||
- `global_config.py`: The global configs and constants.
|
- `global_config.py`: The global configs and constants.
|
||||||
- `launch_server.py`: The entry point of launching local server.
|
- `launch_server.py`: The entry point for launching the local server.
|
||||||
- `utils.py`: Common utilities.
|
- `utils.py`: Common utilities.
|
||||||
|
|||||||
@@ -69,7 +69,7 @@ class TestBenchServing(unittest.TestCase):
|
|||||||
|
|
||||||
if os.getenv("SGLANG_IS_IN_CI", "false") == "true":
|
if os.getenv("SGLANG_IS_IN_CI", "false") == "true":
|
||||||
assert res["median_e2e_latency_ms"] < 12000
|
assert res["median_e2e_latency_ms"] < 12000
|
||||||
assert res["median_ttft_ms"] < 78
|
assert res["median_ttft_ms"] < 80
|
||||||
assert res["median_itl_ms"] < 12
|
assert res["median_itl_ms"] < 12
|
||||||
|
|
||||||
def test_moe_offline_throughput_default(self):
|
def test_moe_offline_throughput_default(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user