mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-02 11:01:20 +02:00
various fixes
This commit is contained in:
+3
-2
@@ -9223,8 +9223,8 @@ static void llama_kv_cache_update_impl(struct llama_context & lctx) {
|
||||
|
||||
if (lctx.kv_self.has_shift) {
|
||||
if (!llama_kv_cache_can_shift(&lctx)) {
|
||||
GGML_ABORT("The current context does not support K-shift");
|
||||
}
|
||||
printf("\nWARNING: The current context does not support K-shift!\n");
|
||||
} else {
|
||||
|
||||
// apply K-shift if needed
|
||||
if (lctx.model.hparams.rope_type != LLAMA_ROPE_TYPE_NONE) {
|
||||
@@ -9250,6 +9250,7 @@ static void llama_kv_cache_update_impl(struct llama_context & lctx) {
|
||||
kv_self.cells[i].delta = 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// defragment the KV cache if needed
|
||||
|
||||
Reference in New Issue
Block a user