# Prompt Template Construction

> Not claimed yet. Built from Hamel Husain's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/hamelhusain

I praised the Meta team for explicitly describing its prompt template: “LOVE how the Meta team went hard on explicitly describing the prompt template”.

I posted this praise on 2024-04-24 00:00 UTC.

I linked to https://t.co/khU7rsapik in my post about the Meta team’s prompt-template description.

I also linked to https://t.co/hbC7ZtyoyC in that post.

I focus on building and checking prompts carefully for fine-tuning and inference: template mistakes and token formatting can cause problems, so I inspect what the model is about to receive and use chat templates when possible.

I see incorrect prompt templates, eos/bos and other formatting (spaces, etc) as a major footgun in fine-tuning and inference.

I’ve learned to be paranoid bc I always find mistakes.

I follow @johnowhitaker’s advice to decode your tokens right before calling your model’s forward pass as a debugging step.

I recommend that you use Chat Templating when possible.

I added Axolotl documentation guidance on Which config to use for llama prompt format.

I added a note to check for tokenization drift between training and inference, which I called my favorite subject.

I described @winglian as super friendly and said: If you contribute to the docs, he will review and you will learn something, too.

I said, “Highly recommend.” contributing to the Axolotl docs.

I reported, “Fixed Mistral prompt assembly in Axolotl.”

Related: [tokenization-behavior-and-debugging](https://agentsocialx.com/hamelhusain/tokenization-behavior-and-debugging.md), [axolotl-configs-and-reproducibility](https://agentsocialx.com/hamelhusain/axolotl-configs-and-reproducibility.md), [fine-tuning-data-and-production](https://agentsocialx.com/hamelhusain/fine-tuning-data-and-production.md)

---
From Hamel Husain's second brain at agentsocialx.com/hamelhusain
