I tried reversing chat templates to see which models are the best at generating user turns
Summary
作者做了一个实验,让指令微调的 LLM 反向生成"用户轮次"(user_start token 之后的文本),测试约 30 个模型后发现用 chat template 反转技巧比角色扮演 system prompt 更能模仿真人,其中 Mistral Small 3 24B 表现最佳。结果和代码已开源在 selfgpt 网站与 GitHub 仓库。
Similar Articles
@MaximeRivest: Tool calling in open source LLMs is wildly different from one model to another. I just wipped up: http://chattemplatepl…
A new web tool, Chat Template Playground, lets users visualize how different open-source LLMs render their chat templates, highlighting differences in prompting and tokenization.
@rabi_guha: ChatGPT launched their version of Generative UI yesterday. We took it apart tldr; the agent never write raw code. It em…
作者逆向工程了 OpenAI 新推出的 ChatGPT Intelligent UI(生成式 UI),解析其架构:模型输出一种名为 DIL 的中间语言(Markdown + JSX 风格标签 + JavaScript),由服务端编译为 JS 程序与 JSON 文档,再由客户端沙箱运行时渲染为原生组件。
peculiar-ragdoll/Qwen-Sharp-Chat-Templates
This article describes a drop-in chat template fix for Qwen AI models that improves accuracy, reduces token usage, and speeds up responses for knowledge work and coding tasks.
Concerning "humanlike models" and chatbot RP in general...
The article discusses how to use system prompts to make AI models behave like specific personas, providing a step-by-step guide with examples like 'John Llama' to illustrate techniques for creating humanlike chatbot interactions.
"As a Language Model...": Chat Template Switches LLM Self-Referential Voice and Activation Steering Reproduces It
The study reveals that chat templates control whether language models adopt a disclaimer voice (e.g., 'I'm just an AI') or an experiential voice (e.g., 'I feel'), and identifies an activation direction that can steer this behavior, impacting AI safety research.