CompVis / stable-diffusion

A latent text-to-image diffusion model
https://ommer-lab.com/research/latent-diffusion-models/
Other
66.54k stars 9.97k forks source link

I can't load some models #805

Open benyaminjj opened 8 months ago

benyaminjj commented 8 months ago

hi...Some models are more than 6 GB in size. When I try to load it, I get an error

torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 14.00 MiB (GPU 0; 8.00 GiB total capacity; 6.02 GiB already allocated; 4.75 MiB free; 6.48 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

VGA : 1070 GTX MSI Gaming