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
b06215da
"src/git@developer.sourcefind.cn:renzhc/diffusers_dcu.git" did not exist on "5fcee4a4471d32d3a5959e55805303a7ec7a801e"
Unverified
Commit
b06215da
authored
May 20, 2025
by
Yi Zhang
Committed by
GitHub
May 19, 2025
Browse files
[BUG] fix stop_profile crash (#6431)
parent
7adf245b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
python/sglang/srt/managers/tokenizer_manager.py
python/sglang/srt/managers/tokenizer_manager.py
+1
-5
No files found.
python/sglang/srt/managers/tokenizer_manager.py
View file @
b06215da
...
@@ -807,6 +807,7 @@ class TokenizerManager:
...
@@ -807,6 +807,7 @@ class TokenizerManager:
return
await
self
.
_execute_profile
(
req
)
return
await
self
.
_execute_profile
(
req
)
async
def
stop_profile
(
self
):
async
def
stop_profile
(
self
):
self
.
auto_create_handle_loop
()
req
=
ProfileReq
(
type
=
ProfileReqType
.
STOP_PROFILE
)
req
=
ProfileReq
(
type
=
ProfileReqType
.
STOP_PROFILE
)
return
await
self
.
_execute_profile
(
req
)
return
await
self
.
_execute_profile
(
req
)
...
@@ -816,11 +817,6 @@ class TokenizerManager:
...
@@ -816,11 +817,6 @@ class TokenizerManager:
raise
RuntimeError
(
result
.
message
)
raise
RuntimeError
(
result
.
message
)
return
result
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
):
async
def
start_expert_distribution_record
(
self
):
self
.
auto_create_handle_loop
()
self
.
auto_create_handle_loop
()
await
self
.
expert_distribution_communicator
(
ExpertDistributionReq
.
START_RECORD
)
await
self
.
expert_distribution_communicator
(
ExpertDistributionReq
.
START_RECORD
)
...
...
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