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
70f2c2a7
Unverified
Commit
70f2c2a7
authored
Mar 28, 2025
by
Jee Jee Li
Committed by
GitHub
Mar 28, 2025
Browse files
[Bugfix] Fix 'InductorAdaptor object has no attribute 'cache_dir' (#15674)
Signed-off-by:
Jee Jee Li
<
pandaleefree@gmail.com
>
parent
280d0741
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
vllm/compilation/compiler_interface.py
vllm/compilation/compiler_interface.py
+1
-1
No files found.
vllm/compilation/compiler_interface.py
View file @
70f2c2a7
...
...
@@ -144,6 +144,7 @@ class InductorAdaptor(CompilerInterface):
return
hash_str
def
initialize_cache
(
self
,
cache_dir
:
str
,
disable_cache
:
bool
=
False
):
self
.
cache_dir
=
cache_dir
if
disable_cache
:
return
# redirect the cache directory to a sub-directory
...
...
@@ -156,7 +157,6 @@ class InductorAdaptor(CompilerInterface):
triton_cache
=
os
.
path
.
join
(
cache_dir
,
"triton_cache"
)
os
.
makedirs
(
triton_cache
,
exist_ok
=
True
)
os
.
environ
[
"TRITON_CACHE_DIR"
]
=
triton_cache
self
.
cache_dir
=
cache_dir
def
compile
(
self
,
...
...
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