llama : move tokenizers into llama-vocab

ggml-ci
This commit is contained in:
Georgi Gerganov 2024-07-19 15:44:30 +03:00
parent e7dffa6bc7
commit 8fef5b1897
No known key found for this signature in database
GPG key ID: 449E073F9DC10735
6 changed files with 2067 additions and 1974 deletions

View file

@ -906,10 +906,10 @@ extern "C" {
LLAMA_API llama_token llama_token_pad(const struct llama_model * model); // padding
// Returns -1 if unknown, 1 for true or 0 for false.
LLAMA_API int32_t llama_add_bos_token(const struct llama_model * model);
LLAMA_API int32_t llama_add_bos_token(const struct llama_model * model);
// Returns -1 if unknown, 1 for true or 0 for false.
LLAMA_API int32_t llama_add_eos_token(const struct llama_model * model);
LLAMA_API int32_t llama_add_eos_token(const struct llama_model * model);
// Codellama infill tokens
LLAMA_API llama_token llama_token_prefix(const struct llama_model * model); // Beginning of infill prefix