Shortcuts

torchtune.data.SummarizeTemplate

torchtune.data.SummarizeTemplate = functools.partial(<class 'torchtune.data._prompt_templates.PromptTemplate'>, template={'user': ('Summarize this dialogue:\n', '\n---\nSummary:\n')})

A prompt template for summarization tasks:

Summarize this dialogue:
{user_message}
---
Summary:
{assistant_message}

Please see PromptTemplate for full API arguments.

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