Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
24e82227
Unverified
Commit
24e82227
authored
Sep 24, 2025
by
Weida Hong
Committed by
GitHub
Sep 23, 2025
Browse files
[Misc] Reduce initialization time of auto_tune (#23682)
Signed-off-by:
Weida Hong
<
wdhongtw@google.com
>
parent
100b630a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
benchmarks/auto_tune/auto_tune.sh
benchmarks/auto_tune/auto_tune.sh
+6
-1
No files found.
benchmarks/auto_tune/auto_tune.sh
View file @
24e82227
...
@@ -103,10 +103,15 @@ start_server() {
...
@@ -103,10 +103,15 @@ start_server() {
VLLM_USE_V1
=
1
VLLM_SERVER_DEV_MODE
=
1
\
VLLM_USE_V1
=
1
VLLM_SERVER_DEV_MODE
=
1
\
vllm serve
"
${
common_args_array
[@]
}
"
>
"
$vllm_log
"
2>&1 &
vllm serve
"
${
common_args_array
[@]
}
"
>
"
$vllm_log
"
2>&1 &
fi
fi
local
server_pid
=
$!
# wait for 10 minutes...
# wait for 10 minutes...
server_started
=
0
server_started
=
0
for
i
in
{
1..60
}
;
do
for
i
in
{
1..60
}
;
do
# This line checks whether the server is still alive or not,
# since that we should always have permission to send signal to the server process.
kill
-0
$server_pid
2> /dev/null
||
break
RESPONSE
=
$(
curl
-s
-X
GET
"http://0.0.0.0:8004/health"
-w
"%{http_code}"
-o
/dev/stdout
)
RESPONSE
=
$(
curl
-s
-X
GET
"http://0.0.0.0:8004/health"
-w
"%{http_code}"
-o
/dev/stdout
)
STATUS_CODE
=
$(
echo
"
$RESPONSE
"
|
tail
-n
1
)
STATUS_CODE
=
$(
echo
"
$RESPONSE
"
|
tail
-n
1
)
if
[[
"
$STATUS_CODE
"
-eq
200
]]
;
then
if
[[
"
$STATUS_CODE
"
-eq
200
]]
;
then
...
@@ -118,7 +123,7 @@ start_server() {
...
@@ -118,7 +123,7 @@ start_server() {
done
done
if
((
!
server_started
))
;
then
if
((
!
server_started
))
;
then
echo
"server did not start within 10 minutes. Please check server log at
$vllm_log
"
.
echo
"server did not start within 10 minutes
or crashed
. Please check server log at
$vllm_log
"
.
return
1
return
1
else
else
return
0
return
0
...
...
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