torchtune.data¶
Interface for instruction templates. |
|
Prompt template for Alpaca-style datasets. |
|
Prompt template for grammar correction datasets. |
|
Prompt template to format datasets for summarization tasks. |
|
Interface for chat formats. |
|
OpenAI's Chat Markup Language used by their chat models. |
|
Chat format that formats human and system prompts with appropriate tags used in LLaMA2 pre-training. |
|
Formats according to Mistral's instruct model. |
|
Given a list of messages, ensure that messages form a valid back-and-forth conversation. |