Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

Disable comfy kitchen cuda if pytorch cuda less than 13 (#11681)

comfyanonymousedee33f55ea2
diff --git a/comfy/quant_ops.py b/comfy/quant_ops.py
index cd737726f..5a17bc6f5 100644
--- a/comfy/quant_ops.py
+++ b/comfy/quant_ops.py
@@ -13,6 +13,13 @@ try:
get_layout_class,
)
_CK_AVAILABLE = True
+ if torch.version.cuda is None:
+ ck.registry.disable("cuda")
+ else:
+ cuda_version = tuple(map(int, str(torch.version.cuda).split('.')))
+ if cuda_version < (13,):
+ ck.registry.disable("cuda")
+
ck.registry.disable("triton")
for k, v in ck.list_backends().items():
logging.info(f"Found comfy_kitchen backend {k}: {v}")