mirror of
https://git.datalinker.icu/vllm-project/vllm.git
synced 2026-04-29 20:47:12 +08:00
12 lines
285 B
Python
12 lines
285 B
Python
from importlib.util import find_spec
|
|
|
|
from vllm.logger import init_logger
|
|
|
|
logger = init_logger(__name__)
|
|
|
|
HAS_TRITON = find_spec("triton") is not None
|
|
|
|
if not HAS_TRITON:
|
|
logger.info("Triton not installed; certain GPU-related functions"
|
|
" will not be available.")
|