]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
llama-batch: fix allowed decreasing pos in a seq (#25449)
authorAman Gupta <redacted>
Wed, 8 Jul 2026 16:24:34 +0000 (00:24 +0800)
committerGitHub <redacted>
Wed, 8 Jul 2026 16:24:34 +0000 (19:24 +0300)
src/llama-batch.cpp

index 5436717c42711a4f16a32df6714dc82a6361eddc..2b98a552f48f73ed7c29c2e3e48383245f5d39ec 100644 (file)
@@ -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;
             }
         }
     }