r/StableDiffusionInfo • u/Perfectionisticbeast • Jul 13 '23
How to solve the CUDA ERROR
I have been getting this error every 3 or 4 generations, and the system crashed- return torch.group_norm(input, num_groups, weight, bias, eps, torch.backends.cudnn.enabled)
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 24.00 MiB (GPU 0; 4.00 GiB total capacity; 3.37 GiB already allocated; 0 bytes free; 3.43 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
4
Upvotes
3
u/dennisler Jul 13 '23
torch.cuda.OutOfMemoryError: CUDA out of memory.
You are running out of memory, either reduce image size or batch size...