From 2c7f8788f85811b1146b06790be8ab7f8b993ffb Mon Sep 17 00:00:00 2001 From: doctorpangloss <2229300+doctorpangloss@users.noreply.github.com> Date: Wed, 17 Dec 2025 09:38:21 -0800 Subject: [PATCH] fix torch 2.2 missing is_compiling member --- comfy/model_management.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/comfy/model_management.py b/comfy/model_management.py index 3ad4f46c4..d29429067 100644 --- a/comfy/model_management.py +++ b/comfy/model_management.py @@ -1202,7 +1202,7 @@ def get_offload_stream(device): if NUM_STREAMS == 0: return None - if torch.compiler.is_compiling(): + if hasattr(torch.compiler, "is_compiling") and torch.compiler.is_compiling(): # pylint: disable=no-member return None if device in STREAMS: