快捷方式

torchtune.data.SummarizeTemplate

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

用于摘要任务的 Prompt 模板

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

请参阅 PromptTemplate 查看完整的 API 参数。

文档

查阅 PyTorch 的全面开发者文档

查看文档

教程

获取针对初学者和高级开发者的深入教程

查看教程

资源

查找开发资源并获得问题解答

查看资源