快捷方式

torchtune.data.QuestionAnswerTemplate

torchtune.data.QuestionAnswerTemplate = functools.partial(<class 'torchtune.data._prompt_templates.PromptTemplate'>, template={'user': ('Question: ', '\n\nAnswer: ')})

问题回答任务的提示模板

Question: {user_message}

Answer: {assistant_message}

请参阅 PromptTemplate 以获取完整的 API 参数。

文档

访问 PyTorch 的全面开发者文档

查看文档

教程

获取面向初学者和高级开发者的深度教程

查看教程

资源

查找开发资源并获得解答

查看资源