<< Home | Prompting craft
Align prompt format to specific model architecture
| Area | Prompting craft |
| AI used | Llama 2 variants |
| Source | Reddit thread |
| Posted | 2023-09-13 |
The move
Match your prompt structure exactly to the specific model's required template.Steps
- Identify the specific model variant being used.
- Locate the required prompt template on the model card.
- Wrap your input using the exact required delimiters.
- 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 adviceWatch 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.