Skip to content

grammar : degrade max repetition > 2000 to unbounded - #26613

Merged
aldehir merged 1 commit into
ggml-org:masterfrom
aldehir:grammar-unbound-max
Aug 5, 2026
Merged

aldehir merged 1 commit into
ggml-org:masterfrom
aldehir:grammar-unbound-max

Conversation

@aldehir

@aldehir aldehir commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Overview

#17381 added a limit to repetition, but any schemas that use a high maxLength to effectively indicate unbounded are rejected as a result. This PR degrades any repetition where max > 2000 to unbounded, which are handled with right recursive rules. Repetitions where min > 2000 still fail.

Requirements

@aldehir
aldehir requested a review from ggerganov as a code owner August 5, 2026 05:54
@aldehir aldehir changed the title grammar : degrade max repetition >= 2000 to unbounded grammar : degrade max repetition > 2000 to unbounded Aug 5, 2026
@github-actions github-actions Bot added the testing Everything test related label Aug 5, 2026
@aldehir
aldehir merged commit cd0fa60 into ggml-org:master Aug 5, 2026
21 of 26 checks passed
satindergrewal pushed a commit to satindergrewal/llama.cpp that referenced this pull request Aug 12, 2026
huaxel pushed a commit to huaxel/strix-llama.cpp that referenced this pull request Aug 12, 2026
brittlewis12 pushed a commit to brittlewis12/llama.cpp that referenced this pull request Aug 17, 2026
thecodacus pushed a commit to thecodacus/llama.cpp that referenced this pull request Sep 7, 2026
zbrad pushed a commit to zbrad/llama.cpp that referenced this pull request Sep 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing Everything test related

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants