Shortcuts

PromptTemplateInterface

class torchtune.data.PromptTemplateInterface(*args, **kwargs)[source]

Interface for prompt templates. Each prompt template can include structured text for system, user, and assistant roles that are prepended or appended to the message content.

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