]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
Tests: Added integration tests for GBNF parser (#6472)
authorClint Herron <redacted>
Sat, 6 Apr 2024 14:31:33 +0000 (10:31 -0400)
committerGitHub <redacted>
Sat, 6 Apr 2024 14:31:33 +0000 (10:31 -0400)
commit57dd02c44b2a0eb79e28f6c5eb8242a5d2d3174d
tree8efcbf50cfe1ffd0eaded5d33fc673e063235625
parent75cd4c77292034ecec587ecb401366f57338f7c0
Tests: Added integration tests for GBNF parser  (#6472)

* Added integration tests for GBNF parser to validate correctness of parsing, as well as correctness of string matching. Intended for use to pin behavior while working on performance improvements.

* Fixing whitespace errors and cleaning error message alert to be clearer.

* Removing hacky include to llama.cpp from grammar integration test now that needed functions are available via internal API.

* Comment cleanup.

* Reorganizing tests for readability.

* Cleaning up debug message to make a bit more sense.
Makefile
tests/CMakeLists.txt
tests/test-grammar-integration.cpp [new file with mode: 0644]