Merge 4447e95ec5
into 332bdfd798
This commit is contained in:
commit
3f9f970f2c
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue