llama.cpp
chat : implement token aware parsing
#29307
Merged
Go
Login via GitHub
Home
FAQ
Install
Login
via GitHub
Overview
Commits
62
Changes
View On
GitHub
chat : implement token aware parsing
#29307
aldehir
merged 62 commits into
ggml-org:master
from
aldehir:token-aware-parsing
aldehir
force pushed
to
27c2bb46
60 days ago
github-actions
added
server
aldehir
force pushed
from
27c2bb46
55 days ago
github-actions
added
documentation
github-actions
added
testing
aldehir
force pushed
55 days ago
aldehir
force pushed
to
2f910999
55 days ago
aldehir
force pushed
from
2f910999
to
f3d24537
20 days ago
aldehir
force pushed
from
f3d24537
to
f762d791
13 days ago
aldehir
marked this pull request as ready for review
13 days ago
aldehir
requested a review
from
pwilkin
13 days ago
aldehir
requested a review
from
ggerganov
13 days ago
aldehir
requested a review
13 days ago
aldehir
requested a review
13 days ago
grammar : allow byte-split characters under token rules
1bfc224f
tests : check the grammar mask against accept for every token
5367943e
grammar : add token range and alt support
3c6563e2
grammar : keep tokens named by token rules out of char rules
031308b7
grammar : reject invalid UTF-8 continuations when accepting a token
c940782c
tests : clean up
6b252e58
grammar : clean up comments
a1c39189
tests : keep the mask check out of the catch handler in match_string
626a4fcf
tests : initialize the new llama_grammar_candidate fields
2d118569
grammar : update documentation
ca5c0285
common : align tokens with bytes when tokenizing chat input
a31fbb57
chat : store special tokens for chat parsing
e36797b8
chat/peg : implement token parser
693326ac
chat : make trie token aware
a89c26dd
chat : update gbnf builders to use token rules
04f44d39
cont : clean up
5ef0e1b2
chat : migrate gpt-oss and qwen3-coder to token aware parsers
08aeb1b1
chat : gate tool call grammars on their triggers
94b4c765
chat : refactor ac to support branching
071c5572
chat : simplify delimiter expansion
35b90d09
cont : clean up
46343a51
cont : clean up
8e7a8144
chat : rename token_table
bbe8fbe0
cont : remove using keyword here
5648ae20
cont : clean up old commented line
1571690e
cont : refactor trigger rules
0490effa
cont : allow parsers as delimiters
0b06a8e7
cont : spacing
c884c902
cont : merge until and ac parsers
566a2dda
cont : implement token negation parser
d97be4d5
cont : simplify trigger rules
aff5efea
cont : rename second until() variant to through()
7fa9c352
cont : convert gemma4 to a token parser
a8afd975
cont : fix gemma4 empty reasoning block and unused tool_call rule
b6cb7079
cont : fix gcc parentheses warning and trailing whitespace
479d2ae2
cont : fix gcc parentheses warning in gbnf generation test
192cbf08
cont : pin the until rule id in trigger rule gbnf tests
c75d346c
cont : port the K2 Horizon parser to through()
e8518996
cont : port the Harmony XML and Muse Spark parsers to through()
304839bd
cont : port the Muse Glimmer parser to a scanning grammar
dedd6416
cont : use master impl instead
45bd2bce
cont : clean up
4e7b6c4a
gpt-oss: keep tool headers atomic so prefix names are not reported early
9ce54ee3
common/peg-parser : refactor building of tries
d383efec
cont : simplify some comments
5185e5d0
doc : rephrase trigger_rule documentation
11ed6249
chat : remove trigger rule for muse glimmer
ce69f81e
tests : add infra for testing token parsing
96a27b78
tests : add special tokens for supporting parsers
4a9f5ae7
tests : only run one set of tests
42ce9e2f
docs : update parsing documentation
291cbda7
common/autoparser : guard against an empty value suffix
2fe57a92
cont : cleanup double blank lines
e4082135
grammar : use uint64 to avoid overflow
5881458f
aldehir
force pushed
from
87320cae
to
5881458f
12 days ago
cont : fix gemma4 tool call optional
18b48fab
Merge remote-tracking branch 'upstream/master' into token-aware-parsi…
2e2656c3
cont : address a few more review
ce69a23f
cont : restore the Harmony XML missing closing tag tolerance
a2c8846f
cont : remove eot from parser/grammar in muse glimmer
f7e28e5e
cont : comments
8d2450bd
Merge remote-tracking branch 'upstream/master' into token-aware-parsi…
d64ad085
ngxson
approved these changes on 2026-11-14
Merge remote-tracking branch 'upstream/master' into token-aware-parsi…
09fc5d83
CISC
approved these changes on 2026-11-15
ggml-org
deleted a comment from
samyelzoghby01-lang
on 2026-11-21
pwilkin
approved these changes on 2026-11-22
pwilkin
approved these changes on 2026-11-22
ggerganov
approved these changes on 2026-11-22
aldehir
merged
1014775c
into master
8 hours ago
Login to write a write a comment.
Login via GitHub
Reviewers
ggerganov
pwilkin
CISC
ngxson
Assignees
No one assigned
Labels
documentation
testing
server
Milestone
No milestone
Login to write a write a comment.
Login via GitHub