Comfy-Org / Comfy-Org/ComfyUI

i was using flux and this happen what shod i do

Open
#7,164 1 comment 0 reactions 0 assignees View on GitHub
Potential Bug
Dominant language
Python
Stars
133k
Forks
15.7k
Avg merge
1d 7h
Merged PRs (30d)
158

Description

### Expected Behavior

to work

### Actual Behavior

torch.OutOfMemoryError: HIP out of memory. Tried to allocate 2.11 GiB. GPU 0 has a total capacity of 11.98 GiB of which 1.48 GiB is free. Of the allocated memory 9.97 GiB is allocated by PyTorch, and 176.02 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_HIP_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)

Got an OOM, unloading all loaded models.
Prompt executed in 15.86 seconds

### Steps to Reproduce

![Image](https://github.com/user-attachments/assets/56ebe7aa-face-40e1-96e2-a417a6f49aee)

### Debug Logs

```powershell
torch.OutOfMemoryError: HIP out of memory. Tried to allocate 2.11 GiB. GPU 0 has a total capacity of 11.98 GiB of which 1.48 GiB is free. Of the allocated memory 9.97 GiB is allocated by PyTorch, and 176.02 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_HIP_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)

Got an OOM, unloading all loaded models.
Prompt executed in 15.86 seconds
```

### 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.