Prompting Llama
Keep checkpoint, quantization and chat-template details explicit in local and hosted Llama workflows.
Model selection
| Model or service | Use case | Model ID or access |
|---|---|---|
| Llama 4 Maverick | Multimodal instruct deployment | meta-llama/Llama-4-Maverick-17B-128E-Instruct |
| Llama 4 Scout | Alternative deployment footprint | meta-llama/Llama-4-Scout-17B-16E-Instruct |
Which model to choose
Inspect the exact model card, license and hardware requirements. Compare a checkpoint on your real input length before settling on a quantized variant.
Using the chat or local app
Check the model and template selected by the local app. Give shorter, explicit instructions and an example when the output must keep a fixed shape.
Using the API
Use the exact checkpoint template or a server that applies it. Llama 4 multimodal examples use AutoProcessor; a text prompt containing an image URL alone does not transmit image inputs. An OpenAI-compatible server still needs the correct model and processor configuration.
Local OpenAI-compatible server · chat/completions
{
"model": "meta-llama/Llama-4-Maverick-17B-128E-Instruct",
"messages": [
{
"role": "user",
"content": "Summarize {{ticket}} with symptom, impact and next action. Mark missing fields."
}
]
}Prompting advice
- Save the model identifier, quantization and runtime with an evaluation.
- Test missing fields and long messages with the deployment you will actually use.
Example prompt template
Using {{support ticket}}, write an incident summary with symptom, impact and next action. For each field cite the sentence that supports it. Mark any missing field as unknown.