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
c77f3e12
Unverified
Commit
c77f3e12
authored
Feb 24, 2026
by
Zhengxu Chen
Committed by
GitHub
Feb 24, 2026
Browse files
[compile] Save aot compile artifacts atomically. (#35117)
Signed-off-by:
zhxchen17
<
zhxchen17@fb.com
>
parent
012dee92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
vllm/compilation/decorators.py
vllm/compilation/decorators.py
+5
-1
No files found.
vllm/compilation/decorators.py
View file @
c77f3e12
...
@@ -575,7 +575,11 @@ def _support_torch_compile(
...
@@ -575,7 +575,11 @@ def _support_torch_compile(
logger
.
info
(
"saving AOT compiled function to %s"
,
self
.
_aot_compilation_path
)
logger
.
info
(
"saving AOT compiled function to %s"
,
self
.
_aot_compilation_path
)
try
:
try
:
os
.
makedirs
(
self
.
_aot_cache_dir
,
exist_ok
=
True
)
os
.
makedirs
(
self
.
_aot_cache_dir
,
exist_ok
=
True
)
self
.
aot_compiled_fn
.
save_compiled_function
(
self
.
_aot_compilation_path
)
# File saving should be atomic, so we will save to a temporary location
# first. Should be upstreamed to PyTorch 2.12 as well.
tmp_file
=
f
"
{
self
.
_aot_compilation_path
}
.
{
os
.
getpid
()
}
.tmp"
self
.
aot_compiled_fn
.
save_compiled_function
(
tmp_file
)
os
.
replace
(
tmp_file
,
self
.
_aot_compilation_path
)
logger
.
info
(
"saved AOT compiled function to %s"
,
self
.
_aot_compilation_path
)
logger
.
info
(
"saved AOT compiled function to %s"
,
self
.
_aot_compilation_path
)
except
Exception
as
e
:
except
Exception
as
e
:
logger
.
warning
(
logger
.
warning
(
...
...
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