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
c61b9a1d
Unverified
Commit
c61b9a1d
authored
Oct 03, 2025
by
narutolhy
Committed by
GitHub
Oct 03, 2025
Browse files
fix self.enable_kv_cache_events (#11178)
parent
3c3d6255
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 @
c61b9a1d
...
...
@@ -299,7 +299,9 @@ class Scheduler(
self
.
enable_metrics_for_all_schedulers
=
(
server_args
.
enable_metrics_for_all_schedulers
)
self
.
enable_kv_cache_events
=
server_args
.
kv_events_config
and
tp_rank
==
0
self
.
enable_kv_cache_events
=
bool
(
server_args
.
kv_events_config
and
tp_rank
==
0
)
self
.
enable_trace
=
server_args
.
enable_trace
self
.
stream_interval
=
server_args
.
stream_interval
self
.
spec_algorithm
=
SpeculativeAlgorithm
.
from_string
(
...
...
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