Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions tools/server/server-context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -759,10 +759,11 @@ struct server_context_impl {

const int n_ctx_train = llama_model_n_ctx_train(model);

int n_ctx_slot = llama_n_ctx_seq(ctx);
const int n_ctx_slot = llama_n_ctx_seq(ctx);
if (n_ctx_slot > n_ctx_train) {
SRV_WRN("the slot context (%d) exceeds the training context of the model (%d) - capping\n", n_ctx_slot, n_ctx_train);
n_ctx_slot = n_ctx_train;
SRV_WRN("the slot context (%d) exceeds the training context of the model (%d) - "
"generation quality may degrade beyond the training context unless RoPE scaling is configured\n",
n_ctx_slot, n_ctx_train);
}

slots.clear();
Expand Down