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}
有关完整 API 参数,请参阅
PromptTemplate
.