Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
change
sglang
Commits
9449a954
"examples/pytorch/vscode:/vscode.git/clone" did not exist on "34426a98e9ecc9f4b90d2b29ea243e095e9eb19e"
Unverified
Commit
9449a954
authored
Dec 01, 2024
by
Lianmin Zheng
Committed by
GitHub
Dec 01, 2024
Browse files
[CI] Balance CI tests (#2293)
parent
5f12f0e7
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
58 deletions
+19
-58
.github/workflows/pr-test.yml
.github/workflows/pr-test.yml
+10
-56
scripts/ci_install_dependency.sh
scripts/ci_install_dependency.sh
+8
-2
test/srt/run_suite.py
test/srt/run_suite.py
+1
-0
No files found.
.github/workflows/pr-test.yml
View file @
9449a954
...
...
@@ -35,9 +35,12 @@ jobs:
cd test/lang
python3 run_suite.py --suite minimal
unit-test-backend-
part-1
:
unit-test-backend-
1-gpu
:
if
:
github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request'
runs-on
:
1-gpu-runner
strategy
:
matrix
:
range
:
[
0-6
,
6-16
,
16-24
,
24-30
,
30-100
]
steps
:
-
name
:
Checkout code
uses
:
actions/checkout@v3
...
...
@@ -50,60 +53,12 @@ jobs:
timeout-minutes
:
25
run
:
|
cd test/srt
python3 run_suite.py --suite minimal --range-begin 0 --range-end 6
RANGE=${{ matrix.range }}
range_begin=${RANGE%-*}
range_end=${RANGE#*-}
python3 run_suite.py --suite minimal --range-begin ${range_begin} --range-end ${range_end}
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
:
|
bash scripts/ci_install_dependency.sh
-
name
:
Run test
timeout-minutes
:
25
run
:
|
cd test/srt
python3 run_suite.py --suite minimal --range-begin 6 --range-end 15
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
:
|
bash scripts/ci_install_dependency.sh
-
name
:
Run test
timeout-minutes
:
25
run
:
|
cd test/srt
python3 run_suite.py --suite minimal --range-begin 15 --range-end 24
unit-test-backend-part-4
:
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
:
|
bash scripts/ci_install_dependency.sh
-
name
:
Run test
timeout-minutes
:
25
run
:
|
cd test/srt
python3 run_suite.py --suite minimal --range-begin 24
unit-test-backend-2-gpu-part-1
:
unit-test-backend-2-gpu
:
if
:
github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request'
runs-on
:
2-gpu-runner
steps
:
...
...
@@ -267,8 +222,7 @@ jobs:
finish
:
needs
:
[
unit-test-frontend
,
unit-test-backend-part-1
,
unit-test-backend-part-2
,
unit-test-backend-part-3
,
unit-test-backend-part-4
,
unit-test-backend-2-gpu-part-1
,
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
]
...
...
scripts/ci_install_dependency.sh
View file @
9449a954
...
...
@@ -6,8 +6,14 @@ Install the dependency in CI.
pip
install
--upgrade
pip
pip
install
-e
"python[all]"
--find-links
https://flashinfer.ai/whl/cu121/torch2.4/flashinfer/
# Force reinstall flashinfer
pip
install
flashinfer
-i
https://flashinfer.ai/whl/cu121/torch2.4/
--force-reinstall
pip
install
transformers
==
4.45.2 sentence_transformers accelerate peft
# for compling eagle kernels
# For compling eagle kernels
pip
install
cutex
# for compling xgrammar kernels
# For compling xgrammar kernels
pip
install
cuda-python nvidia-cuda-nvrtc-cu12
test/srt/run_suite.py
View file @
9449a954
...
...
@@ -91,6 +91,7 @@ if __name__ == "__main__":
files
=
files
[
args
.
range_begin
:
args
.
range_end
]
print
(
f
"
{
args
=
}
"
)
print
(
"The running tests are "
,
files
)
exit_code
=
run_unittest_files
(
files
,
args
.
timeout_per_file
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment