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
83d2b30d
Commit
83d2b30d
authored
Jul 24, 2024
by
Ying Sheng
Browse files
format
parent
4367f4bb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
python/sglang/srt/managers/controller/tp_worker.py
python/sglang/srt/managers/controller/tp_worker.py
+1
-2
No files found.
python/sglang/srt/managers/controller/tp_worker.py
View file @
83d2b30d
...
@@ -104,8 +104,7 @@ class ModelTpServer:
...
@@ -104,8 +104,7 @@ class ModelTpServer:
else
server_args
.
max_running_requests
else
server_args
.
max_running_requests
)
)
self
.
max_running_requests
=
min
(
self
.
max_running_requests
=
min
(
self
.
max_running_requests
,
self
.
max_running_requests
,
self
.
model_runner
.
req_to_token_pool
.
size
-
1
self
.
model_runner
.
req_to_token_pool
.
size
-
1
)
)
self
.
int_token_logit_bias
=
torch
.
tensor
(
self
.
int_token_logit_bias
=
torch
.
tensor
(
get_int_token_logit_bias
(
self
.
tokenizer
,
self
.
model_config
.
vocab_size
)
get_int_token_logit_bias
(
self
.
tokenizer
,
self
.
model_config
.
vocab_size
)
...
...
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