Llama2ChatTemplate¶
- class torchtune.models.llama2.Llama2ChatTemplate[source]¶
Prompt template that formats chat data of human and system prompts with appropriate tags used in Llama2 pre-training. Taken from Meta’s official Llama inference repository.
"[INST] <<SYS>> You are a helpful, respectful and honest assistant. <</SYS>>" I am going to Paris, what should I see? [/INST] Paris, the capital of France, is known for its stunning architecture..."