From: Georgi Gerganov Date: Thu, 26 Feb 2026 16:08:54 +0000 (+0200) Subject: kv-cache : fix can_shift() check to take into account M-RoPE (#19928) X-Git-Tag: gguf-v0.18.0~9 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=99bd67c9b29851f758c7d22caa8fc57fd5af3e4f;p=pkg%2Fggml%2Fsources%2Fllama.cpp kv-cache : fix can_shift() check to take into account M-RoPE (#19928) --- diff --git a/src/llama-kv-cache.cpp b/src/llama-kv-cache.cpp index cb702b2a5..6b668ee9a 100644 --- a/src/llama-kv-cache.cpp +++ b/src/llama-kv-cache.cpp @@ -978,6 +978,9 @@ bool llama_kv_cache::get_can_shift() const { if (model.arch == LLM_ARCH_STEP35) { return false; } + if (hparams.n_pos_per_embd() > 1) { + return false; + } return true; }