-
Notifications
You must be signed in to change notification settings - Fork 27.8k
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
[Bug]: New caching mechanism is too slow/fragile to be practical #11823
Comments
The problem most likely is not that it's a json, but that it's dumping the cache to disk after every addition. I'll see if I can remedy this. |
Alright. If it helps, this LoRA in particular seemed to be problematic because it trained on 40k+ images, and all their associated tags are recorded in the metadata, so it bloats the cache file. https://civitai.com/models/108649 |
Ah... yeah, that's not going to work; dumping like that isn't grabbing all the LORAs 😬 |
I can confirm, I have ton of LoRAs/TIs and it took ~2 hours to load the webui. |
See if commit 9251ae3 in the dev branch solves this. |
Looks like that does mostly resolve it -- it still took an extra few minutes for me and I had to add |
9251ae3 appears to resolve the issue on my end as well |
Closing since the root issue is solved. |
Is there an existing issue for this?
What happened?
I wrote a comment about this on the related commit, which I'm copy-pasting below:
The gist is that the new caching mechanism (currently on the dev branch, and part of the upcoming 1.5.0) is impractical when a user has thousands of extra networks. There is also no indication of this activity happening in the console. If we're going to start caching all this information, we shouldn't be storing JSON files that are >100MB. I don't see the reason to store this information in a human-readable format anymore due to this and also the fact the web UI makes all this information available.
IMO this should also be solved before #11808 and #11821 get merged.
What should have happened?
The caching mechanism should be fast and not interrupt startup time and disk activity.
Version or Commit where the problem happens
7d26c47
What Python version are you running on ?
Python 3.10.x
What platforms do you use to access the UI ?
Windows
The text was updated successfully, but these errors were encountered: