Comments (7)
https://stackoverflow.com/questions/73747731/runtimeerror-cuda-out-of-memory-how-can-i-set-max-split-size-mb may be a useful start.
Currently you'll need to set the environment variable on instance startup but I'm pushing an update that will allow supervisord to pick up environment changes without a full restart that will help to debug this.
This being said, it should work fine on a 4090. PyTorch is due an update so that might also help. That will be ready today/tomorrow
from stable-diffusion-webui.
Thanks Rob.
from stable-diffusion-webui.
New builds have been pushed and docs updated for new tags. latest now points to PyTorch 2.2.0 CU11.8.0 but there are also builds for Cuda 12.
Hopefully one of these helps but let me know if not.
from stable-diffusion-webui.
Thanks Rob, it didn't help. I still got the same error message when trying to use an SDXL image resolution of 896x1152. I'm fine if I gen using a lower resolution like 512x786 but with the 24GB 4090 it should have enough memory. I tried to add the 'PYTORCH_CUDA_ALLOC_CONF=max_split_size_mb:512' to the envs and restart but no effect.
from stable-diffusion-webui.
Sorry this hasn't helped Rich, it's late here but I'll have time tomorrow to really dig into this to find out what's going wrong. I'll update here as soon as possible
from stable-diffusion-webui.
Quick update. I've been able to run this today on a 4090 (at vast) with the base sdxl model which was able to generate images at the resolution you specified.
I know that doesn't help much, but I don't believe it to be an issue with the installed software. If you can share your exact settings with models etc I can try again to force a failure.
from stable-diffusion-webui.
Hi Rob - Thanks. Appologies for not getting back to you. I changed the upscaler and have just been creating at a lower resolution for the moment. The next time I jump into the VM at Vast I'll try to replicated the issue and send you the specifics. Thanks for your help.
from stable-diffusion-webui.
Related Issues (20)
- Fails to start on Paperspace Gradient with GPU machine HOT 8
- Running Locally : Torch is not able to use GPU HOT 7
- Error Running Locally : Torch is not able to use GPU
- Can't customize embeddings and other things
- Automatic 1111 WEBUI API returns Error 401 Unauthorized HOT 1
- Can't load newly created textual embedding .pt file HOT 11
- Error running on vultr? Or what am i doing wrong?? HOT 2
- Cloud templates failing to start with latest images HOT 2
- WebUI Forge? HOT 1
- WebUI crashes on ROCm with default provisioning script (probably due to bitsandbytes) HOT 3
- [Question/Suggestion] Where to set default settings for A1111? HOT 2
- TensorRT support? HOT 1
- Can't run more than one container on different ports HOT 1
- How do I disable Syncthing and Jupyter Notebook on startup or remove them completely from build? HOT 2
- Protovision script - It doesn't download links containing spaces HOT 2
- [Feature suggestion] Textual embeddings download in provisioning script
- Vast pre-configured template fails to start HOT 3
- I have a small problem to download wildcards and config.json HOT 2
- Building image fails when cloning a1111 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stable-diffusion-webui.