RuntimeError: CUDA out of memory.

#1
by My12123 - opened

RuntimeError: CUDA out of memory. Tried to allocate 58.00 MiB (GPU 0; 8.00 GiB total capacity; 7.14 GiB already allocated; 0 bytes free; 7.26 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF

lllyasviel changed discussion status to closed

have the same any fix

I got this error initially

ValueError: invalid literal for int() with base 10: 'hf_**********************************' "

so I asked to chatGPT , ChatGPT told me to update

64 - MAX_IMAGES = int(os.getenv('MAX_IMAGES', '3'))

to

export MAX_IMAGES=3

So i change but now am getting this error

===== Application Startup at 2024-04-21 23:23:04 =====

File "/home/user/app/app.py", line 65
export MAX_IMAGES=3
^^^^^^^^^^
SyntaxError: invalid syntax"

Is Anyone Knows how to resolve this issue

Sign up or log in to comment