-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Benchmark: add H100 suite #6047
Merged
Merged
Changes from 14 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
9708b63
Benchmark: add H100 suite
simon-mo 9eee134
try propogate uid-gid
simon-mo 626871d
try propogate uid-gid
simon-mo 431d68e
try fix device_count
simon-mo 7e85042
apply kaichao's patch (to be revertted)
simon-mo 1bb0ae6
better cleanup?
simon-mo a4c7b22
better cleanupx2
simon-mo e822040
Merge branch 'main' of github.com:vllm-project/vllm into h100-bench
simon-mo 61cd79e
revert
simon-mo 92e74cf
revert
simon-mo b36115f
Merge branch 'main' of github.com:vllm-project/vllm into h100-bench
simon-mo 022cbe2
properly locate buildkite-agent
simon-mo 002dcef
add back a100
simon-mo 329b4f5
Update .buildkite/nightly-benchmarks/run-benchmarks-suite.sh
simon-mo d1d8443
fix annotation lable
simon-mo 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 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
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 |
---|---|---|
|
@@ -54,7 +54,7 @@ wait_for_server() { | |
# wait for vllm server to start | ||
# return 1 if vllm server crashes | ||
timeout 1200 bash -c ' | ||
until curl localhost:8000/v1/completions; do | ||
until curl -X POST localhost:8000/v1/completions; do | ||
sleep 1 | ||
done' && return 0 || return 1 | ||
} | ||
|
@@ -73,8 +73,17 @@ kill_gpu_processes() { | |
echo "All GPU processes have been killed." | ||
fi | ||
|
||
# Sometimes kill with pid doesn't work properly, we can also kill all process running python or python3 | ||
# since we are in container anyway | ||
pkill -9 -f python | ||
pkill -9 -f python3 | ||
|
||
# waiting for GPU processes to be fully killed | ||
sleep 10 | ||
# loop while nvidia-smi returns any processes | ||
while [ -n "$(nvidia-smi --query-compute-apps=pid --format=csv,noheader)" ]; do | ||
sleep 1 | ||
echo "Waiting for GPU processes to be killed" | ||
done | ||
|
||
# remove vllm config file | ||
rm -rf ~/.config/vllm | ||
|
@@ -90,12 +99,19 @@ upload_to_buildkite() { | |
# upload the benchmarking results to buildkite | ||
|
||
# if the agent binary is not found, skip uploading the results, exit 0 | ||
if [ ! -f /workspace/buildkite-agent ]; then | ||
# Check if buildkite-agent is available in the PATH or at /workspace/buildkite-agent | ||
if command -v buildkite-agent >/dev/null 2>&1; then | ||
BUILDKITE_AGENT_COMMAND="buildkite-agent" | ||
elif [ -f /workspace/buildkite-agent ]; then | ||
BUILDKITE_AGENT_COMMAND="/workspace/buildkite-agent" | ||
else | ||
echo "buildkite-agent binary not found. Skip uploading the results." | ||
return 0 | ||
fi | ||
/workspace/buildkite-agent annotate --style "info" --context "benchmark-results" < $RESULTS_FOLDER/benchmark_results.md | ||
/workspace/buildkite-agent artifact upload "$RESULTS_FOLDER/*" | ||
|
||
# Use the determined command to annotate and upload artifacts | ||
$BUILDKITE_AGENT_COMMAND annotate --style "info" --context "h100-benchmark-results" < $RESULTS_FOLDER/benchmark_results.md | ||
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. --context "${gpu_type}-benchmark-results" |
||
$BUILDKITE_AGENT_COMMAND artifact upload "$RESULTS_FOLDER/*" | ||
} | ||
|
||
run_latency_tests() { | ||
|
@@ -269,6 +285,7 @@ run_serving_tests() { | |
echo "Running test case $test_name" | ||
echo "Server command: $server_command" | ||
eval "$server_command" & | ||
server_pid=$! | ||
|
||
# wait until the server is alive | ||
wait_for_server | ||
|
@@ -318,6 +335,7 @@ run_serving_tests() { | |
done | ||
|
||
# clean up | ||
kill -9 $server_pid | ||
kill_gpu_processes | ||
done | ||
} | ||
|
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.
I tried
pkill pt_main_thread
, but I guesspkill -9 -f python3
also works.