llama.cpp
common, grammar: add recursive depth limit, make it a requirement
#31153
Merged

common, grammar: add recursive depth limit, make it a requirement #31153

ngxson merged 10 commits into master from xsn/recursive_bound
ngxson
ngxson common, grammar: add recursive depth limit, make it a requirement
91a38ed6
ngxson ngxson requested a review 3 days ago
ngxson ngxson requested a review from ggerganov ggerganov 3 days ago
ngxson ngxson requested a review from CISC CISC 3 days ago
ngxson ngxson requested a review 3 days ago
github-actions github-actions added documentation
github-actions github-actions added testing
github-actions github-actions added jinja parser
ggerganov
ggerganov approved these changes on 2026-10-25
ngxson catch more recursive functions
34f57790
aldehir common : tidy up peg parser changes
5f2f3051
aldehir
aldehir commented on 2026-10-25
ServeurpersoCom
ServeurpersoCom approved these changes on 2026-10-25
ServeurpersoCom
ServeurpersoCom grammar : reject candidates in a loop, without a depth limit
8fa4bd1c
ServeurpersoCom
ServeurpersoCom grammar : track rejected candidates as indices into the input
47112ac5
ServeurpersoCom
ServeurpersoCom nit : shorten the comment of llama_grammar_reject_step
f7c4801c
aldehir
ggerganov
ggerganov approved these changes on 2026-10-25
aldehir common : add depth_guard for schema walks
1425b1bd
ServeurpersoCom grammar : move GRAMMAR_RECURSIVE_LIMIT into the .cpp
9e98dbeb
ngxson
aldehir common : reduce recursion limit for peg parser
510bcb37
aldehir
aldehir
aldehir approved these changes on 2026-10-25
ServeurpersoCom
aldehir
ngxson improve
b8addd2f
ngxson
ngxson ngxson merged 48c9f08b into master 3 days ago

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone