[PR #11077] model: treat 'user defined' tokens as special tokens #13431

Closed
opened 2026-04-13 00:27:10 -05:00 by GiteaMirror · 0 comments
Owner

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

State: closed
Merged: Yes


Fixes issues where some tool calling and fill-in-the-middle (FIM) tokens would not be counted as special tokens, causing them to be tokenized incorrectly (in pieces instead of whole tokens)

**Original Pull Request:** https://github.com/ollama/ollama/pull/11077 **State:** closed **Merged:** Yes --- Fixes issues where some tool calling and fill-in-the-middle (FIM) tokens would not be counted as special tokens, causing them to be tokenized incorrectly (in pieces instead of whole tokens)
GiteaMirror added the pull-request label 2026-04-13 00:27:10 -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#13431