Shortcuts

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..."

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources