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
1c304aa9
Unverified
Commit
1c304aa9
authored
Oct 23, 2025
by
Nicolas Castet
Committed by
GitHub
Oct 23, 2025
Browse files
Log iteration # for prefill and decode (#9366)
parent
770529a7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
python/sglang/srt/managers/scheduler_metrics_mixin.py
python/sglang/srt/managers/scheduler_metrics_mixin.py
+2
-2
No files found.
python/sglang/srt/managers/scheduler_metrics_mixin.py
View file @
1c304aa9
...
...
@@ -123,7 +123,7 @@ class SchedulerMetricsMixin:
token_usage_msg
=
f
"token usage:
{
token_usage
:.
2
f
}
, "
f
=
(
f
"Prefill batch
.
"
f
"Prefill batch
[
{
self
.
forward_ct
+
1
}
],
"
f
"#new-seq:
{
len
(
can_run_list
)
}
, "
f
"#new-token:
{
adder
.
log_input_tokens
}
, "
f
"#cached-token:
{
adder
.
log_hit_tokens
}
, "
...
...
@@ -246,7 +246,7 @@ class SchedulerMetricsMixin:
gap_latency
/
self
.
server_args
.
decode_log_interval
)
msg
=
f
"Decode batch
.
#running-req:
{
num_running_reqs
}
,
{
token_usage_msg
}
"
msg
=
f
"Decode batch
[
{
self
.
forward_ct
}
],
#running-req:
{
num_running_reqs
}
,
{
token_usage_msg
}
"
if
self
.
spec_algorithm
.
is_none
():
spec_accept_length
=
0
...
...
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