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.