sd: update to master-377-2034588#1844
Conversation
19b7aef to
b82b41f
Compare
|
Updated to |
e5f9103 to
76fdb8c
Compare
|
sorry for the delays, been caught up with stuff and also laptop repair issues. i will get to this soon i hope |
|
And now we have Edit: done. I think I'll just keep moving it forward; I can move some commits to another PR and truncate this branch, if needed. |
76fdb8c to
251d7ef
Compare
|
Man sd.cpp upstream is suddenly moving so fast... i can't keep up with the constant changes lol. Okay i'm gonna try integrating this shortly, if you have any additions beyond this let's save it for the next PR. For now we need to test and make sure this is stable and nothing broke, since I don't think I can review this much code manually. I'm gonna have to rely on runtime testing and checking. |
|
Just a suggestion: since most of these commits were either updates or fixes right after the updates, it may be better to just rebase the whole branch as-is, instead of collapsing it onto a single commit. That way, if we do find a bug, it'll be easier to bisect. |
|
One point that I'd like you to take a look anyway is the LoRA loading. Upstream code changed a lot, and I needed a different approach to make it work with Koboldcpp changes (mostly on b18aa90621ea7ec8b564c779cbc9ef8835cb9a82). The resulting diff against upstream for master-358 is: wbruna/stable-diffusion.cpp@347710f...4d822db ; I can't reliably link to the lines, but look for the I also added backend support for the LoRA loading mode to make testing easier, but I don't know of any LoRAs that need it to be manually changed on recent revisions. I could remove it from the history, if you prefer to keep koboldcpp.py unchanged through this update. |
|
your current build isn't compiling due to lacking 2 things, however i dont have push access to your PR branch so you'll have to patch it yourself in stable-diffusion.cpp add and change this lora part to this otherwise, that part is fine. so far i have tested sd1.5 and sd1.5 loras and they look ok. havent tested other archs yet |
|
Done: wbruna/stable-diffusion.cpp@872211f . Those #ifdefs should probably be moved to a helper function. I can refactor them afterwards. |
how about a hybrid approach where we break these commits into 3-4 main complete checkpoints? just squash them into feature complete chunks. dumping the whole history might be messy idk |
|
Sure, that works. Master 366 is a small diff, it can be folded with 365. Each bunch of LoRA fixes can be folded with the previous master update (and I'd cheat a bit and fold the last fix onto 358). So we'd have: 355, 358, 366, 371, 377. |
Also adapt Koboldcpp LoRA loading function, and add backend support for lora_apply_mode.
f3ee752 to
717d9c6
Compare
|
Testing Results:
didn't try the others yet, feel free to test too. for now i think it's in a "mergable" state so i will merge later if no objections |
|
@wbruna if its not too much trouble, could you do your magic again with the latest upstream commit so we can try flux2 |
Github closed #1841 when I tried to rename the PR branch.
I updated to
master-358-347710f, but the at-runtime LoRA loading is tangled up with the model loading from disk, so it's not that simple to call from Koboldcpp.For now, I've kept the loading as before.Edit: I adapted the LoRA code, and added a fix for loading LoRAs with sdquant.Edit: now at
master-371-5498cc0master-377-2034588 .