ChatMLTemplate¶
- class torchtune.data.ChatMLTemplate(*args, **kwargs)[源代码]¶
OpenAI 聊天模型使用的聊天标记语言 (Chat Markup Language)。
它是 Hugging Face 模型使用的默认聊天模板。
<|im_start|>system Provide some context and/or instructions to the model.<|im_end|> <|im_start|>user The user’s message goes here<|im_end|> <|im_start|>assistant The assistant’s response goes here<|im_end|>