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
40865665
Unverified
Commit
40865665
authored
May 18, 2025
by
fzyzcjy
Committed by
GitHub
May 17, 2025
Browse files
Fix expert distribution recorder and profiler command stuck forever (#6284)
parent
fd08c048
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
python/sglang/srt/managers/tokenizer_manager.py
python/sglang/srt/managers/tokenizer_manager.py
+5
-0
No files found.
python/sglang/srt/managers/tokenizer_manager.py
View file @
40865665
...
...
@@ -792,6 +792,7 @@ class TokenizerManager:
with_stack
:
Optional
[
bool
]
=
None
,
record_shapes
:
Optional
[
bool
]
=
None
,
):
self
.
auto_create_handle_loop
()
req
=
ProfileReq
(
type
=
ProfileReqType
.
START_PROFILE
,
output_dir
=
output_dir
,
...
...
@@ -814,16 +815,20 @@ class TokenizerManager:
return
result
def
stop_profile
(
self
):
self
.
auto_create_handle_loop
()
req
=
ProfileReq
(
type
=
ProfileReqType
.
STOP_PROFILE
)
self
.
send_to_scheduler
.
send_pyobj
(
req
)
async
def
start_expert_distribution_record
(
self
):
self
.
auto_create_handle_loop
()
await
self
.
expert_distribution_communicator
(
ExpertDistributionReq
.
START_RECORD
)
async
def
stop_expert_distribution_record
(
self
):
self
.
auto_create_handle_loop
()
await
self
.
expert_distribution_communicator
(
ExpertDistributionReq
.
STOP_RECORD
)
async
def
dump_expert_distribution_record
(
self
):
self
.
auto_create_handle_loop
()
await
self
.
expert_distribution_communicator
(
ExpertDistributionReq
.
DUMP_RECORD
)
async
def
update_weights_from_disk
(
...
...
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