This commit is contained in:
Riceball LEE 2024-03-11 16:35:23 +08:00 committed by GitHub
commit 3f9f970f2c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2033,6 +2033,8 @@ struct server_context {
if (n_batch == 1 || ret < 0) {
// if you get here, it means the KV cache is full - try increasing it via the context size
LOG_TEE("%s : failed to decode the batch, n_batch = %d, ret = %d\n", __func__, n_batch, ret);
LOG_ERROR("KV cache is full - try increasing it via the context size", {{"ctx-size", params.n_ctx}});
kv_cache_clear();
return false;
}