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
6487ef64
Unverified
Commit
6487ef64
authored
Sep 02, 2024
by
Yineng Zhang
Committed by
GitHub
Sep 02, 2024
Browse files
ci: add nightly eval (#1291)
parent
9b080524
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
66 additions
and
0 deletions
+66
-0
.github/workflows/nightly-eval.yml
.github/workflows/nightly-eval.yml
+66
-0
No files found.
.github/workflows/nightly-eval.yml
0 → 100644
View file @
6487ef64
name
:
Nightly Evaluation
on
:
schedule
:
-
cron
:
'
0
0
*
*
*'
push
:
branches
:
-
main
paths
:
-
"
python/sglang/version.py"
workflow_dispatch
:
concurrency
:
group
:
nightly-eval-${{ github.ref }}
cancel-in-progress
:
true
jobs
:
meta-llama-31-8b-instruct
:
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 flashinfer -i https://flashinfer.ai/whl/cu121/torch2.4/ --force-reinstall
git clone https://github.com/EleutherAI/lm-evaluation-harness
pushd lm-evaluation-harness
pip install -e .
pip install lm_eval[api]
popd
-
name
:
Run eval
timeout-minutes
:
20
run
:
|
python3 -m sglang.launch_server --model meta-llama/Meta-Llama-3.1-8B-Instruct --disable-radix-cache &
echo "Waiting for server to start..."
for i in {1..120}; do
if curl -s http://127.0.0.1:30000/health; then
echo "Server is up!"
break
fi
if [ $i -eq 120 ]; then
echo "Server failed to start within 120 seconds"
exit 1
fi
sleep 1
done
lm_eval --model local-completions --tasks gsm8k --model_args model=meta-llama/Meta-Llama-3.1-8B-Instruct,base_url=http://127.0.0.1:30000/v1/completions,num_concurrent=128,max_retries=3,tokenized_requests=False
echo "Stopping server..."
kill -9 $(ps aux | grep sglang | grep Meta-Llama-3.1-8B-Instruct | grep -v grep | awk '{print $2}')
finish
:
needs
:
[
meta-llama-31-8b-instruct
]
runs-on
:
ubuntu-latest
steps
:
-
name
:
Finish
run
:
echo "This is an empty step to ensure that all jobs are completed."
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