server : warn swa-full is not supported for non-SWA models (#20291)

This commit is contained in:
Georgi Gerganov
2026-03-09 16:44:25 +02:00
committed by GitHub
parent d6e1556499
commit 344ee2a38a

View 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;