Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion comfy_extras/nodes_torch_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
from comfy_api.latest import ComfyExtension, io
from comfy_api.torch_helpers import set_torch_compile_wrapper

def skip_torch_compile_dict(guard_entries):
return [("transformer_options" not in entry.name) for entry in guard_entries]

class TorchCompileModel(io.ComfyNode):
@classmethod
Expand All @@ -23,7 +25,7 @@ def define_schema(cls) -> io.Schema:
@classmethod
def execute(cls, model, backend) -> io.NodeOutput:
m = model.clone()
set_torch_compile_wrapper(model=m, backend=backend)
set_torch_compile_wrapper(model=m, backend=backend, options={"guard_filter_fn": skip_torch_compile_dict})
return io.NodeOutput(m)


Expand Down
2 changes: 1 addition & 1 deletion manager_requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
comfyui_manager==4.0.3b4
comfyui_manager==4.0.3b5
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
comfyui-frontend-package==1.34.8
comfyui-workflow-templates==0.7.54
comfyui-workflow-templates==0.7.59
comfyui-embedded-docs==0.3.1
torch
torchsde
Expand Down
Loading