llama.cpp/common
Marcus Dunn 5be6c803fa
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 <ggerganov@gmail.com>

* 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 <ggerganov@gmail.com>
2023-10-23 22:40:03 +03:00
..
CMakeLists.txt common : fix mirostat state when using multiple sequences (#3543) 2023-10-11 22:35:46 +03:00
common.cpp llama : remove token functions with context args in favor of model (#3720) 2023-10-23 22:40:03 +03:00
common.h sampling : refactor init to use llama_sampling_params (#3696) 2023-10-20 21:07:23 +03:00
console.cpp check C++ code with -Wmissing-declarations (#3184) 2023-09-15 15:38:27 -04:00
console.h gguf : new file format with flexible meta data (beta) (#2398) 2023-08-21 23:07:43 +03:00
grammar-parser.cpp ggml : fix rope + llama minor optimizations (#3560) 2023-10-20 13:02:12 +03:00
grammar-parser.h gguf : new file format with flexible meta data (beta) (#2398) 2023-08-21 23:07:43 +03:00
log.h speculative : add tree-based sampling example (#3624) 2023-10-18 16:21:57 +03:00
sampling.cpp llama : remove token functions with context args in favor of model (#3720) 2023-10-23 22:40:03 +03:00
sampling.h sampling : refactor init to use llama_sampling_params (#3696) 2023-10-20 21:07:23 +03:00
stb_image.h examples: support LLaVA v1.5 (multimodal model) (#3436) 2023-10-12 18:23:18 +03:00
train.cpp llama : remove token functions with context args in favor of model (#3720) 2023-10-23 22:40:03 +03:00
train.h train : finetune LORA (#2632) 2023-09-28 21:40:11 +03:00