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
4da55336
Unverified
Commit
4da55336
authored
Sep 14, 2025
by
fzyzcjy
Committed by
GitHub
Sep 14, 2025
Browse files
Support profile args in Engine API (#6539)
parent
ac964d2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/sglang/srt/entrypoints/engine.py
python/sglang/srt/entrypoints/engine.py
+2
-2
No files found.
python/sglang/srt/entrypoints/engine.py
View file @
4da55336
...
@@ -364,9 +364,9 @@ class Engine(EngineBase):
...
@@ -364,9 +364,9 @@ class Engine(EngineBase):
loop
=
asyncio
.
get_event_loop
()
loop
=
asyncio
.
get_event_loop
()
return
loop
.
run_until_complete
(
self
.
tokenizer_manager
.
flush_cache
())
return
loop
.
run_until_complete
(
self
.
tokenizer_manager
.
flush_cache
())
def
start_profile
(
self
):
def
start_profile
(
self
,
**
kwargs
):
loop
=
asyncio
.
get_event_loop
()
loop
=
asyncio
.
get_event_loop
()
loop
.
run_until_complete
(
self
.
tokenizer_manager
.
start_profile
())
loop
.
run_until_complete
(
self
.
tokenizer_manager
.
start_profile
(
**
kwargs
))
def
stop_profile
(
self
):
def
stop_profile
(
self
):
loop
=
asyncio
.
get_event_loop
()
loop
=
asyncio
.
get_event_loop
()
...
...
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