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
ce688ad4
Unverified
Commit
ce688ad4
authored
Jun 13, 2025
by
Boyuan Feng
Committed by
GitHub
Jun 13, 2025
Browse files
use base version for version comparison (#19587)
Signed-off-by:
Boyuan Feng
<
boyuan@meta.com
>
parent
cefdb996
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
vllm/compilation/backends.py
vllm/compilation/backends.py
+1
-1
vllm/model_executor/layers/quantization/torchao.py
vllm/model_executor/layers/quantization/torchao.py
+2
-2
No files found.
vllm/compilation/backends.py
View file @
ce688ad4
...
...
@@ -31,7 +31,7 @@ logger = init_logger(__name__)
def
make_compiler
(
compilation_config
:
CompilationConfig
)
->
CompilerInterface
:
if
compilation_config
.
use_inductor
:
if
envs
.
VLLM_USE_STANDALONE_COMPILE
and
is_torch_equal_or_newer
(
"2.8.0"
):
"2.8.0
a
"
):
logger
.
debug
(
"Using InductorStandaloneAdaptor"
)
return
InductorStandaloneAdaptor
()
else
:
...
...
vllm/model_executor/layers/quantization/torchao.py
View file @
ce688ad4
...
...
@@ -44,14 +44,14 @@ class TorchAOConfig(QuantizationConfig):
"""
# TorchAO quantization relies on tensor subclasses. In order,
# to enable proper caching this needs standalone compile
if is_torch_equal_or_newer("2.8.0"):
if is_torch_equal_or_newer("2.8.0
a
"):
os.environ["VLLM_TEST_STANDALONE_COMPILE"] = "1"
logger.info(
"Using TorchAO: Setting VLLM_TEST_STANDALONE_COMPILE=1")
# TODO: remove after the torch dependency is updated to 2.8
if is_torch_equal_or_newer(
"2.7.0") and not is_torch_equal_or_newer("2.8.0"):
"2.7.0") and not is_torch_equal_or_newer("2.8.0
a
"):
os.environ["VLLM_DISABLE_COMPILE_CACHE"] = "1"
logger.info("Using TorchAO: Setting VLLM_DISABLE_COMPILE_CACHE=1")
"""
...
...
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