Files
koboldcpp/otherarch
Wagner Bruna 51187d5362 sd: support changing preloaded LoRA multipliers (#2041)
* sd: remove C++ support for enforcing fixed LoRA multipliers

The logic at the Python level is enough.

* sd: support changing preloaded LoRA multipliers

We keep the same rules as before:
- Any LoRA with multiplier 0 can be changed
- If all LoRAs have multiplier != 0, they are fixed and optimized

but tweak the corner case of LoRAs specified more than once to
allow adjusting the multiplier if the same LoRA is also specified
with a zero multiplier, as if they were two different LoRAs.

So the following keeps working as before:
- --sdlora /loras/lcm.gguf --sdloramult 1 : fixed as 1
- --sdlora /loras/lcm.gguf --sdloramult 0 : dynamic, default 0
- --sdlora /loras/ : dynamic, default 0
- --sdlora /loras/lcm.gguf /loras/lcm.gguf --sdloramult 1 1 : fixed as 2

But now we have:
- --sdlora /loras/lcm.gguf /loras/lcm.gguf --sdloramult 1 0 : dynamic, default 1
- --sdlora /loras/lcm.gguf /loras/ --sdloramult 1 : dynamic, default 1
2026-03-17 10:09:55 +08:00
..
2026-03-16 16:27:49 +08:00
2025-06-21 08:40:04 +08:00
2026-03-05 12:32:31 +08:00
2026-01-23 14:09:46 +08:00
2024-09-19 13:56:19 +08:00
2025-01-13 23:26:54 +08:00
2025-01-13 23:26:54 +08:00
2024-08-25 23:15:38 +08:00
2026-03-15 20:58:45 +08:00
2026-03-13 14:55:39 +08:00