Comfy-Org / Comfy-Org/ComfyUI

RuntimeError: Cannot create non-dynamic delegate: cached_patcher_init is not initialized.

Open
#13,599 9 comments 0 reactions 1 assignee Claimed by @rattus128 View on GitHub
Custom Nodes Bug Potential Bug
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

### Custom Node Testing

- [x] I have tried disabling custom nodes and the issue persists (see [how to disable custom nodes](https://docs.comfy.org/troubleshooting/custom-node-issues#step-1%3A-test-with-all-custom-nodes-disabled) if you need help)

### Expected Behavior

Compile model

### Actual Behavior

File "/.../ComfyUI/comfy/model_patcher.py", line 327, in clone
raise RuntimeError("Cannot create non-dynamic delegate: cached_patcher_init is not initialized.")
RuntimeError: Cannot create non-dynamic delegate: cached_patcher_init is not initialized.

### Steps to Reproduce

Add TorchCompile node to workflow.

### Debug Logs

```powershell
File "/.../ComfyUI/comfy/model_patcher.py", line 327, in clone
raise RuntimeError("Cannot create non-dynamic delegate: cached_patcher_init is not initialized.")
RuntimeError: Cannot create non-dynamic delegate: cached_patcher_init is not initialized.
```

### Other

I'm getting this error when using the TorchCompile node. I've tried the native node and the Kijai node. Changing the parameters doesn't solve the problem. I'm using backend version 0.18.2.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.