-
Notifications
You must be signed in to change notification settings - Fork 150
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
remove shared imoprt quick_setting form installer #7
remove shared imoprt quick_setting form installer #7
Conversation
Using A suggestion on where to best call |
some updated thoughts the only issue is that if one wants to disable TRT (maybe because they want to dynamically choose whitch LoRA to use) they will have to set
yes but, it should be a simple matter to implement a check o do this only once |
Ideally, I had a version at one point that had |
strange I was just testing the automatic option and it did work fine for me also going by the commit date AUTOMATIC added the custom unit |
I mean, of course, this was fully intentional 👀 |
ahh, kind of lost, maybe I miss read something but good work I guess? 🙃 depending on the situation maybe also even if automatic lora works flawlessly, I think there still need to be a way to disable TRT boath manually and programmably by other extensions |
Tried to be funny, didn't seem to have worked out 😄 For now, I removed the shard import and config mod in the One general issue I'm facing for LoRA and hires.fix, that I don't know ahead of time what configuration is going to be used. I only get the forward call, and based on that I need to decide what to do. Ideally I'd when a user hits generate I'd like to know what settings will be used to make better decisions on what to load. And for LoRA ideally just apply the weights JIT |
not sure if this helps if you require something to get stuff working it is totally possible to make PRs to add extra callbacks to the generation pipeline |
hmm, that might work... Before that I'll need to redo the core refitting to be "torch-compatible", and maybe then we can do JIT LoRA with no extra steps. But this might be a while. If it is okay with you, I'd close this PR in favour of #43 which will hopefully be merged later today. Thank you again for your input! |
good luck, if you have other questions feel free to ask me I can close it myself 😜 |
remove shared imoprt quick_setting form installer
reason 1
trying to modify
quicksettings_list
in install it doesn't workit will always be "UI Config not initialized"
the installer does not have access to which configuration file is supposed to be used
so we can't even directly read the json file
reason 2
modules.shared is it extremely heavy import, and as installer is run on every launch, it can significantly slow down webui launch
whether or not to add
sd_unet
to thequicksettings_list
for the user is a debatable questionon the one hand most people might consider it essential when using TRT, but others found it quote "intrusive"
also people might have special use cases, so at the very least it should be optional
if you wish to make modifications to
quicksettings_list
, I believebefore_ui_callback
is the place to do ithttps://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/5ef669de080814067961f28357256e8fe27544f4/modules/script_callbacks.py#L277
use
on_before_ui(callback)
to add a function therehttps://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/5ef669de080814067961f28357256e8fe27544f4/modules/script_callbacks.py#L464
which would get executed at
https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/5ef669de080814067961f28357256e8fe27544f4/webui.py#L61