i was using flux and this happen what shod i do
- 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

### 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
Assessment
This issue has not been assessed yet.