RuntimeError: Cannot create non-dynamic delegate: cached_patcher_init is not initialized.
- 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
Assessment
This issue has not been assessed yet.