Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit e001886

Browse files
committed
fix(mtmd): memory_can_shift() logic bug
Signed-off-by: JamePeng <jame_peng@sina.com>
1 parent fb65ed7 commit e001886

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

llama_cpp/llama_chat_format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3641,7 +3641,7 @@ def __call__(
36413641

36423642
# Stage 5: Multimodal Physical OOM Defense
36433643
if n_past + chunk_n_tokens > llama.n_ctx():
3644-
if llama._ctx.memory_can_shift():
3644+
if not llama._ctx.memory_can_shift():
36453645
raise RuntimeError(
36463646
f"{self.log_prefix}(__call__): Context Shift is explicitly disabled by the C++ backend "
36473647
f"(n_pos_per_embd > 1 or incompatible M-RoPE). "

0 commit comments

Comments
 (0)