mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2025-09-06 07:09:05 +00:00
server : fix EOS token detection with disabled cache (#5938)
This commit is contained in:
parent
581ed5c4fe
commit
af37fd8b30
1 changed files with 1 additions and 1 deletions
|
@ -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.stopped_eos = true;
|
||||||
slot.has_next_token = false;
|
slot.has_next_token = false;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue