What is a chat template?
The text format (special tokens and role markers) a model was trained with. Using the wrong one produces poor or garbled output.
Learn it properly in the lesson →
Where it comes up
Lessons that use this term, most mentions first.
- GGUF and the K-quant family · 12 min · free
- Rollouts and model versioning · 14 min · Pro
- Tokenizers and chat templates for real models · 15 min · Pro
- Tokens and context windows · 11 min · free
- What is local LLM inference? · 10 min · free
- Data basics: formats, chat templates and checks before you train · 18 min · free
- Fine-tuning tools in practice: Unsloth, Axolotl, torchtune and TRL · 15 min · Pro
- Function calling (tools) with local models · 14 min · Pro