Bonsai-27B-GGUF
lmstudio-community · Kit
A GGUF conversion of the 27B Bonsai model for LM Studio, with a 3.80 GB Q1_0 language file and a 0.93 GB BF16 vision projector. Tested for text, vision and par…
Swaps Qwen's official chat templates for one drop-in Jinja file that fixes rendering errors, cache invalidation, wasted tokens and agent stalls. For people who run Qwen 3.5, 3.6 and 3.8 models locally.
Qwen-Fixed-Chat-Templates is a kit in the Developer category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download froggeric/Qwen-Fixed-Chat-Templates
This is a single Jinja chat template, chat_template.jinja, for Qwen 3.5, 3.6 and 3.8 models, including the 3.8 Flash-Next sizes. The author says the official templates break in several ways, such as rendering errors, a KV cache that gets thrown away, wasted tokens, empty think blocks and agents that stall. This version is v22.5.
It suits people who serve Qwen models on their own machines and connect coding agents or chat apps to them.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Local AI hobby | Enthusiasts | Replace the template in LM Studio for cleaner chats | Pasting the file into the prompt template box |
| Software development | Developers | Run coding agents against a local Qwen server | Connecting OpenCode or Claude Code to llama-server |
| Platform engineering | Inference engineers | Serve Qwen models with vLLM or SGLang | Swapping the chat template string in tokenizer_config.json |
| Model tooling | Template maintainers | Check which template version a model folder uses | Running the bundled check script |
You can skip it if your engine cannot load Hugging Face Jinja templates or you do not use Qwen models.
| Use case | Who | What they get back |
|---|---|---|
| Agent tool calls | Agent users | Tool arguments that render without crashes in history |
| Reasoning control | API users | A default of medium effort, with switches for more or none |
| Cache reuse | Server operators | Prompts that keep the KV cache valid between turns |
You need a Qwen model and one of the supported engines. The method depends on the engine you use.
pip install -U huggingface_hub hf download froggeric/Qwen-Fixed-Chat-Templates
llama-server -m your_model.gguf --jinja --chat-template-file chat_template.jinja --reasoning-format deepseek
vllm serve Qwen/Qwen3.8-2.4T-A95B --reasoning-parser qwen3 --tool-call-parser qwen3_xml
Once the template is loaded, you chat as normal. Reasoning depth defaults to medium. You can switch it off with enable_thinking set to false or reasoning_effort set to none, or steer it with inline tags typed into the chat.
| Tool | What it does |
|---|---|
| --chat-template-file | Loads this template into llama-server |
| --reasoning-format deepseek | Moves think blocks into the reasoning_content field of the response |
| --reasoning-preserve | Keeps the prefix KV cache on recent llama.cpp builds |
| scripts/check_applied.py | Inspects model folders and GGUF files for the active template version |
You connect a coding agent such as Claude Code to llama-server using the DeepSeek reasoning format. The thinking text goes to its own response field, so it no longer leaks into the text stream and cuts off tool calls.
If you are new to this, a chat template is the recipe that turns your messages into the exact text a model reads. A broken recipe causes odd errors, so a first small try is loading this file in LM Studio.
For people who know the field, the template maps client effort names onto Qwen's levels, so high, max, ultracode and extreme become xhigh, and none or off disables thinking. It also merges consecutive leading system and developer messages and applies two-tier tool error recovery.
The official Qwen 3.8 template defaults to the highest effort, while this one defaults to medium to save tokens and keep the cache stable.
Swaps Qwen's official chat templates for one drop-in Jinja file that fixes rendering errors, cache invalidation, wasted tokens and agent stalls. For people who run Qwen 3.5, 3.6 and 3.8 models locally.
Made by froggeric on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: This is a single Jinja chat template, chat_template.jinja, for Qwen 3.5, 3.6 and 3.8 models, including the 3.8 Flash-Next sizes. The author says the official templates break in several ways, such as rendering errors, a KV cache that gets thrown away, wasted tokens, empty think blocks and agents that stall. This version is v22.5.
Who it suits: It suits people who serve Qwen models on their own machines and connect coding agents or chat apps to them.
Industry | Who uses it | How they use it | Example
Local AI hobby | Enthusiasts | Replace the template in LM Studio for cleaner chats | Pasting the file into the prompt template box
Software development | Developers | Run coding agents against a local Qwen server | Connecting OpenCode or Claude Code to llama-server
Platform engineering | Inference engineers | Serve Qwen models with vLLM or SGLang | Swapping the chat template string in tokenizer_config.json
Model tooling | Template maintainers | Check which template version a model folder uses | Running the bundled check script
You can skip it if your engine cannot load Hugging Face Jinja templates or you do not use Qwen models.
Where to use it:
Use case | Who | What they get back
Agent tool calls | Agent users | Tool arguments that render without crashes in history
Reasoning control | API users | A default of medium effort, with switches for more or none
Cache reuse | Server operators | Prompts that keep the KV cache valid between turns
How to set it up: You need a Qwen model and one of the supported engines. The method depends on the engine you use.
pip install -U huggingface_hub
hf download froggeric/Qwen-Fixed-Chat-Templates
llama-server -m your_model.gguf --jinja --chat-template-file chat_template.jinja --reasoning-format deepseek
vllm serve Qwen/Qwen3.8-2.4T-A95B --reasoning-parser qwen3 --tool-call-parser qwen3_xml
How to use it: Once the template is loaded, you chat as normal. Reasoning depth defaults to medium. You can switch it off with enable_thinking set to false or reasoning_effort set to none, or steer it with inline tags typed into the chat.
Tool | What it does
--chat-template-file | Loads this template into llama-server
--reasoning-format deepseek | Moves think blocks into the reasoning_content field of the response
--reasoning-preserve | Keeps the prefix KV cache on recent llama.cpp builds
scripts/check_applied.py | Inspects model folders and GGUF files for the active template version
Example: You connect a coding agent such as Claude Code to llama-server using the DeepSeek reasoning format. The thinking text goes to its own response field, so it no longer leaks into the text stream and cuts off tool calls.
For newcomers and experts: If you are new to this, a chat template is the recipe that turns your messages into the exact text a model reads. A broken recipe causes odd errors, so a first small try is loading this file in LM Studio.
For people who know the field, the template maps client effort names onto Qwen's levels, so high, max, ultracode and extreme become xhigh, and none or off disables thinking. It also merges consecutive leading system and developer messages and applies two-tier tool error recovery.
Your engine loads chat_template.jinja
Messages and tools are rendered in one format
Reasoning effort is set by default or by a tag
The model replies and thinking is split out
Good to know: The official Qwen 3.8 template defaults to the highest effort, while this one defaults to medium to save tokens and keep the cache stable.
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download froggeric/Qwen-Fixed-Chat-Templates
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 5 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| Qwen-Fixed-Chat-Templates This page | 0 | 1,901 | — | apache-2.0 | |
| Qwen Sharp Chat TemplatesShares chat-template · jinja · lm-studio | 0 | 502 | — | apache-2.0 | |
| Qwen3.6-35B-A3B lododo-Distill-v1.0 (GGUF)Shares qwen3.6 · qwen3.8 · qwen | 746 | 8 | 35.5B | apache-2.0 | |
| Qwen3.8-35B-A3B-Distill-GGUFShares qwen3.6 · qwen3.8 · llama.cpp | 1,337,097 | 277 | 35.5B | apache-2.0 | |
| Qwen3.6-35B-A3B-Claude-4.6-Opus-Reasoning-Distilled-GGUFShares qwen3.6 · qwen · llama.cpp | 17,179 | 296 | 34.7B | apache-2.0 | |
| Qwen3.8-27B-NVFP4-DGX-SPARKShares vllm · qwen3.8 · qwen | 41,306 | 1,127 | 18.2B | apache-2.0 |
Posts and comments that name this project on Hacker News, Bluesky, X, Reddit, Facebook and YouTube, found by a weekly search and on Trendshift. Mindket doesn’t write or check them. Open one to read it where it was posted.
lmstudio-community · Kit
A GGUF conversion of the 27B Bonsai model for LM Studio, with a 3.80 GB Q1_0 language file and a 0.93 GB BF16 vision projector. Tested for text, vision and par…
LibertAIDAI · Kit
Runs DeepSeek-V4.1-Flash-1017 as a 2.9 bits-per-weight EXL3 quantization, a 196 GiB copy for people serving large models on their own hardware. Perplexity stay…
facebook · Kit
Generates short music clips from a text description or an audio prompt, in the small checkpoint of facebook's MusicGen. It suits developers and music hobbyists…
alpindale · Kit
Tags every character of C source code for syntax highlighting with a tiny neural network of about 984 weights, run through a small C program. For developers an…
prithivMLmods · Kit
Try a set of LoRAs for the FLUX.2 Klein image model in a Gradio app that runs in your browser or on your own computer. Made for people who make or test AI imag…
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…