How They Use AI  |  Newest

<< Home  |  Prompting craft

Align prompt format to specific model architecture

AreaPrompting craft
AI usedLlama 2 variants
SourceReddit thread
Posted2023-09-13

The move

Match your prompt structure exactly to the specific model's required template.

Steps

  1. Identify the specific model variant being used.
  2. Locate the required prompt template on the model card.
  3. Wrap your input using the exact required delimiters.
  4. Execute the prompt using the correct structural format.

Prompt for your AI

### HUMAN: {prompt} ### RESPONSE:

What happened

The user struggled with poor output quality from Llama 2 models. Commenters clarified that different model variants require distinct prompt formats, such as '### HUMAN:' versus the standard Llama 2 '[INST]' tags. By switching to the format specified on the model card, the user reported achieving nice results.

Who confirmed it

Now I am getting nice results following your advice

Watch out

Using the wrong template for a specific model variant leads to poor or incoherent results.

Give it to your agent

Read https://howtheyuse.ai/p/align-prompt-format-to-specific-model-architecture.md and help me do this.

Sources



Last updated November 26, 2026.