peculiar-ragdoll/Qwen-Sharp-Chat-Templates
Qwen-Sharp-Chat-Templates froggeric's Qwen-Fixed-Chat-Templates(https://huggingface.co/froggeric/Qwen-Fixed-Chat-Templates) v21.3, with a terseness system prompt spliced in. Model-agnostic: it names no model, so it drops into any Qwen3.5 or Qwen3.6...
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository của tuần
#1 Repository của tuần
#2 Repository của tuần
🧵 Qwen-Sharp-Chat-Templates — Rút gọn đầu ra mà không hy sinh độ chính xác
Chỉ thay đổi 11 dòng, nhưng giảm 59% token trong Claw-Eval và tăng 7.4% điểm chính xác trên Qwen3.6-27B.
Đây là bản rút gọn của template chat từ dự án Qwen-Fixed-Chat-Templates v21.3, do peculiar-ragdoll phát hành. Thay vì sửa trực tiếp model, dự án chỉ chèn thêm một system prompt ép ngắn gọn vào template Jinja — không đụng tới trọng số nào. Do đó nó model-agnostic: dùng được ngay trên bất kỳ bản Qwen3.5 hay Qwen3.6 nào chỉ bằng cách thay chat_template.jinja.
✨ Điểm nổi bật
- System prompt ép ngắn gọn: trả lời nhanh sau suy nghĩ, không mở đầu bằng lời chào hay lặp lại câu hỏi.
- Giữ nguyên system prompt người dùng: phần system gốc của bạn được giữ nguyên, terseness chỉ được gắn thêm ở cuối.
- Chỉ thay đổi 11 dòng: phần còn lại template vẫn giống hệt upstream v21.3.
- Tăng độ chính xác: +7.4% trên Claw-Eval answer, +3.8% overall.
- Giảm token đáng kể: -59% token trên Claw-Eval, -22% token trên MMLU-Pro.
- Hỗ trợ nhiều backend: MLX, llama.cpp, GGUF, vLLM, LM Studio.
- Kiểm tra độ tương thích runtime: script
scripts/check_applied.pybáo cáo nguồn template và cảnh báo mismatch. - Hỗ trợ multi-turn tùy chọn:
preserve_thinking=falseđể tránh tăng token trong vòng lặp agent đa lượt.
💡 Vì sao đáng chú ý
Thay vì tinh chỉnh model hay thêm lớp post-processing, Qwen-Sharp-Chat-Templates chỉ dùng một system prompt ngắn gọn để ép mô hình trả lời ngắn gọn. Kết quả: cùng một model, cùng một câu trả lời, nhưng chỉ tốn khoảng một nửa số token. Điều này đặc biệt hiệu quả với các bài toán đáp ứng ngắn — code snippet, giải thích khái niệm, hoặc tóm tắt — nơi phần lớn token thường bị lãng phí vào lời mở đầu và filler.
Tuy nhiên, template này chỉ hiệu quả tốt trên bài kiểm tra đơn lượt. Trong vòng lặp agent đa lượt, phần system prompt tích lũy theo thời gian và có thể làm tăng chi phí prefill. Do đó, nếu bạn dùng model trong môi trường đa lượt, nên tắt preserve_thinking và tự đo lường.
#Qwen3 #ChatTemplate #Jinja #TokenEfficient #TiniX
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
Fixed jinja chat templates for Qwen 3.5 & 3.6 (v20) Update History & Changelog (v20) 2026-06-05 Update (v20): The Architect Patch. A monumental structural overhaul targeting deep agentic loops and C++ inference engine compatibility. (1) Minja AST Fl...
all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...
Read our How to Run Qwen3.8-27B Guide!(https://unsloth.ai/docs/models/qwen3.8) This GGUF uses Unsloth Dynamic V3.0 (preview) for SOTA quantization performance. Developer Role Support so Qwen3.8 can work in agentic tools like Codex and more! MTP for...
autotrust/JEV-27B-VL JEV-27B that can see: the same System 1 decisions and System 2, now on images autotrust/JEV-27B-VL is autotrust/JEV-27B(https://huggingface.co/autotrust/JEV-27B) with vision. | | what it does | output | |---|---|---| | System 1...
Try gpt-oss · Guides · Model card · OpenAI blog Welcome to the gpt-oss series, OpenAI’s open-weight models(https://openai.com/open-models) designed for powerful reasoning, agentic tasks, and versatile developer use cases. We’re releasing two flavors...
Try gpt-oss · Guides · Model card · OpenAI blog Welcome to the gpt-oss series, OpenAI’s open-weight models(https://openai.com/open-models) designed for powerful reasoning, agentic tasks, and versatile developer use cases. We’re releasing two flavors...
Qwen-Image-2.1 Turbo Quantized GGUF, Safetensors, and MLX quantized formats of Qwen/Qwen-Image-2.1-Turbo(https://huggingface.co/Qwen/Qwen-Image-2.1-Turbo) for local image generation using the official turbo base weights. Benchmark !Qwen-Image-2.1 be...
!🤗 Model Requests(https://img.shields.io/badge/%F0%9F%A4%97ModelRequests-SubmitHere-f59e0b?style=for-the-badge&labelColor=1f2937)(https://abenzerps.com/request-a-model/) Qwen-Image-2.1 Uncensored Quantized GGUF, Safetensors, and MLX quantized format...
!IMPORTANT Notice: A fully uncensored version is currently in development and will be added to this repository soon. Qwen-Image-2.1 GGUF GGUF quantizations of Qwen/Qwen-Image-2.1(https://huggingface.co/Qwen/Qwen-Image-2.1) for local image generation...