Enum LM.TemplateFormat
Defines the possible formats for model chat templates, indicating specific structures and encoding standards used for chatbot interactions.
public enum LM.TemplateFormat
Fields
Unknown = -1The format is not recognized. This value is used as a default when the format cannot be determined.
LLama2 = 0Format associated with LLama2 models, typically involving certain structural or functional characteristics unique to this version.
Phi2 = 1Format designed for Phi2 models, supporting features and specifications tailored to these models.
Phi3 = 2Format used by Phi3 models, optimized for advanced capabilities provided by this iteration.
ChatML = 3ChatML format, which may use XML-based markup language specifically designed for chatbot scripts.
Zephyr = 4Zephyr format, potentially signifying a model or template with specific optimizations or enhancements.
Vicuna = 5Vicuna format, indicating a newer or possibly experimental format tailored for specific functionalities.
LLama3 = 6Represents the format used by LLama3 models, indicating evolution or updates from earlier LLama versions.
CommandR = 7CommandR format, which might denote a command-driven or interaction-specific scripting format for chatbots.
Gemma = 8Gemma format, which may denote a format developed for enhancing user experience or specific interactive capabilities in chatbots.
Alpaca = 9Format associated with Alpaca models, indicating specific structural or functional characteristics unique to this version.
DeepSeek = 10DeepSeek template format.
Granite = 11IBM Granite format.
Phi4 = 12Phi template format v4.
MistralV7 = 13Prompt format used by some Mistral models (V7 variant).
MistralV1 = 14Mistral template format (V1 variant).
MistralV3Tekken = 15Mistral template format (V3 Tekken variant).
MistralV3 = 16Mistral template format (V3 variant).
LLama2Sys = 17LLama2 template format with system message support (using <<SYS>>).
LLama2SysBOS = 18LLama2 template format with BOS token inserted inside the history.
LLama2SysStrip = 19LLama2 template format with stripped message content.
Falcon3 = 20Falcon3 template format.
GLMEDGE = 21GLMEDGE template format.
Monarch = 22Monarch template format.
Orion = 23Orion template format for OrionStarAI/Orion-14B-Chat.
OpenChat = 24OpenChat template format.
VicunaOrca = 25Vicuna-Orca template format, a variant of Vicuna with additional system instructions.
ChatGML3 = 26ChatGML format (version 3).
ChatGML4 = 27ChatGML format (version 4).
MiniCPM = 28MiniCPM template format, identified by localized tokens.
DeepSeek2 = 29DeepSeek template format v2.
DeepSeek3 = 30DeepSeek template format v3.
Exaone3 = 31Exaone template format.
RWKVWorld = 32RWKV World template format.
GigaChat = 33GigaChat template format.
Megrez = 34Megrez template format.
Yandex = 35Yandex template format, used by Yandex-developed chatbot models.
Bailing = 36Bailing template format, signifying specialized structure for Bailing models.
Llama4 = 37Format representing LLama4 models, indicating the next generation of LLama templates.
SmolVLM = 38SmolVLM template format, optimized for very lightweight VLM-based chat experiences.
OpenAiMOE = 39OpenAI MOE format.