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 参数。