getting this error torch.cuda.OutOfMemoryError: CUDA out of memory while running diffusers/examples/dreambooth/train_dreambooth.py #6932
Unanswered
akashlinux10may
asked this question in
Q&A
Replies: 2 comments 20 replies
|
can you try adding the |
19 replies
|
sorry, I'm actually working right now and try to help when I have time, can't spend that much time on this. You're having conflicts between the installations of torch and torchvision, try doing a if that doesn't work, then something changed in colab between when I did it and now, sadly I can't use colab anymore since I used it for another answer and it doesn't let me run more sessions. When I can connect to it to again I can help more if no else hasn't done it. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment



Uh oh!
There was an error while loading. Please reload this page.
trying following command and getting the error
!accelerate launch diffusers/examples/dreambooth/train_dreambooth.py

--pretrained_model_name_or_path=CompVis/stable-diffusion-v1-4
--instance_data_dir=diffusers/Dog
--output_dir=diffusers/Dog_SD
--instance_prompt="a photo of dog
"
--resolution=512
--train_batch_size=1
--gradient_accumulation_steps=1
--learning_rate=5e-6
--lr_scheduler="constant"
--lr_warmup_steps=0
--max_train_steps=400
--push_to_hub
return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking)
torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 114.00 MiB (GPU 0; 9.50 GiB total capacity; 1.13 GiB already allocated; 24.94 MiB free; 1.17 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
All reactions