"vscode:/vscode.git/clone" did not exist on "04eaae25e00bb9fe5b0e25bd18fc7afd0d0351a4"
Unverified Commit e712837d authored by Yineng Zhang's avatar Yineng Zhang Committed by GitHub
Browse files

misc: update test config (#990)

parent 7599bade
...@@ -20,7 +20,7 @@ concurrency: ...@@ -20,7 +20,7 @@ concurrency:
jobs: jobs:
e2e-test: e2e-test:
if: github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request' if: github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request'
runs-on: self-hosted runs-on: bench
steps: steps:
- name: Checkout code - name: Checkout code
...@@ -38,6 +38,7 @@ jobs: ...@@ -38,6 +38,7 @@ jobs:
- name: Benchmark Serving Throughput - name: Benchmark Serving Throughput
run: | run: |
python3 -m sglang.launch_server --model meta-llama/Meta-Llama-3.1-8B-Instruct --port 8413 --disable-radix-cache & 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..." echo "Waiting for server to start..."
for i in {1..120}; do for i in {1..120}; do
...@@ -52,7 +53,7 @@ jobs: ...@@ -52,7 +53,7 @@ jobs:
sleep 1 sleep 1
done done
cd $HOME && python3 -m sglang.bench_serving --backend sglang --port 8413 --dataset-name random --num-prompts 3000 --random-input 256 --random-output 512 cd $HOME && python3 -m sglang.bench_serving --backend sglang --port 8413 --dataset-name random --num-prompts 500 --random-input 4096 --random-output 2048
echo "Stopping server..." 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
...@@ -20,7 +20,7 @@ concurrency: ...@@ -20,7 +20,7 @@ concurrency:
jobs: jobs:
unit-test: unit-test:
if: github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request' if: github.repository == 'sgl-project/sglang' || github.event_name == 'pull_request'
runs-on: self-hosted runs-on: unit
steps: steps:
- name: Checkout code - name: Checkout code
......
# Code Structures # Code Structures
- `lang`: The frontend language. - `lang`: The frontend language.
- `srt`: The backend engine for running local models. (SRT = SGLang Runtime). - `srt`: The backend engine for running local models. (SRT = SGLang Runtime).
- `test`: Test utilities. - `test`: Test utilities.
......
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