We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7da954 commit 4b0c638Copy full SHA for 4b0c638
common/common.cpp
@@ -889,9 +889,8 @@ struct common_init_result common_init_from_params(common_params & params) {
889
}
890
891
if (params.ctx_shift && !llama_kv_cache_can_shift(lctx)) {
892
- LOG_ERR("%s: KV cache shifting is not supported for this model (--no-context-shift to disable)'\n", __func__);
893
- llama_free_model(model);
894
- return iparams;
+ LOG_WRN("%s: KV cache shifting is not supported for this model, disabling KV cache shifting\n", __func__);
+ params.ctx_shift = false;
895
896
897
if (!params.control_vectors.empty()) {
0 commit comments