Skip to content

Commit c89e808

Browse files
committed
vocab : fix bug (eos -> bos)
ggml-ci
1 parent aefcffa commit c89e808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/llama-vocab.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ struct llm_tokenizer_bpe_session {
426426
}
427427

428428
bool append_eos(std::vector<llama_token> & output) const {
429-
if (vocab.add_bos_token()) {
429+
if (vocab.add_eos_token()) {
430430
GGML_ASSERT(vocab.token_eos() != LLAMA_TOKEN_NULL);
431431
output.push_back(vocab.token_eos());
432432
return true;

0 commit comments

Comments
 (0)