Skip to content

Commit ce688ad

Browse files
authored
use base version for version comparison (#19587)
Signed-off-by: Boyuan Feng <boyuan@meta.com>
1 parent cefdb99 commit ce688ad

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

vllm/compilation/backends.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
def make_compiler(compilation_config: CompilationConfig) -> CompilerInterface:
3232
if compilation_config.use_inductor:
3333
if envs.VLLM_USE_STANDALONE_COMPILE and is_torch_equal_or_newer(
34-
"2.8.0"):
34+
"2.8.0a"):
3535
logger.debug("Using InductorStandaloneAdaptor")
3636
return InductorStandaloneAdaptor()
3737
else:

vllm/model_executor/layers/quantization/torchao.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ def __init__(self,
4444
"""
4545
# TorchAO quantization relies on tensor subclasses. In order,
4646
# to enable proper caching this needs standalone compile
47-
if is_torch_equal_or_newer("2.8.0"):
47+
if is_torch_equal_or_newer("2.8.0a"):
4848
os.environ["VLLM_TEST_STANDALONE_COMPILE"] = "1"
4949
logger.info(
5050
"Using TorchAO: Setting VLLM_TEST_STANDALONE_COMPILE=1")
5151
5252
# TODO: remove after the torch dependency is updated to 2.8
5353
if is_torch_equal_or_newer(
54-
"2.7.0") and not is_torch_equal_or_newer("2.8.0"):
54+
"2.7.0") and not is_torch_equal_or_newer("2.8.0a"):
5555
os.environ["VLLM_DISABLE_COMPILE_CACHE"] = "1"
5656
logger.info("Using TorchAO: Setting VLLM_DISABLE_COMPILE_CACHE=1")
5757
"""

0 commit comments

Comments
 (0)