llama.cpp
common/grammar : replace problematic backtracking regex `[\s\S]*`
#18342
Merged

common/grammar : replace problematic backtracking regex `[\s\S]*` #18342

aldehir merged 6 commits into ggml-org:master from aldehir:fix-regex-stack
aldehir
aldehir grammar : add support for std::regex_search() with trigger patterns
8da07610
aldehir common : update hermes2 pro trigger to search instead of match
6b757458
aldehir common : use regex_search with anchoring for partial matching
2a7bf2ed
aldehir common : adjust regex partial tests to use new pattern
f9071240
aldehir grammar : check pattern directly instead of adding a type
3bdcc4f7
aldehir aldehir requested a review from ggerganov ggerganov 29 days ago
aldehir aldehir requested a review from pwilkin pwilkin 29 days ago
github-actions github-actions added testing
aldehir aldehir requested a review from ochafik ochafik 29 days ago
aldehir common : adjust existing patterns to match new semantics
ff4d24ad
ggerganov
aldehir
ggerganov
ggerganov approved these changes on 2026-01-03
aldehir aldehir merged cef1d23c into master 19 days ago
thomasjfox

Login to write a write a comment.

Login via GitHub

Assignees
No one assigned
Labels
Milestone