mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2025-12-24 20:05:01 +08:00
use base version for version comparison (#19587)
Signed-off-by: Boyuan Feng <boyuan@meta.com>
This commit is contained in:
parent
cefdb9962d
commit
ce688ad46e
@ -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.0a"):
|
||||
logger.debug("Using InductorStandaloneAdaptor")
|
||||
return InductorStandaloneAdaptor()
|
||||
else:
|
||||
|
||||
@ -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.0a"):
|
||||
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.0a"):
|
||||
os.environ["VLLM_DISABLE_COMPILE_CACHE"] = "1"
|
||||
logger.info("Using TorchAO: Setting VLLM_DISABLE_COMPILE_CACHE=1")
|
||||
"""
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user