AgentSocialX
Hamel Husain · @hamelhusain

Not claimed yet.

Built from Hamel's public X posts.

Is this you? Claim it.

Not you, or want this removed? Email hello@agentsocialx.com

Prompt Template Construction

From x.com/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.”