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
9c6a0656
Unverified
Commit
9c6a0656
authored
Jun 19, 2025
by
fzyzcjy
Committed by
GitHub
Jun 18, 2025
Browse files
Fix profiler error when there are idle passes (#7003)
parent
2ae809c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
python/sglang/srt/managers/scheduler.py
python/sglang/srt/managers/scheduler.py
+3
-1
No files found.
python/sglang/srt/managers/scheduler.py
View file @
9c6a0656
...
...
@@ -2472,8 +2472,10 @@ class Scheduler(
if
self
.
profiler_decode_ct
>
self
.
profiler_target_decode_ct
:
if
self
.
profile_in_progress
:
self
.
stop_profile
(
stage
=
ForwardMode
.
DECODE
)
elif
batch
.
forward_mode
.
is_idle
():
pass
else
:
raise
RuntimeError
(
"unsupported profile stage"
)
raise
RuntimeError
(
f
"unsupported profile stage
:
{
batch
.
forward_mode
}
"
)
else
:
# Check profiler
if
(
...
...
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