From 123bb2b6f84644e98a1f49eca30cbfabec03fb67 Mon Sep 17 00:00:00 2001 From: Wagner Bruna Date: Wed, 2 Jul 2025 22:26:44 -0300 Subject: [PATCH] fix: further increase LORA_GRAPH_SIZE It turns out 15360 is still not enough for some SDXL LoRAs; for instance, a quantized SDXL model with the DMD2 LoRA. Koboldcpp has been using 20480 for some time, so this value should be enough. Hopefully fixes #648 , #684 and #688 . --- lora.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lora.hpp b/lora.hpp index 471d0ef8..316f8451 100644 --- a/lora.hpp +++ b/lora.hpp @@ -3,7 +3,7 @@ #include "ggml_extend.hpp" -#define LORA_GRAPH_SIZE 15360 +#define LORA_GRAPH_SIZE 20480 struct LoraModel : public GGMLRunner { enum lora_t {