Hello, as stated in the title, I used to be able to generate a batch of 4 images, but when I try to do this now, I get the following error:
CUDA out of memory. Tried to allocate 4.50 GiB. GPU 0 has a total capacity of 7.78 GiB of which 780.00 MiB is free. Including non-PyTorch memory, this process has 6.57 GiB memory in use. Of the allocated memory 6.37 GiB is allocated by PyTorch, and 56.09 MiB is reserved by PyTorch but unallocated. If reserved but unallocated memory is large try setting PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True to avoid fragmentation. See documentation for Memory Management
This started happening right after I updated SD.Next to the most recent version. I don’t know which version I was using beforehand, since I don’t update it frequently. I assume it installed it sometime around April this year.
I’m using a NVIDIA Geforce RTX 2070.
Does anybody have any idea what I could try?
There have been some changes in general to the way things cache. I’m not familiar with the details and only use ComfyUI at this point. I have been hacking around within this area but truly hacking around in the original sense of the word and not documenting or doing anything with the intention of sharing with others.
What I’m thinking about is the code that tries to prevent rerunning the same things over and over, like when different models or parts of models get loaded. Around a couple of months ago I had an issues with some of my hacked code swapping between LLM and diffusion models on the fly, but I wound up using some ComfyUI nodes for LLMs instead.
You can use your .git directory to see your last commit. Your git history is like an independent archive that can be used for stuff like this. You don’t have to learn how to revert in conjunction with all the other code. You can just use the command line and git to view where you were at before. Then go on GitHub and look at the releases for the project and git-clone a release from around this timespan. Place that somewhere new and copy or link your old configuration and user settings.
Thanks, I’ll try that.