Skip to content

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

Merged
ggerganov merged 1 commit into
ggml-org:masterfrom
am17an:fix-llama-batch-decreasing-seq
Jul 8, 2026
Merged

llama-batch: fix allowed decreasing pos in a seq#25449
ggerganov merged 1 commit into
ggml-org:masterfrom
am17an:fix-llama-batch-decreasing-seq

Conversation

@am17an

@am17an am17an commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Overview

Currently we do allow decreasing pos in a seq in a batch because cur_pos_seq is not set. This PR fixes that

Additional information

Requirements

@am17an am17an requested a review from ggerganov as a code owner July 8, 2026 15:27

@ggerganov ggerganov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch. Did you manage to trigger this or just static analysis?

@am17an

am17an commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

I was writing a llama_batch_allocr test and this showed up through automation

@ggerganov ggerganov merged commit 1ee0939 into ggml-org:master Jul 8, 2026
23 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants