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
c35dcfdb
Unverified
Commit
c35dcfdb
authored
Apr 11, 2025
by
Yusong Gao
Committed by
GitHub
Apr 11, 2025
Browse files
[PD] fix: skip warmup request in disaggregation mode to prevent crash on timeout (#5292)
parent
c163bf4f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
python/sglang/srt/entrypoints/http_server.py
python/sglang/srt/entrypoints/http_server.py
+11
-7
No files found.
python/sglang/srt/entrypoints/http_server.py
View file @
c35dcfdb
...
...
@@ -785,13 +785,17 @@ def _wait_and_warmup(
json_data
[
"sampling_params"
][
"max_new_tokens"
]
=
0
try
:
res
=
requests
.
post
(
url
+
request_name
,
json
=
json_data
,
headers
=
headers
,
timeout
=
600
,
)
assert
res
.
status_code
==
200
,
f
"
{
res
}
"
if
server_args
.
disaggregation_mode
==
"null"
:
res
=
requests
.
post
(
url
+
request_name
,
json
=
json_data
,
headers
=
headers
,
timeout
=
600
,
)
assert
res
.
status_code
==
200
,
f
"
{
res
}
"
else
:
# Warmup request currently hangs in disaggregation mode, so we skip it.
logger
.
info
(
"Skipping warmup request in disaggregation mode"
)
except
Exception
:
last_traceback
=
get_exception_traceback
()
if
pipe_finish_writer
is
not
None
:
...
...
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