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
00fbd8a4
Unverified
Commit
00fbd8a4
authored
Jun 25, 2025
by
Stefan He
Committed by
GitHub
Jun 25, 2025
Browse files
Fix typo of flash_cache (#7513)
parent
802815e4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
python/sglang/srt/managers/scheduler.py
python/sglang/srt/managers/scheduler.py
+6
-6
No files found.
python/sglang/srt/managers/scheduler.py
View file @
00fbd8a4
...
@@ -2236,8 +2236,8 @@ class Scheduler(
...
@@ -2236,8 +2236,8 @@ class Scheduler(
"""In-place update of the weights from disk."""
"""In-place update of the weights from disk."""
success
,
message
=
self
.
tp_worker
.
update_weights_from_disk
(
recv_req
)
success
,
message
=
self
.
tp_worker
.
update_weights_from_disk
(
recv_req
)
if
success
:
if
success
:
fl
a
sh_cache_success
=
self
.
flush_cache
()
fl
u
sh_cache_success
=
self
.
flush_cache
()
assert
fl
a
sh_cache_success
,
"Cache flush failed after updating weights"
assert
fl
u
sh_cache_success
,
"Cache flush failed after updating weights"
else
:
else
:
logger
.
error
(
message
)
logger
.
error
(
message
)
return
UpdateWeightFromDiskReqOutput
(
success
,
message
,
0
)
return
UpdateWeightFromDiskReqOutput
(
success
,
message
,
0
)
...
@@ -2254,8 +2254,8 @@ class Scheduler(
...
@@ -2254,8 +2254,8 @@ class Scheduler(
"""Update the online model parameter."""
"""Update the online model parameter."""
success
,
message
=
self
.
tp_worker
.
update_weights_from_distributed
(
recv_req
)
success
,
message
=
self
.
tp_worker
.
update_weights_from_distributed
(
recv_req
)
if
success
:
if
success
:
fl
a
sh_cache_success
=
self
.
flush_cache
()
fl
u
sh_cache_success
=
self
.
flush_cache
()
assert
fl
a
sh_cache_success
,
"Cache flush failed after updating weights"
assert
fl
u
sh_cache_success
,
"Cache flush failed after updating weights"
else
:
else
:
logger
.
error
(
message
)
logger
.
error
(
message
)
return
UpdateWeightsFromDistributedReqOutput
(
success
,
message
)
return
UpdateWeightsFromDistributedReqOutput
(
success
,
message
)
...
@@ -2266,8 +2266,8 @@ class Scheduler(
...
@@ -2266,8 +2266,8 @@ class Scheduler(
# TODO extract common code b/t update_weights_from_distributed and update_weights_from_tensor later
# TODO extract common code b/t update_weights_from_distributed and update_weights_from_tensor later
if
success
:
if
success
:
if
recv_req
.
flush_cache
:
if
recv_req
.
flush_cache
:
fl
a
sh_cache_success
=
self
.
flush_cache
()
fl
u
sh_cache_success
=
self
.
flush_cache
()
assert
fl
a
sh_cache_success
,
"Cache flush failed after updating weights"
assert
fl
u
sh_cache_success
,
"Cache flush failed after updating weights"
else
:
else
:
logger
.
error
(
message
)
logger
.
error
(
message
)
barrier
(
group
=
self
.
tp_cpu_group
)
barrier
(
group
=
self
.
tp_cpu_group
)
...
...
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