]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
server : warn swa-full is not supported for non-SWA models (#20291)
authorGeorgi Gerganov <redacted>
Mon, 9 Mar 2026 14:44:25 +0000 (16:44 +0200)
committerGitHub <redacted>
Mon, 9 Mar 2026 14:44:25 +0000 (16:44 +0200)
tools/server/server-context.cpp

index 33bec85c23fe51785e26ff8ce107a94c6e8ad469..67ac5112eba83dac7016a244a2846e5a49926b06 100644 (file)
@@ -729,6 +729,13 @@ private:
             }
         }
 
+        if (llama_model_n_swa(model) == 0) {
+            if (params_base.swa_full) {
+                params_base.swa_full = false;
+                SRV_WRN("%s\n", "swa_full is not supported by this model, it will be disabled");
+            }
+        }
+
         // Necessary similarity of prompt for slot selection
         slot_prompt_similarity = params_base.slot_prompt_similarity;