llama-batch: fix allowed decreasing pos in a seq (#25449)

This commit is contained in:
Aman Gupta
2026-07-09 00:24:34 +08:00
committed by GitHub
parent 0bbc87b163
commit 1ee093937f
+2
View 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;
}
}
}