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
3589aa79
Unverified
Commit
3589aa79
authored
Jul 06, 2025
by
Stefan He
Committed by
GitHub
Jul 06, 2025
Browse files
[RL] Fix illegal memory for _import_static_state (#7733)
Co-authored-by:
nanjiangwill
<
willjiang2018@gmail.com
>
parent
e00715eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
python/sglang/srt/managers/scheduler.py
python/sglang/srt/managers/scheduler.py
+2
-0
No files found.
python/sglang/srt/managers/scheduler.py
View file @
3589aa79
...
@@ -2346,6 +2346,7 @@ class Scheduler(
...
@@ -2346,6 +2346,7 @@ class Scheduler(
self
.
stashed_model_static_state
=
_export_static_state
(
self
.
stashed_model_static_state
=
_export_static_state
(
self
.
tp_worker
.
worker
.
model_runner
.
model
self
.
tp_worker
.
worker
.
model_runner
.
model
)
)
torch
.
distributed
.
barrier
(
self
.
tp_cpu_group
)
self
.
memory_saver_adapter
.
pause
(
GPU_MEMORY_TYPE_WEIGHTS
)
self
.
memory_saver_adapter
.
pause
(
GPU_MEMORY_TYPE_WEIGHTS
)
return
ReleaseMemoryOccupationReqOutput
()
return
ReleaseMemoryOccupationReqOutput
()
...
@@ -2357,6 +2358,7 @@ class Scheduler(
...
@@ -2357,6 +2358,7 @@ class Scheduler(
if
GPU_MEMORY_TYPE_WEIGHTS
in
tags
:
if
GPU_MEMORY_TYPE_WEIGHTS
in
tags
:
self
.
memory_saver_adapter
.
resume
(
GPU_MEMORY_TYPE_WEIGHTS
)
self
.
memory_saver_adapter
.
resume
(
GPU_MEMORY_TYPE_WEIGHTS
)
torch
.
distributed
.
barrier
(
self
.
tp_cpu_group
)
_import_static_state
(
_import_static_state
(
self
.
tp_worker
.
worker
.
model_runner
.
model
,
self
.
tp_worker
.
worker
.
model_runner
.
model
,
self
.
stashed_model_static_state
,
self
.
stashed_model_static_state
,
...
...
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