run triton import with version check when enable_triton_backend launch arg is used to check if it actually works.

This commit is contained in:
silveroxides 2026-03-05 11:44:52 +01:00
parent 7506c7baed
commit 2329f8c925

View File

@ -26,7 +26,7 @@ try:
if args.enable_triton_backend:
try:
import triton
logging.info(f"Found triton package installed. Enabling comfy-kitchen triton backend.")
logging.info("Found triton %s. Enabling comfy-kitchen triton backend.", triton.__version__)
except ImportError as e:
logging.error(f"Failed to import triton, Error: {e}, the comfy-kitchen triton backend will not be available.")
ck.registry.disable("triton")