]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
server: fix load-on-startup not respected in ini file (#19897)
authordrrros <redacted>
Thu, 26 Feb 2026 11:32:31 +0000 (14:32 +0300)
committerGitHub <redacted>
Thu, 26 Feb 2026 11:32:31 +0000 (12:32 +0100)
Co-authored-by: Roman Marchenko <redacted>
tools/server/server-models.cpp

index efb22da5c3dc2b64085c6ec5f1287f9fa8354fd3..e1625477993cdd4b5aa22068f9eceb4c908e5f1d 100644 (file)
@@ -291,7 +291,9 @@ void server_models::load_models() {
     for (const auto & [name, inst] : mapping) {
         std::string val;
         if (inst.meta.preset.get_option(COMMON_ARG_PRESET_LOAD_ON_STARTUP, val)) {
-            models_to_load.push_back(name);
+            if (common_arg_utils::is_truthy(val)) {
+                models_to_load.push_back(name);
+            }
         }
     }
     if ((int)models_to_load.size() > base_params.models_max) {