-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Router] Implement router backbone #1695
Closed
Closed
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
e391e4a
wip
ByronHsu 6852972
wip
ByronHsu 614fac4
basic stuff seems working
ByronHsu b652306
wip
ByronHsu 90434c5
wip
ByronHsu 972c0b5
loose timeout
ByronHsu 9d5201b
wip
ByronHsu 02f62d7
wip
ByronHsu cae55b1
wip
ByronHsu bf7fdad
ok test finally works
ByronHsu 9107f65
wip
ByronHsu 0effe5d
wip
ByronHsu f1560d7
wip
ByronHsu 7729a31
wip
ByronHsu a6e872b
wip
ByronHsu 44f22ba
trigger ci
ByronHsu 1128028
disable amd pr test
ByronHsu 4ef767b
disable amd pr test
ByronHsu d7d2b09
wip
ByronHsu 9c6fca3
add a doc
ByronHsu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,212 +18,6 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
unit-test-frontend: | ||
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[dev]" | ||
pip install transformers==4.45.2 | ||
pip install flashinfer -i https://flashinfer.ai/whl/cu121/torch2.4/ --force-reinstall | ||
- name: Run test | ||
timeout-minutes: 20 | ||
run: | | ||
cd test/lang | ||
python3 run_suite.py --suite minimal | ||
unit-test-backend-part-1: | ||
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[dev]" | ||
pip install transformers==4.45.2 | ||
pip install flashinfer -i https://flashinfer.ai/whl/cu121/torch2.4/ --force-reinstall | ||
- name: Run test | ||
timeout-minutes: 20 | ||
run: | | ||
cd test/srt | ||
python3 run_suite.py --suite minimal --range-begin 0 --range-end 5 | ||
unit-test-backend-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[dev]" | ||
pip install transformers==4.45.2 | ||
pip install flashinfer -i https://flashinfer.ai/whl/cu121/torch2.4/ --force-reinstall | ||
- name: Run test | ||
timeout-minutes: 30 | ||
run: | | ||
cd test/srt | ||
python3 run_suite.py --suite minimal --range-begin 5 --range-end 17 | ||
unit-test-backend-part-3: | ||
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[dev]" | ||
pip install transformers==4.45.2 | ||
pip install flashinfer -i https://flashinfer.ai/whl/cu121/torch2.4/ --force-reinstall | ||
- name: Run test | ||
timeout-minutes: 30 | ||
run: | | ||
cd test/srt | ||
python3 run_suite.py --suite minimal --range-begin 17 | ||
performance-test-1-gpu-part-1: | ||
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 transformers==4.45.2 | ||
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 | ||
timeout-minutes: 10 | ||
run: | | ||
cd test/srt | ||
python3 -m unittest test_bench_serving.TestBenchServing.test_offline_throughput_default | ||
- name: Benchmark Offline Throughput (Non-streaming, small batch size) | ||
timeout-minutes: 10 | ||
run: | | ||
cd test/srt | ||
python3 -m unittest test_bench_serving.TestBenchServing.test_offline_throughput_non_stream_small_batch_size | ||
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 transformers==4.45.2 | ||
pip install flashinfer -i https://flashinfer.ai/whl/cu121/torch2.4/ --force-reinstall | ||
- name: Benchmark Offline Throughput (w/o RadixAttention) | ||
timeout-minutes: 10 | ||
run: | | ||
cd test/srt | ||
python3 -m unittest test_bench_serving.TestBenchServing.test_offline_throughput_without_radix_cache | ||
- name: Benchmark Offline Throughput (w/ Triton) | ||
timeout-minutes: 10 | ||
run: | | ||
cd test/srt | ||
python3 -m unittest test_bench_serving.TestBenchServing.test_offline_throughput_with_triton_attention_backend | ||
- name: Benchmark Offline Throughput (w/ FP8) | ||
timeout-minutes: 10 | ||
run: | | ||
cd test/srt | ||
python3 -m unittest test_bench_serving.TestBenchServing.test_offline_throughput_default_fp8 | ||
performance-test-2-gpu: | ||
if: github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request' | ||
runs-on: 2-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 transformers==4.45.2 | ||
pip install flashinfer -i https://flashinfer.ai/whl/cu121/torch2.4/ --force-reinstall | ||
- name: Benchmark Offline Throughput (TP=2) | ||
timeout-minutes: 10 | ||
run: | | ||
cd test/srt | ||
python3 -m unittest test_bench_serving.TestBenchServing.test_moe_offline_throughput_default | ||
- name: Benchmark Offline Throughput (w/o RadixAttention) (TP=2) | ||
timeout-minutes: 10 | ||
run: | | ||
cd test/srt | ||
python3 -m unittest test_bench_serving.TestBenchServing.test_moe_offline_throughput_without_radix_cache | ||
- name: Benchmark Single Latency (TP=2) | ||
timeout-minutes: 10 | ||
run: | | ||
cd test/srt | ||
python3 -m unittest test_bench_latency.TestBenchLatency.test_moe_default | ||
accuracy-test-1-gpu: | ||
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 transformers==4.45.2 | ||
pip install flashinfer -i https://flashinfer.ai/whl/cu121/torch2.4/ --force-reinstall | ||
git clone https://github.com/merrymercy/human-eval.git | ||
cd human-eval | ||
pip install -e . | ||
- name: Evaluate Accuracy | ||
timeout-minutes: 20 | ||
run: | | ||
cd test/srt | ||
python3 test_eval_accuracy_large.py | ||
accuracy-test-2-gpu: | ||
if: github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request' | ||
runs-on: 2-gpu-runner | ||
|
@@ -242,32 +36,8 @@ jobs: | |
cd human-eval | ||
pip install -e . | ||
- name: Evaluate Accuracy (TP=2) | ||
timeout-minutes: 20 | ||
run: | | ||
cd test/srt | ||
python3 test_moe_eval_accuracy_large.py | ||
- name: Evaluate MLA Accuracy (TP=2) | ||
- name: Evaluate DP Router Accuracy (DP = 2) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ditto |
||
timeout-minutes: 10 | ||
run: | | ||
cd test/srt | ||
python3 test_mla.py | ||
python3 test_mla_fp8.py | ||
- name: Evaluate Data Parallelism Accuracy (DP=2) | ||
timeout-minutes: 10 | ||
run: | | ||
cd test/srt | ||
python3 test_data_parallelism.py | ||
finish: | ||
needs: [ | ||
unit-test-frontend, unit-test-backend-part-1, unit-test-backend-part-2, unit-test-backend-part-3, | ||
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: ubuntu-latest | ||
steps: | ||
- name: Finish | ||
run: echo "This is an empty step to ensure that all jobs are completed." | ||
python3 test_router.py |
Empty file.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will revert once review is done. this is for fast ci iteration
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this has been disabled