-
Notifications
You must be signed in to change notification settings - Fork 826
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
Models caching does not work (sd_checkpoints_limit) #2176
Comments
In automatic1111 it worked. Why was it deleted here, but the fields were left? |
i think one of the updates broke model caching, it used to be perfect before but now sometimes after i dont generate for a couple mins or run generate after running hires fix it tries to load the whole model from disk again, pretty randomly aswell, idk. |
I suspect switching models is causing RAM usage to keep increasing, probably because these settings aren't taking effect. |
I also noticed that if you send |
The way override_settings works, is that if a provided settings value is identical to the current stored value, then it is ignored. With So what is happening is you are passing the I found a way to resolve this... will be pushing a PR soon. |
@psydok please check out this PR here which resolves the issue you mentioned in your comment here (Not your "main issue"). Works for me - if you get a chance to try it out, please leave a comment there. Thank you. |
@altoiddealer Okay, I'll look at PR and test it tomorrow. Thank you for fix! UPD: It's okay! Thanks! But issue will not close. I would like to restore work of these parameters in Forge: |
I found commit where fatal changes were made. But the name of the commit does not give any information about why it was done. |
That's a very old commit, before I was using Forge. Possibly even before Forge was public? Probably caused (or had high potential to cause) issues after backend reworks by complicating memory management, but that's just speculation. Since then the backend is reworked again, with the Flux update. |
@DenOfEquity Thanks for explanation! Another question has formed in my mind. I'm trying to reconstruct logic, but things have changed lot in forge and there are lot of wrapper classes. what class should be saved and can it be moved to cpu and back somehow gracefully? |
I noticed that if you add |
I only know what I know as a result of poking around, so my understanding could be completely wrong. |
Tested setting
sd_checkpoints_keep_in_cpu: false, sd_checkpoints_limit: 3, sd_checkpoint_cache: 3
. Nothing worked. Every request for a new model is long.The text was updated successfully, but these errors were encountered: