[PR #10577] model: handle multiple eos tokens #13283

Closed
opened 2026-04-13 00:22:51 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/10577

State: closed
Merged: Yes


this change allows arbitrary eos tokens to be defined using eos_token_ids. for backwards compatibility, this will also ingest the singular eos_token_id and eot_token_id.

one source for this value may be the model's generation_config.json

**Original Pull Request:** https://github.com/ollama/ollama/pull/10577 **State:** closed **Merged:** Yes --- this change allows arbitrary eos tokens to be defined using `eos_token_ids`. for backwards compatibility, this will also ingest the singular `eos_token_id` and `eot_token_id`. one source for this value may be the model's `generation_config.json`
GiteaMirror added the pull-request label 2026-04-13 00:22:51 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#13283