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
6d3c20cf
Unverified
Commit
6d3c20cf
authored
Sep 01, 2025
by
Liangsheng Yin
Committed by
GitHub
Sep 01, 2025
Browse files
fix `set_interal_state` API (#9850)
parent
8b6966d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
python/sglang/srt/managers/tokenizer_manager.py
python/sglang/srt/managers/tokenizer_manager.py
+2
-4
No files found.
python/sglang/srt/managers/tokenizer_manager.py
View file @
6d3c20cf
...
@@ -1335,13 +1335,11 @@ class TokenizerManager:
...
@@ -1335,13 +1335,11 @@ class TokenizerManager:
# Many DP ranks
# Many DP ranks
return
[
res
.
internal_state
for
res
in
responses
]
return
[
res
.
internal_state
for
res
in
responses
]
async
def
set_internal_state
(
async
def
set_internal_state
(
self
,
obj
:
SetInternalStateReq
)
->
List
[
bool
]:
self
,
obj
:
SetInternalStateReq
)
->
SetInternalStateReqOutput
:
responses
:
List
[
SetInternalStateReqOutput
]
=
(
responses
:
List
[
SetInternalStateReqOutput
]
=
(
await
self
.
set_internal_state_communicator
(
obj
)
await
self
.
set_internal_state_communicator
(
obj
)
)
)
return
[
res
.
internal_st
ate
for
res
in
responses
]
return
[
res
.
upd
ate
d
for
res
in
responses
]
async
def
get_load
(
self
)
->
dict
:
async
def
get_load
(
self
)
->
dict
:
# TODO(lsyin): fake load report server
# TODO(lsyin): fake load report server
...
...
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