OutOfMemoryError: CUDA out of memory. Tried to allocate 3.96 GiB. GPU 0 has a total capacity of 44.32 GiB of which 2.01 GiB is free. Including non-PyTorch memory, this process has 42.29 GiB memory in use. Of the allocated memory 36.85 GiB is allocated by PyTorch, and 4.80 GiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)
From your logs it looks like you tried to run inference with the pipeline? Can you share a full code example of exactly what you are running that is causing this error?
Describe the bug
OutOfMemoryError: CUDA out of memory. Tried to allocate 3.96 GiB. GPU 0 has a total capacity of 44.32 GiB of which 2.01 GiB is free. Including non-PyTorch memory, this process has 42.29 GiB memory in use. Of the allocated memory 36.85 GiB is allocated by PyTorch, and 4.80 GiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management (https://pytorch.org/docs/stable/notes/cuda.html#environment-variables)
Reproduction
Logs
System Info
pip install git+https://github.com/huggingface/diffusers.git
Who can help?
@AndranikSargsyan @haikmanukyan