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
0ac809de
Unverified
Commit
0ac809de
authored
Sep 10, 2025
by
Seunggeun Cho
Committed by
GitHub
Sep 10, 2025
Browse files
Fix assertion typo in tp_worker.py (#9954)
parent
4efe2c57
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
python/sglang/srt/managers/tp_worker.py
python/sglang/srt/managers/tp_worker.py
+1
-1
No files found.
python/sglang/srt/managers/tp_worker.py
View file @
0ac809de
...
@@ -146,7 +146,7 @@ class TpModelWorker:
...
@@ -146,7 +146,7 @@ class TpModelWorker:
assert
self
.
max_running_requests
>
0
,
"max_running_request is zero"
assert
self
.
max_running_requests
>
0
,
"max_running_request is zero"
self
.
max_queued_requests
=
server_args
.
max_queued_requests
self
.
max_queued_requests
=
server_args
.
max_queued_requests
assert
(
assert
(
self
.
max_
running
_requests
>
0
self
.
max_
queued
_requests
>
0
),
"max_queued_requests is zero. We need to be at least 1 to schedule a request."
),
"max_queued_requests is zero. We need to be at least 1 to schedule a request."
self
.
max_req_len
=
min
(
self
.
max_req_len
=
min
(
self
.
model_config
.
context_len
-
1
,
self
.
model_config
.
context_len
-
1
,
...
...
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