Llama 3 Prompt Template

Learn about the format of the prompt template for Llama 3.

A prompt template is a set of instructions organized in a format that provides a starting point to the model for generating text. Like any LLM, Llama 3 also has a specific prompt template. It uses special tokens as a formatting structure to enclose instructions, which the model recognizes and responds to accordingly.

These templates are used for prompting the base models. The models we use are instruction-tuned models; therefore, we don't use them in our day-to-day prompting. However, any prompt we ask is first converted into the prompt template, and then Llama 3 generates a response for it.

The prompt templates are specifically used to fine-tune the model's responses using the API keys or base model. They are useful for making personalized bots or integrating Llama 3 into businesses and applications.

Special tokens

Following is the list of special ...