From 1ee093937fb4e0ff58f4b3e03188f5e133e7e62b Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Thu, 9 Jul 2026 00:24:34 +0800 Subject: [PATCH] llama-batch: fix allowed decreasing pos in a seq (#25449) --- src/llama-batch.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/llama-batch.cpp b/src/llama-batch.cpp index 5436717c42..2b98a552f4 100644 --- a/src/llama-batch.cpp +++ b/src/llama-batch.cpp @@ -379,6 +379,8 @@ bool llama_batch_allocr::init( LLAMA_LOG_ERROR("%s: sequence %d positions are decreasing (not allowed)\n", __func__, seq_id); return false; } + + cur_seq_pos[seq_id] = pos; } } }