]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
speculative : add grammar support (#2991)
authorGeorgi Gerganov <redacted>
Tue, 5 Sep 2023 05:46:17 +0000 (08:46 +0300)
committerGitHub <redacted>
Tue, 5 Sep 2023 05:46:17 +0000 (08:46 +0300)
commit921772104ba2219bfdc2b2980d05ebc0aa0c92a4
treec9ba8f0f8d0471c9c3c85a6963b322affa0f4f97
parent2ba85c8609309a59d49c45ab43c31800b7ba141c
speculative : add grammar support (#2991)

* speculative : add grammar support

* grammars : add json_arr.gbnf

* grammar : add comments to new grammar file

* grammar : remove one nested level

* common : warm-up with 2 tokens - seems to work better

* speculative : print draft token pieces

* speculative : reuse grammar parser + better logs and comments

* speculative : avoid grammar_mem

* make : fix speculative build
Makefile
common/common.cpp
examples/speculative/speculative.cpp
grammars/json_arr.gbnf [new file with mode: 0644]
llama.cpp
llama.h