From: Aman Gupta Date: Wed, 8 Jul 2026 16:24:34 +0000 (+0800) Subject: llama-batch: fix allowed decreasing pos in a seq (#25449) X-Git-Tag: upstream/0.0.10438~508 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=1ee093937fb4e0ff58f4b3e03188f5e133e7e62b;p=pkg%2Fggml%2Fsources%2Fllama.cpp llama-batch: fix allowed decreasing pos in a seq (#25449) --- diff --git a/src/llama-batch.cpp b/src/llama-batch.cpp index 5436717c4..2b98a552f 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; } } }