server : fix EOS token detection with disabled cache

This commit is contained in:
Georgi Gerganov 2024-03-08 12:19:14 +02:00
parent 581ed5c4fe
commit b2fe31a572
No known key found for this signature in database
GPG key ID: 449E073F9DC10735

View file

@ -1123,7 +1123,7 @@ struct server_context {
});
}
if (!slot.cache_tokens.empty() && result.tok == llama_token_eos(model)) {
if (result.tok == llama_token_eos(model)) {
slot.stopped_eos = true;
slot.has_next_token = false;