-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does it works with cpu too? #7
Comments
@andreae293 can you please provide more details?
where I change the default from README from RuntimeError: CUDA out of memory. Tried to allocate 4.00 GiB (GPU 0; 15.78 GiB total capacity; 10.52 GiB already allocated; 3.86 GiB free; 10.77 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 ie, still seems to use gpu instead of cpu |
Stable Diffusion requires CUDA to run the AI, as it is the language for communicating with the GPU and preforming the necessary calculations. Using with the CPU would require a complete rewrite or virtualization which requires more RAM and money than it would take to go and buy a supported CUDA GPU. Although if anyone who is reading this is willing, would it be possible to utilize a TPU from Kaggle or Google Collab instead? I feel like it might be more efficient than a GPU or CPU, as it is meant for processing Tensors directly. |
@timotheecour4 sorry for the late response @TheRealUnBot stable diffusion does not necessarily requires CUDA-supporting hardware to run |
Hi, has anyone ever tried to train with cpu?
i know it will be super slow but im tried for the fun of it
i currently disabled my gpu by setting this line in image_train_stable.py
torch.cuda.is_available = lambda : False
sorry for bothering with useless question but am i doing something wrong?
thanks
edit:
nevermind
i removed both .half() from the image_train_stable.py and deleted --use_fp16 from the training arguments
this way i was able to train on cpu
The text was updated successfully, but these errors were encountered: