]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
Add left recursion check: quit early instead of going into an infinite loop (#7083)
authorHaggai Nuchi <redacted>
Tue, 14 May 2024 05:25:56 +0000 (22:25 -0700)
committerGitHub <redacted>
Tue, 14 May 2024 05:25:56 +0000 (15:25 +1000)
commite0f556186b6e1f2b7032a1479edf5e89e2b1bd86
treef418b53a5ba7b285b0b3b3c4e1509848ad08b67a
parent27f65d6267cf22a44c5ccefa7765d53a05bd1259
Add left recursion check: quit early instead of going into an infinite loop (#7083)

* Add left recursion check: quit early instead of going into an infinite loop

* Remove custom enum, rename left recursion check and move to "grammar internal" section, add handling for edge case where a leftmost nonterminal may be empty

* Remove unnecessary declaration
llama.cpp
tests/test-grammar-integration.cpp