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
e712837d
Unverified
Commit
e712837d
authored
Aug 11, 2024
by
Yineng Zhang
Committed by
GitHub
Aug 11, 2024
Browse files
misc: update test config (#990)
parent
7599bade
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
.github/workflows/e2e-test.yml
.github/workflows/e2e-test.yml
+4
-3
.github/workflows/unit-test.yml
.github/workflows/unit-test.yml
+1
-1
python/sglang/README.md
python/sglang/README.md
+0
-1
No files found.
.github/workflows/e2e-test.yml
View file @
e712837d
...
...
@@ -20,7 +20,7 @@ concurrency:
jobs
:
e2e-test
:
if
:
github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request'
runs-on
:
self-hosted
runs-on
:
bench
steps
:
-
name
:
Checkout code
...
...
@@ -38,6 +38,7 @@ jobs:
-
name
:
Benchmark Serving Throughput
run
:
|
python3 -m sglang.launch_server --model meta-llama/Meta-Llama-3.1-8B-Instruct --port 8413 --disable-radix-cache &
SERVER_PID=$!
echo "Waiting for server to start..."
for i in {1..120}; do
...
...
@@ -52,7 +53,7 @@ jobs:
sleep 1
done
cd $HOME && python3 -m sglang.bench_serving --backend sglang --port 8413 --dataset-name random --num-prompts
30
00 --random-input
25
6 --random-output
512
cd $HOME && python3 -m sglang.bench_serving --backend sglang --port 8413 --dataset-name random --num-prompts
5
00 --random-input
409
6 --random-output
2048
echo "Stopping server..."
kill -9 $
(ps aux | grep sglang | grep Meta-Llama-3.1-8B-Instruct | grep -- "--port 8413" | grep -v grep | awk '{print $2}')
kill -9 $
SERVER_PID
.github/workflows/unit-test.yml
View file @
e712837d
...
...
@@ -20,7 +20,7 @@ concurrency:
jobs
:
unit-test
:
if
:
github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request'
runs-on
:
self-hosted
runs-on
:
unit
steps
:
-
name
:
Checkout code
...
...
python/sglang/README.md
View file @
e712837d
# Code Structures
-
`lang`
: The frontend language.
-
`srt`
: The backend engine for running local models. (SRT = SGLang Runtime).
-
`test`
: Test utilities.
...
...
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