快捷方式

torchtune.data.GrammarErrorCorrectionTemplate

torchtune.data.GrammarErrorCorrectionTemplate = functools.partial(<class 'torchtune.data._prompt_templates.PromptTemplate'>, template={'user': ('Correct this to standard English: ', '\n---\nCorrected: ')})

一个用于语法纠错任务的提示模板

Correct this to standard English: {user_message}
---
Corrected: {assistant_message}

请参阅 PromptTemplate 以了解完整的 API 参数。

文档

查阅 PyTorch 的全面开发者文档

查看文档

教程

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

查看教程

资源

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

查看资源