Skip to content

Commit 3016faa

Browse files
ggerganovslaren
andauthored
vocab : fix string init
Co-authored-by: Diego Devesa <slarengh@gmail.com>
1 parent 4e8bf7c commit 3016faa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/llama-vocab.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -2456,7 +2456,7 @@ std::vector<llama_token> llama_vocab::tokenize(
24562456

24572457
// prefix with space if previous is special
24582458
if (tokenizer_add_space_prefix && is_prev_special) {
2459-
text += ' ';
2459+
text = ' ';
24602460
}
24612461

24622462
text += fragment.raw_text.substr(fragment.offset, fragment.length);

0 commit comments

Comments
 (0)