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
c726d44c
"test/vscode:/vscode.git/clone" did not exist on "2a8339dbc853ef85616c43a716e921526531679e"
Unverified
Commit
c726d44c
authored
Oct 19, 2025
by
harrisonlimh
Committed by
GitHub
Oct 20, 2025
Browse files
Recapture cuda graph after model weight update to resolve IMA error (#11780)
parent
283c8ba0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
python/sglang/srt/model_executor/model_runner.py
python/sglang/srt/model_executor/model_runner.py
+4
-0
No files found.
python/sglang/srt/model_executor/model_runner.py
View file @
c726d44c
...
...
@@ -981,6 +981,10 @@ class ModelRunner:
self
.
server_args
.
load_format
=
load_format
self
.
load_config
=
load_config
# Recapture device graph after model weight update.
if
not
self
.
server_args
.
disable_cuda_graph
and
self
.
device
==
"cuda"
:
self
.
init_device_graphs
()
logger
.
info
(
"Update weights end."
)
return
True
,
"Succeeded to update model weights."
...
...
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