Comfy-Org / Comfy-Org/ComfyUI

OOM when torch complie added into wf

Open
#10,341 14 comments 1 reaction 0 assignees View on GitHub
Potential Bug
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

### Custom Node Testing

- [ ] 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

Fix the issue when torch complie added into Wan2.2 native workflow

### Actual Behavior

Image

Image

Image

### Steps to Reproduce

After updating to version 0.3.65, the native Comfy workflow of wan2.2 will encounter OOM (Out of Memory) whenever torch compile is added. This issue occurs both with the torch compile in kjnodes and the native torch compile of ComfyUI

### Debug Logs

```powershell
oom
```

### Other

_No response_

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.