Downloads · 30 days
0
SergioPatricio/qwen3-coder-next-llamacpp-template
qwen3-coder-next-llamacpp-template is a machine learning model from SergioPatricio. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
This repository contains a small llama.cpp-oriented patch of the official Qwen/Qwen3-Coder-Next chat template.
Downloads · 30 days
0
Access
Public
Updated Jul 22, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.jinja7.6 KB · 53%
From the Hugging Face model README
This repository contains a small llama.cpp-oriented patch of the official
Qwen/Qwen3-Coder-Next chat template.
It stays close to the upstream Qwen template and only adds compatibility fixes that are useful for OpenAI-compatible coding agents such as Codex, Aider, OpenCode-style harnesses, and other clients that may send modern message shapes.
Qwen3-Coder-Next.jinja - patched llama.cpp Jinja chat template.smoke_qwen3_coder_next_template.py - small Jinja2 smoke test.developer messages and renders them as Qwen system messages.render_content(content) so string content, typed content arrays,
None, and simple multimodal placeholders do not crash the template.content is a typed content array.tool_call.arguments as either a mapping or a pre-serialized string.The goal is not to redesign Qwen's tool-calling format. The tool prompt and XML tool-call format are intentionally kept close to Qwen's official template.
Example models.ini section:
[Qwen3-Coder-Next]
model = /path/to/Qwen3-Coder-Next-UD-IQ3_XXS.gguf
jinja = on
chat-template-file = /path/to/Qwen3-Coder-Next.jinja
chat-template-kwargs = {"enable_thinking": false}
python -m pip install jinja2
python smoke_qwen3_coder_next_template.py
Expected result:
ALL_OK
This template is intended for llama.cpp and minijinja-style rendering. The smoke test uses Python Jinja2 only to catch obvious template failures and common agent-message shapes; final behavior should still be validated with the actual serving runtime.
Based on the official Apache-2.0 Qwen3-Coder-Next chat template.