How do I fix this error while running stable diffusion

Every time I try to use Stable Diffusion I get this error. I’m using NVIDIA 3050
OutOfMemoryError: CUDA out of memory. Tried to allocate 160.00 MB (GPU 0; 7.75 GiB total capacity; 6.81 GiB already allocated; 56.75 MiB free; 7.07 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

Please ask the maintainer. Maybe your GPU is too small or too old.

It tries to allocate more VRAM than available. Isn’t that obvious? Upgrade your graphics card or ask the maintainer, if there is a workaround.

1 Like

In the meantime, I believe that you have the option to use the CPU instead of the GPU. And, what is eating up the 6.81GB,?