We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f835d47 commit f68e8faCopy full SHA for f68e8fa
src/llama-vocab.cpp
@@ -439,7 +439,7 @@ struct llm_tokenizer_bpe_session {
439
"also starts with a BOS token. So now the final prompt starts with 2 BOS tokens. "
440
"Are you sure this is what you want?\n", __FUNCTION__);
441
}
442
- if (vocab.get_add_bos() && output.size() >= 2 && *(output.end()-2) == vocab.token_eos()) {
+ if (vocab.get_add_eos() && output.size() >= 2 && *(output.end()-2) == vocab.token_eos()) {
443
LLAMA_LOG_WARN(
444
"%s: Added a EOS token to the prompt as specified by the model but the prompt "
445
"also ends with a EOS token. So now the final prompt ends with 2 EOS tokens. "
0 commit comments