fix bug of VLLM_AVAILABLE not defined (#5497)

This commit is contained in:
liwenju0
2025-04-18 15:59:03 +08:00
committed by GitHub
parent bed05878f6
commit e465b08ddb

View File

@@ -40,6 +40,13 @@ from sglang.srt.layers.quantization.compressed_tensors.utils import (
should_ignore_layer,
)
try:
import vllm
VLLM_AVAILABLE = True
except ImportError:
VLLM_AVAILABLE = False
logger = logging.getLogger(__name__)
__all__ = ["CompressedTensorsLinearMethod"]