]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
llama : add llama_beam_search() (#2267)
authorMatt Pulver <redacted>
Fri, 25 Aug 2023 15:18:48 +0000 (11:18 -0400)
committerGitHub <redacted>
Fri, 25 Aug 2023 15:18:48 +0000 (18:18 +0300)
commitc82742ac9cd96fd34aa961978805c1d8a361d589
treeee377f2559d967955ce1dde65b698504a33e2928
parent28b2c996ca0ab90a5669946084f13443ec98e241
llama : add llama_beam_search() (#2267)

* Add llama_beam_search().

* Add '// Beam search' heading to llama.{h,cpp} after llama_grammar_accept_token().

* Add space around * pointers and & references.

* Add spaces around comparison and assignment operators.

* Prefer west const.

* Use llama_ prefix for structs in global namespace.

* Delete obsolete comment from an earlier revision.

* Change eos to eob in llama_beam and llama_beam_view structs.
common/common.h
examples/CMakeLists.txt
examples/beam_search/CMakeLists.txt [new file with mode: 0644]
examples/beam_search/beam_search.cpp [new file with mode: 0644]
examples/server/server.cpp
llama.cpp
llama.h