From 521ec8f1037f0e9bd4fe6c92d0d7fe5f1840903f Mon Sep 17 00:00:00 2001 From: Apophis Date: Wed, 20 May 2026 06:08:48 +0800 Subject: [PATCH] chore: filter ck backend info --- .github/workflows/test-launch.yml | 2 +- comfy/quant_ops.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-launch.yml b/.github/workflows/test-launch.yml index 581c0474b..32fe60297 100644 --- a/.github/workflows/test-launch.yml +++ b/.github/workflows/test-launch.yml @@ -32,7 +32,7 @@ jobs: working-directory: ComfyUI - name: Check for unhandled exceptions in server log run: | - grep -v "Found comfy_kitchen backend triton: {'available': False, 'disabled': True, 'unavailable_reason': \"ImportError: No module named 'triton'\", 'capabilities': \[\]}" console_output.log | grep -v "Found comfy_kitchen backend triton: {'available': False, 'disabled': False, 'unavailable_reason': \"ImportError: No module named 'triton'\", 'capabilities': \[\]}" > console_output_filtered.log + grep -v "Found comfy_kitchen backend triton: {'available': False, 'unavailable_reason': \"ImportError: No module named 'triton'\"}" console_output.log > console_output_filtered.log cat console_output_filtered.log if grep -qE "Exception|Error" console_output_filtered.log; then echo "Unhandled exception/error found in server log." diff --git a/comfy/quant_ops.py b/comfy/quant_ops.py index b90bcfd25..9aadc31a6 100644 --- a/comfy/quant_ops.py +++ b/comfy/quant_ops.py @@ -33,7 +33,8 @@ try: else: ck.registry.disable("triton") for k, v in ck.list_backends().items(): - logging.info(f"Found comfy_kitchen backend {k}: {v}") + filtered = {kk: vv for kk, vv in v.items() if (kk in ('disabled', 'capabilities') if v['available'] else kk in ('available', 'unavailable_reason'))} + logging.info(f"Found comfy_kitchen backend {k}: {filtered}") except ImportError as e: logging.error(f"Failed to import comfy_kitchen, Error: {e}, fp8 and fp4 support will not be available.") _CK_AVAILABLE = False