[GH-ISSUE #8646] Deepseek R1 distilled models dropping tokens from context (deepseek-r1:32b) #5600

Open
opened 2026-04-12 16:52:31 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @brianthompson-sarcat on GitHub (Jan 29, 2025).
Original GitHub issue: https://github.com/ollama/ollama/issues/8646

What is the issue?

Example: I am running cline and the system prompt includes tool commands. The responses from the model are dropping word boundary tokens for file names and for tool names.

e.g., snake_game.py becomes snake_ame.py | replace_in_file becomes replace_in_ile.

Seems to mostly happen when using underscores.

deepseek-r1:32b

OS

macOS

GPU

Apple

CPU

Apple

Ollama version

0.5.7

Originally created by @brianthompson-sarcat on GitHub (Jan 29, 2025). Original GitHub issue: https://github.com/ollama/ollama/issues/8646 ### What is the issue? Example: I am running cline and the system prompt includes tool commands. The responses from the model are dropping word boundary tokens for file names and for tool names. e.g., snake_game.py becomes snake_ame.py | replace_in_file becomes replace_in_ile. Seems to mostly happen when using underscores. deepseek-r1:32b ### OS macOS ### GPU Apple ### CPU Apple ### Ollama version 0.5.7
GiteaMirror added the bug label 2026-04-12 16:52:31 -05:00
Author
Owner

@rick-github commented on GitHub (Jan 29, 2025):

Can you provide a sample prompt? Set OLLAMA_DEBUG=1 in the ollama server environment, run a cline sessions and add the logs here.

<!-- gh-comment-id:2621436914 --> @rick-github commented on GitHub (Jan 29, 2025): Can you provide a sample prompt? Set `OLLAMA_DEBUG=1` in the ollama server environment, run a cline sessions and add the [logs](https://github.com/ollama/ollama/blob/main/docs/troubleshooting.md#how-to-troubleshoot-issues) here.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#5600