File size: 2,239 Bytes
28b9567
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9508a5a
848da25
89fa185
91db0b5
89fa185
 
9508a5a
89fa185
 
1a2421b
89fa185
 
1a2421b
89fa185
e30f588
89fa185
1a2421b
89fa185
1a2421b
89fa185
1a2421b
89fa185
 
 
1a2421b
89fa185
 
 
 
 
28b9567
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
license: apache-2.0
base_model:
- Qwen/Qwen3.6-27B
- Qwen/Qwen3.6-35B-A3B
- Qwen/Qwen3.5-27B
- Qwen/Qwen3.5-35B-A3B
pipeline_tag: text-generation
library_name: transformers
tags:
- chat-template
- jinja
- jinja2
- qwen3
- template-fix
- bugfix
---

#### Update: You can download v1.0 now.
17 common bugs from other templates and tool cases are fixed (for example JSON """ escapes, unicode character parsing, thinking tags messing up the context etc.), consult the writeup.md if interested in the details.
Dev role fix etc. will be pushed soon to in a v1.1, prework is almost done.
OpenHands codes rock stable with v1.0 for me currently.


# Welcome to the Template Rebuild Project

How do we got here:
Annoyed from various bugs with Qwen3.5 and Qwen 3.6 models tool calling etc. I decided to test many different community variants of Qwen Templates, like probably many others out there.
At the moment there isnt any completly working chat template for the Qwen3.5 and Qwen3.6 models.

Community patches were collected and patched together to made a single final version. But it still contained bugs.

In the spirit of froggeric https://huggingface.co/froggeric/Qwen-Fixed-Chat-Templates/ I want to make this awesome model category useful for any case.

So I did intense preresearch about the models nature, collected a huge list of commonly used ai-tools and which requests do they make to LLM-Endpoints.

All of this was then fed into a new, from the ground up built version of a chat-template.

I believe I did that groundwork, currently I didnt covered all off the over 90 common AI-tools but only like 30, I will continue to enhance the information pile and get 99% tool coverage(100% is probably unnecessary and impossible, considering the fast evolving environment, also many tools use the same calling mechanisms).

This will lead to a final version of the file that is useable for any usecase you can think of.

Currently a first beta version is released as the initial v1.0

In the next days I will create more specific and intense test cases and run them against the chat template.

Please feel free to report any bug you encounter with the template, it will be looked in manually from me and be analyzed intensly.

Have fun!