]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
llama : remove token functions with `context` args in favor of `model` (#3720)
authorMarcus Dunn <redacted>
Mon, 23 Oct 2023 19:40:03 +0000 (12:40 -0700)
committerGitHub <redacted>
Mon, 23 Oct 2023 19:40:03 +0000 (22:40 +0300)
commit5be6c803fa5378f62a1590f3ad8c6b64c7c0c2ce
tree190868e0431070686d797c3c2d86da857b8ba55f
parent6336701c9378c23c85d1c0e464b663ca2bbb8e60
llama : remove token functions with `context` args in favor of `model` (#3720)

* added `llama_model_token_*` variants to all the `llama_token_*` functions.

* added `LLAMA_API`

* formatting

Co-authored-by: Georgi Gerganov <redacted>
* removed old `llama_token` functions

* changed 3 more functions to take in model

- `llama_token_get_text`
- `llama_token_get_score`
- `llama_token_get_type`

* added back docs

* fixed main.cpp

* changed token functions to use new model variants

* changed token functions to use new model variants

---------

Co-authored-by: Georgi Gerganov <redacted>
16 files changed:
common/common.cpp
common/sampling.cpp
common/train.cpp
examples/batched/batched.cpp
examples/beam-search/beam-search.cpp
examples/infill/infill.cpp
examples/llama-bench/llama-bench.cpp
examples/llava/llava-utils.h
examples/main/main.cpp
examples/parallel/parallel.cpp
examples/perplexity/perplexity.cpp
examples/server/server.cpp
examples/simple/simple.cpp
examples/speculative/speculative.cpp
llama.cpp
llama.h