About Llama
Meta released the original LLaMA research models in 2023, then expanded the family through Llama 2, Code Llama, and the Llama 3 generations. The collection now includes text models for chat, coding and edge deployment, plus image-capable checkpoints in Llama 3.2 Vision and Llama 4. Meta's Llama model repository contains the official model cards and inference formats.
Choose a checkpoint by its exact generation and variant. Base models continue text, while Instruct checkpoints are tuned for assistant use. Code Llama adds Python-focused and instruction-following variants, and its smaller checkpoints support fill-in-the-middle completion. Llama 3.2 separates compact text models from 11B and 90B vision models. Llama 4 Scout and Maverick both accept text and images; Meta lists 10M and 1M context windows respectively in the Llama 4 model card.
Weights are downloadable through Meta's model distribution channels, with access and terms that vary by release. These are open-weight models under version-specific licenses and acceptable use policies, not one uniform permissive license. Review the agreement linked on the version you plan to use before deploying or redistributing it.
How to prompt Llama
- 01
Match the prompt format to the checkpoint
Use the tokenizer's chat template for the exact model. Base checkpoints continue text; instruct checkpoints are tuned for assistant conversations.
- 02
State the task and output shape
Give the model one clear job, the context it may use, any constraints, and the format you need back.
- 03
Treat tool formats as version-specific
Let your serving library apply the supported tool format. Llama 3.2 1B and 3B instruct checkpoints use a different function-call form from earlier Llama 3 releases.
- 04
Attach images through the model interface
For Llama 3.2 Vision and Llama 4, send image inputs using your runtime's multimodal message format, then ask a focused question about the image.
- 05
Budget context and cache memory together
A larger context window requires more key-value cache memory. Check the checkpoint and serving engine limits before raising context length or batch size.
Anatomy of a great prompt
Task: {{task}}
Context: {{context}}
{{#if image_question}}About the attached image: {{image_question}}
{{/if}}Constraints: {{constraints}}
Return the result as {{output_format}}.

