Skip to content

Commit 487a5e0

Browse files
authored
context : fix SWA-related warning for multiple sequences (#14045)
1 parent d17a809 commit 487a5e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama-context.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ llama_context::llama_context(
123123
__func__, n_ctx_per_seq, hparams.n_ctx_train);
124124
}
125125

126-
if (!params.swa_full && cparams.n_seq_max > 1) {
126+
if (!params.swa_full && cparams.n_seq_max > 1 && hparams.is_swa_any()) {
127127
LLAMA_LOG_WARN("%s: requested n_seq_max (%u) > 1, but swa_full is not enabled -- performance may be degraded: %s\n",
128128
__func__, cparams.n_seq_max, "https://github.com/ggml-org/llama.cpp/pull/13845#issuecomment-2924800573");
129129
}

0 commit comments

Comments
 (0)