[GH-ISSUE #5189] Deepseek-Coder-v2 Instruct Chat Template #3263

Closed
opened 2026-04-12 13:48:35 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @RussellCanfield on GitHub (Jun 20, 2024).
Original GitHub issue: https://github.com/ollama/ollama/issues/5189

What is the issue?

I was testing out Deepseek Coder V2 using the Ollama /api/chat endpoint and I get the following error. Does this model in general support chat?

Model:
deepseek-coder-v2:16b-lite-instruct-q4_0

Error:
ERROR [validate_model_chat_template] The chat template comes with this model is not yet supported, falling back to chatml. This may cause the model to output suboptimal responses | tid="0x1ee4b4c00" timestamp=1718899061

The request ends up failing, but that is captured from the Ollama log files.

OS

macOS

GPU

Apple

CPU

Apple

Ollama version

0.1.44

Originally created by @RussellCanfield on GitHub (Jun 20, 2024). Original GitHub issue: https://github.com/ollama/ollama/issues/5189 ### What is the issue? I was testing out Deepseek Coder V2 using the Ollama /api/chat endpoint and I get the following error. Does this model in general support chat? **Model:** deepseek-coder-v2:16b-lite-instruct-q4_0 **Error:** ERROR [validate_model_chat_template] The chat template comes with this model is not yet supported, falling back to chatml. This may cause the model to output suboptimal responses | tid="0x1ee4b4c00" timestamp=1718899061 The request ends up failing, but that is captured from the Ollama log files. ### OS macOS ### GPU Apple ### CPU Apple ### Ollama version 0.1.44
GiteaMirror added the bug label 2026-04-12 13:48:35 -05:00
Author
Owner
<!-- gh-comment-id:2181282931 --> @s-kostyaev commented on GitHub (Jun 20, 2024): https://github.com/deepseek-ai/DeepSeek-Coder-V2/issues/12#issuecomment-2181255179
Author
Owner

@jmorganca commented on GitHub (Jun 21, 2024):

Hi folks this should be fixed now – sorry about that

<!-- gh-comment-id:2182889171 --> @jmorganca commented on GitHub (Jun 21, 2024): Hi folks this should be fixed now – sorry about that
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#3263