ChatMLTemplate¶
- class torchtune.data.ChatMLTemplate(*args, **kwargs)[source]¶
OpenAI’s Chat Markup Language used by their chat models.
It is the default chat template 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|>