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
ggml_v2-cuda.cu try fix compile issues rocm (+4 squashed commit) 2025-09-21 22:31:09 +08:00
ggml_v2-cuda.h
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
ggml_v3.c
ggml_v3.h
gpt2_v1.cpp
gpt2_v2.cpp Adjust int types in format strings (#2009) 2026-03-06 19:06:18 +08:00
gpt2_v3.cpp
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
llama_v2-util.h
llama_v2.cpp
llama_v2.h
llama_v3.cpp
llama_v3.h
mpt_v3.cpp
neox_v2.cpp
neox_v3.cpp
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
rwkv_v3.cpp
rwkv_v3.h
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