]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
llama : add token matching support to llama-grammar (#17816)
authorAldehir Rojas <redacted>
Tue, 9 Dec 2025 06:32:57 +0000 (00:32 -0600)
committerGitHub <redacted>
Tue, 9 Dec 2025 06:32:57 +0000 (00:32 -0600)
commite39502e74b46c54b359ddbbefc9bba4f98704906
tree08dd759769dcb4cf4d9697150cf9ed6accaf8262
parent1d2a1ab73d927644d58f44235209affab7e4043e
llama : add token matching support to llama-grammar (#17816)

* llama : add token support to llama-grammar

* fix inverse token comment

* refactor trigger_patterns to replay tokens instead of the entire string

* add token documentation

* fix test-llama-grammar

* improve test cases for tokens
grammars/README.md
src/llama-grammar.cpp
src/llama-grammar.h
tests/test-grammar-integration.cpp
tests/test-grammar-parser.cpp
tests/test-llama-grammar.cpp