Llama / Meta AI prompts
Prompts and system messages for Meta's Llama models, hosted or running on your own machine.
-
Llama 4 Multilingual Text Processing and Tokenizer
Take advantage of Llama 4's 128,000-token vocabulary and declared supported languages in the system prompt to handle multilingual support queues efficiently. …
-
Llama 4 Low-Temperature Extraction Prompt
Pair temperature=0.2 (the recommended default for programmatic extraction) with Llama 4's instruct headers for structured medical entity extraction. …
-
Llama Role Delimiters for Academic Writing Workflows
Academic prompt templates (arXiv:2601.18554) demonstrate using Llama-style special tokens to cleanly delimit system writing personas from user source materials. …
-
Map a Full Codebase With Llama 4 Scout
Use Llama 4 Scout's 10M context window and 128K code-efficient vocabulary to map cross-service API contracts across an entire repository. …
-
Chain-of-Thought for Open-Weight Llama Models
As noted in 2026 prompt engineering guides, on most open-weight models (which do not run hidden RL thinking budgets), explicit Chain-of-Thought prompting still helps substantially for math, logic, and multi-step tasks. …
-
Llama 4 Vision Works Best With English Prompts
Because Llama 4's image understanding is strictly English-only, if your application serves non-English users uploading engineering diagrams, run the vision inspection turn in English first before translating the text out
-
Llama 4 ipython Tool Output Synthesis in Multi-Turn
After returning tool outputs inside <|headerstart|>ipython<|headerend|>...<|eot|>, append <|headerstart|>assistant<|headerend|> so Llama 4 synthesizes the structured array into a clean natural-language answer. …
-
Stop Llama 4 Over-Helping on Small Talk
Include Meta's behavioral guideline in Llama 4's system prompt instructing the model to avoid over-helpfulness when a user seeks simple chit-chat, venting, or emotional support. …
-
KV-Cache Friendly Document Placement for Llama 4 Scout
Because long-form data processing in Llama 4 Scout's 10M context window demands significant system RAM and NVMe storage for the KV-cache, place the large document corpus first and the question last. …
-
Llama 4: No Text and Tool Call in the Same Turn
Per Meta's Llama 4 tool-calling guidelines, the model must be explicitly instructed in the system message never to combine prose text and tool calls in a single turn. …
-
Vibe-Check Testing for Fine-Tuned Llama 4 Maverick
Fine-tuning guides for Llama 4 Maverick emphasize that manual qualitative "Vibe Check" testing remains vital alongside quantitative metrics: use diverse prompts to verify the model maintains the target brand tone and fol
-
Llama 4 Scout 128K Vocabulary for Multilingual and Code
Llama 4 Scout uses an expanded vocabulary of 128,000 tokens that represents code and multilingual text much more efficiently than previous generations. Use Scout to audit multilingual localization files alongside source
-
Stop Llama 4 Inventing Tools in System Prompts
Meta's Llama 4 tool-calling specification requires placing function definitions in JSON format inside the system message alongside strict guidelines prohibiting invented tools. …
-
Llama 4 Knowledge Cutoff: Add Live Context
Meta's Llama 4 system prompt documentation notes a pre-training cutoff date of August 2024. Declare the August 2024 cutoff in the system prompt and require the model to ground post-cutoff 2026 financial analysis in user-
-
Llama 3.3 Multi-Turn Roles With eot_id
In multi-turn Llama 3/3.3 conversations, enclosing each speaker role in <|startheaderid|>...<|endheaderid|> and terminating every turn with <|eotid|> allows the model to track roles and context across multiple exchanges
-
Domain Routing in Llama 4 Maverick's MoE
Technical guides note that Llama 4 Maverick uses a sparse activation system storing 400B total parameters while activating roughly 17B parameters per token. Anchor the system prompt with precise domain terminology to ali
-
Llama 4 Base Model Few-Shot Completion Prompts
When prompting a pretrained (non-Instruct) Llama 4 model for direct text completion, omit all <|headerstart|> role tags and pass <|beginoftext|> followed directly by your text completion pattern. …
-
Llama 3 and 3.3 Prompt Headers: Keep the Newlines
Meta's official Llama 3 documentation highlights that newlines (0x0A) are part of the prompt format, and the prompt must always end with the last user message followed by the assistant header <|startheaderid|>assistant<|
-
Fine-Tune Llama 4 Scout With QLoRA Padding Settings
Fine-tuning guides for Llama 4 Scout note that despite its 10M context window, training sequences should be truncated to 1024 or 2048 tokens with 4-bit quantization (allowing Scout to run on a 24GB VRAM card), paddingsid
-
Llama 4 Multi-Image Comparison Prompt
To analyze multiple images (up to 5) in Llama 4, pass each image sequentially within its own <|imagestart|>...<|imageend|> block prior to the English text prompt. …
-
Llama 4 Small Images: Skip Tile Separator Tags
When passing a small image under 336 x 336 pixels into Llama 4, Meta's prompt specification notes that tile separator tags (<|tilexseparator|>, <|tileyseparator|>) are not required. …
-
Llama 4 JSON Tool Calling: Strict Array Format
Llama 4 also supports a JSON zero-shot function calling format where the assistant outputs a JSON array of objects specifying name and parameters, followed by the same <|headerstart|>ipython<|headerend|> response turn. …
-
Llama Stop Tokens: end_of_text vs eot
If EOS (<|endoftext|>) and EOT (<|eot|> or <|eotid|>) tokens aren't handled properly during tokenization and inference, Llama models can keep hallucinating or repeating text indefinitely because they never receive the si
-
Llama Guard 4 Prompt Wrapping for Safety Moderation
Pair open-weight Llama 4 and Llama 3.3 deployments with Llama Guard 4 using role-delimited conversation blocks to screen both user inputs and assistant outputs. …
-
Llama 4 Scout 10M Context for Regulatory Tracking
According to 2026 Llama engineering guides, Llama 4 Scout features a 10-million-token context window that allows legal compliance systems to monitor entire regulatory databases and notify firms how new 2026 laws affect t