Shortcuts

MistralChatTemplate

class torchtune.models.mistral.MistralChatTemplate[source]

Formats according to Mistral’s instruct model.

It is identical to Llama2ChatTemplate, except it does not support system prompts.

Note

This template is only recommended for Mistral’s Instruct-v0.1 and Instruct-v0.2 models. Instruct-v0.3 adds additional tags for tool calls, which is not yet supported by this template.

"[INST] 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