How to Use Chat Templates and Prompt Formats with Local Models
Chat templates are the model-specific bridge between role/content messages and the token sequence a chat model expects. This guide explains how to inspect tokenizer.chat_template, apply it with…