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
e4a5d8c6
Unverified
Commit
e4a5d8c6
authored
Feb 20, 2026
by
Zhengxu Chen
Committed by
GitHub
Feb 20, 2026
Browse files
[compile] Move torch_aot_compile directory under torch_compile_cache (#34831)
Signed-off-by:
zhxchen17
<
zhxchen17@fb.com
>
parent
a6d0299c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
vllm/compilation/decorators.py
vllm/compilation/decorators.py
+5
-4
No files found.
vllm/compilation/decorators.py
View file @
e4a5d8c6
...
@@ -407,10 +407,10 @@ def _support_torch_compile(
...
@@ -407,10 +407,10 @@ def _support_torch_compile(
if
envs
.
VLLM_USE_AOT_COMPILE
:
if
envs
.
VLLM_USE_AOT_COMPILE
:
"""
"""
When using torch.compile in AOT mode, we store the cache artifacts
When using torch.compile in AOT mode, we store the cache artifacts
under VLLM_CACHE_ROOT/torch_
aot_
compile
/{hash}/rank_i_j. The
{hash}
under VLLM_CACHE_ROOT/torch_compile
_cache/torch_aot_compile/
{hash}
contains all of the factors except for the source files
being
The {hash}
contains all of the factors except for the source files
traced through, because we don't actually know which source
files
being
traced through, because we don't actually know which source
to check at this point (before dynamo runs).
files
to check at this point (before dynamo runs).
On loading we will actually look at the source files being traced
On loading we will actually look at the source files being traced
through. If any source file have changed (compared with the
through. If any source file have changed (compared with the
serialized backend artifacts), then we need to generate a new AOT
serialized backend artifacts), then we need to generate a new AOT
...
@@ -424,6 +424,7 @@ def _support_torch_compile(
...
@@ -424,6 +424,7 @@ def _support_torch_compile(
hash_key
=
hashlib
.
sha256
(
str
(
factors
).
encode
()).
hexdigest
()
hash_key
=
hashlib
.
sha256
(
str
(
factors
).
encode
()).
hexdigest
()
cache_dir
=
os
.
path
.
join
(
cache_dir
=
os
.
path
.
join
(
envs
.
VLLM_CACHE_ROOT
,
envs
.
VLLM_CACHE_ROOT
,
"torch_compile_cache"
,
"torch_aot_compile"
,
"torch_aot_compile"
,
hash_key
,
hash_key
,
)
)
...
...
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