b10093

ggml-org/llama.cppb10093Jul 23, 2026by github-actions[bot]same day as b10092

What changed since b10092

medium risk

DeepSeek4 chat template corrected to match reference behavior, plus new drop_reasoning flag support

New features

  • DeepSeekv4 chat template now honors the `drop_reasoning` flag to strip reasoning content from outputs.
  • DeepSeek4 now reuses the DeepSeek 3.2 tool-call parser, extending structured tool parsing to DS4 models.
  • Tool result messages are reordered before being sent to the model for DS4 conversations.

Improvements

  • DeepSeek4 crafted template rewritten to explicitly mirror the upstream reference implementation rather than approximating it.
  • Post-merge cleanup applied to the chat template changes.

Bug fixes

  • Fixed incorrect prompt construction in the DeepSeek4 chat template.
  • Fixed ordering of tool results in DeepSeek4 chat histories.

Upgrade notes

No config or CLI changes are required; the update is drop-in. Because the DeepSeek4 template output changes, prompts and cached KV/prefix state for existing DS4 sessions may no longer match, so restart long-running DS4 sessions after upgrading. If you pin expected model outputs in tests, re-baseline any DeepSeek4 snapshots.

Analyzed Oct 31, 2026

Upgrading?

Release notes summary

Fixes the DeepSeek4 chat template to explicitly follow reference behavior and adds support for the DeepSeekv4 `drop_reasoning` flag.

Key Highlights

  • Fix DeepSeek4 crafted template
  • Support DeepSeekv4 flag (`drop_reasoning`)
  • Fix tool result reordering

Release Notes (excerpt)

<details open> Fix DeepSeek4 crafted template (#25414) * chat: fix DS4 template to explicitly follow reference behavior * Support DeepSeekv4 flag (`drop_reasoning`). * fix: hook DS3.2 parser for DS4 as well * fix: add tool result reordering * fix: post-merge </details> **Website:** - <https://llama.app> **macOS/iOS:** - macOS Apple Silicon (arm64) - macOS Apple Silicon (arm64, KleidiAI enabled) DISABLED - macOS Intel (x64) - iOS XCFramework **Linux:** - Ubuntu x64 (CPU)…

Published by ggml-org on GitHub.

Read the full release notes

Related Repositories