Update llama.cpp
Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
This commit is contained in:
parent
28778f8ad3
commit
a9a2af93ed
1 changed files with 1 additions and 1 deletions
|
@ -4460,7 +4460,7 @@ struct llm_bigram_bpe {
|
||||||
struct llm_tokenizer_bpe {
|
struct llm_tokenizer_bpe {
|
||||||
llm_tokenizer_bpe(const llama_vocab & vocab): vocab(vocab) {}
|
llm_tokenizer_bpe(const llama_vocab & vocab): vocab(vocab) {}
|
||||||
|
|
||||||
void tokenize(const std::string & text, std::vector<llama_vocab::id>& output) {
|
void tokenize(const std::string & text, std::vector<llama_vocab::id> & output) {
|
||||||
int final_prev_index = -1;
|
int final_prev_index = -1;
|
||||||
auto word_collection = bpe_gpt2_preprocess(text);
|
auto word_collection = bpe_gpt2_preprocess(text);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue