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
f8728357
Unverified
Commit
f8728357
authored
May 18, 2025
by
fzyzcjy
Committed by
GitHub
May 17, 2025
Browse files
Add expert distribution APIs for engine (#6290)
parent
73187152
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
python/sglang/srt/entrypoints/engine.py
python/sglang/srt/entrypoints/engine.py
+18
-0
No files found.
python/sglang/srt/entrypoints/engine.py
View file @
f8728357
...
...
@@ -324,6 +324,24 @@ class Engine(EngineBase):
loop
=
asyncio
.
get_event_loop
()
loop
.
run_until_complete
(
self
.
tokenizer_manager
.
stop_profile
())
def
start_expert_distribution_record
(
self
):
loop
=
asyncio
.
get_event_loop
()
loop
.
run_until_complete
(
self
.
tokenizer_manager
.
start_expert_distribution_record
()
)
def
stop_expert_distribution_record
(
self
):
loop
=
asyncio
.
get_event_loop
()
loop
.
run_until_complete
(
self
.
tokenizer_manager
.
stop_expert_distribution_record
()
)
def
dump_expert_distribution_record
(
self
):
loop
=
asyncio
.
get_event_loop
()
loop
.
run_until_complete
(
self
.
tokenizer_manager
.
dump_expert_distribution_record
()
)
def
get_server_info
(
self
):
loop
=
asyncio
.
get_event_loop
()
internal_states
=
loop
.
run_until_complete
(
...
...
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