ChatMLFormat¶
- class torchtune.data.ChatMLFormat[source]¶
OpenAI’s Chat Markup Language used by their chat models.
It is the default chat format used by Hugging Face models.
<|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|>