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
..
acestep add some debug prints 2026-03-16 16:27:49 +08:00
qwen3tts fix q3tts compile, update docs and lite 2026-03-14 23:33:18 +08:00
sdcpp sd: support changing preloaded LoRA multipliers (#2041) 2026-03-17 10:09:55 +08:00
tools add old convert tool 2025-06-21 08:40:04 +08:00
ttscpp Adjust int types in format strings (#2009) 2026-03-06 19:06:18 +08:00
whispercpp Adjust int types in format strings (#2009) 2026-03-06 19:06:18 +08:00
embeddings_adapter.cpp Adjust int types in format strings (#2009) 2026-03-06 19:06:18 +08:00
ggml_v1.c OpenBSD also needs alloca.h (#2012) 2026-03-05 12:32:31 +08:00
ggml_v1.h
ggml_v2-cuda-legacy.cu try fix compile issues rocm (+4 squashed commit) 2025-09-21 22:31:09 +08:00
ggml_v2-cuda-legacy.h Wip, CUDA porting malloc improvements, gpu accel for non-llama, backport old quants 2023-06-28 18:20:46 +08:00
ggml_v2-cuda.cu try fix compile issues rocm (+4 squashed commit) 2025-09-21 22:31:09 +08:00
ggml_v2-cuda.h cleanup indentation, fixing cublas build 2023-06-08 22:40:53 +08:00
ggml_v2.c remove clblast, part 2 2026-01-23 14:09:46 +08:00
ggml_v2.h
ggml_v3-cuda.cu try fix compile issues rocm (+4 squashed commit) 2025-09-21 22:31:09 +08:00
ggml_v3-cuda.h attempts a backflip, but does he stick the landing? 2024-11-16 17:05:45 +08:00
ggml_v3.c try fix compile issues 2024-09-19 13:56:19 +08:00
ggml_v3.h Fixed some GGUFv1 loading bugs, long overdue cleanup for compiling, integrated TTS 2025-01-13 14:23:25 +08:00
gpt2_v1.cpp
gpt2_v2.cpp Adjust int types in format strings (#2009) 2026-03-06 19:06:18 +08:00
gpt2_v3.cpp Merge commit '280345968d' into concedo_experimental 2024-04-07 20:27:17 +08:00
gptj_v1.cpp
gptj_v2.cpp Adjust int types in format strings (#2009) 2026-03-06 19:06:18 +08:00
gptj_v3.cpp Adjust int types in format strings (#2009) 2026-03-06 19:06:18 +08:00
llama-util.h Merge commit '280345968d' into concedo_experimental 2024-04-07 20:27:17 +08:00
llama_v2-util.h Merge commit '280345968d' into concedo_experimental 2024-04-07 20:27:17 +08:00
llama_v2.cpp added a nicer built in voice 2025-01-13 23:26:54 +08:00
llama_v2.h Fixed some GGUFv1 loading bugs, long overdue cleanup for compiling, integrated TTS 2025-01-13 14:23:25 +08:00
llama_v3.cpp added a nicer built in voice 2025-01-13 23:26:54 +08:00
llama_v3.h Merge commit '280345968d' into concedo_experimental 2024-04-07 20:27:17 +08:00
mpt_v3.cpp Merge commit '280345968d' into concedo_experimental 2024-04-07 20:27:17 +08:00
neox_v2.cpp
neox_v3.cpp Merge commit '280345968d' into concedo_experimental 2024-04-07 20:27:17 +08:00
otherarch.h kv snapshots save and load last logits for correctness. added some text for musicui, updated docs 2026-03-04 21:57:28 +08:00
rwkv_v2.cpp Adjust int types in format strings (#2009) 2026-03-06 19:06:18 +08:00
rwkv_v2.h wip integrating new rwkv 2023-05-27 22:45:28 +08:00
rwkv_v3.cpp added llava letterboxing feature 2024-08-25 23:15:38 +08:00
rwkv_v3.h fix compile errors, rwkv not working 2023-07-10 18:23:25 +08:00
rwkv_vocab.cpp move embeds into their own dir, detach sd vocab into separate files 2025-10-03 14:21:09 +08:00
tts_adapter.cpp fix q3tts compile, update docs and lite 2026-03-14 23:33:18 +08:00
utils.cpp ace step optimizations 2026-03-15 20:58:45 +08:00
utils.h cover mode is now working 2026-03-13 14:55:39 +08:00