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