importing.py 246 B

123456789
  1. from importlib.util import find_spec
  2. from loguru import logger
  3. HAS_TRITON = find_spec("triton") is not None
  4. if not HAS_TRITON:
  5. logger.info("Triton not installed; certain GPU-related functions"
  6. " will be not be available.")