快捷方式

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}

有关完整的 API 参数,请参阅 PromptTemplate

文档

访问 PyTorch 的全面开发者文档

查看文档

教程

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

查看教程

资源

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

查看资源