Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
vllm_cscc
Commits
e7296b08
Unverified
Commit
e7296b08
authored
Dec 05, 2025
by
Angela Yi
Committed by
GitHub
Dec 05, 2025
Browse files
[bugfix] Pass globals to aot_compiled function (#29428)
Signed-off-by:
angelayi
<
yiangela7@gmail.com
>
parent
da7bc54e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
vllm/compilation/decorators.py
vllm/compilation/decorators.py
+3
-1
No files found.
vllm/compilation/decorators.py
View file @
e7296b08
...
@@ -409,7 +409,9 @@ def _support_torch_compile(
...
@@ -409,7 +409,9 @@ def _support_torch_compile(
open
(
aot_compilation_path
,
"rb"
)
as
f
,
open
(
aot_compilation_path
,
"rb"
)
as
f
,
):
):
start_monitoring_torch_compile
(
self
.
vllm_config
)
start_monitoring_torch_compile
(
self
.
vllm_config
)
loaded_fn
=
torch
.
compiler
.
load_compiled_function
(
f
)
loaded_fn
=
torch
.
compiler
.
load_compiled_function
(
f
,
f_globals
=
self
.
forward
.
__globals__
)
_verify_source_unchanged
(
loaded_fn
.
source_info
(),
self
.
vllm_config
)
_verify_source_unchanged
(
loaded_fn
.
source_info
(),
self
.
vllm_config
)
loaded_fn
.
disable_guard_check
()
loaded_fn
.
disable_guard_check
()
self
.
aot_compiled_fn
=
loaded_fn
self
.
aot_compiled_fn
=
loaded_fn
...
...
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