Llama2ChatFormat¶
- class torchtune.data.Llama2ChatFormat[source]¶
Chat format that formats human and system prompts with appropriate tags used in LLaMA2 pre-training. Taken from Meta’s official LLaMA inference repository.
Example
"[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..."