Replicate BlogAug 14, 2023, 12:00 AM

Llama 2 提示詞指南:掌握官方 Prompt 格式與特殊標記

Original: A guide to prompting Llama 2

This is a practical prompting guide for Llama 2, written by the Replicate team. Unlike OpenAI's GPT series models, the open-source model…

本指南由 Replicate 團隊撰寫,深入解析 Llama 2 的官方提示詞(Prompt)格式。文章詳細說明了如何使用 `[INST]`、`<<SYS>>` 等特殊標記來結構化系統提示詞與用戶指令。遵循此標準模板能有效避免模型輸出混亂或不聽從指令的問題,是開發者部署與微調 Llama 2 的必讀基礎教學。

This is a practical prompting guide for Llama 2, written by the Replicate team. Unlike OpenAI's GPT series models, the open-source model Llama 2 has extremely strict requirements for input formatting. Without using the correct special tokens, the model can easily produce truncated responses, repetitive paraphrasing, or simply ignoring instructions.

Full summary

Free shows the 3-line summary; Pro unlocks the full deep summary (~300 words) so you never have to click through.

See Pro plans →

Want the original English / full article?

Read on Replicate Blog →

Summaries are AI-generated; the original article is authoritative.