Does virtual memory keep increasing when switching models? #2281
-
Each time I switch models, my virtual memory usage increases, which continuously consumes C drive space. Eventually, this causes the program to stop running and even led to a blue screen once. First, I use Model A to generate an image: Then, I switch to Model B to generate another image: Next, I switch back to Model A and generate an image: Finally, I switch to Model B once more to generate an image: |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 3 replies
-
Isn't there a Setting for number of cached models to keep? Set it to 0. |
Beta Was this translation helpful? Give feedback.
-
The reason I'm bringing up this issue is that very few people have reported encountering it, so I'm wondering if this is a common situation or just an uncommon one. |
Beta Was this translation helpful? Give feedback.
-
Model type? Any extensions is on? |
Beta Was this translation helpful? Give feedback.
-
This is the console output when testing the xl model in the above reply:
|
Beta Was this translation helpful? Give feedback.
-
Please take a look at #2315. |
Beta Was this translation helpful? Give feedback.
Please take a look at #2315.
It's a simple change, only 3 (+1 comment) lines added to
backend/memory_management.py
. Needs testing on more setups than just my old laptop.