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.
Nemotron3 = 40Nemotron3 template format.
PaddleOCR = 41PaddleOCR VL template format, used by PaddlePaddle vision-language OCR models.
ChatGLM3 = 42ChatGLM3 template format, used by ChatGLM3-6B and similar models from Zhipu AI.
ChatGLM4 = 43ChatGLM4 template format, used by GLM-4 series models from Zhipu AI.
Gemma4 = 44Gemma4 template format, used by Gemma 4 models with turn-based markers and native tool calling.
MistralV7Tekken = 45Mistral V7 Tekken variant template format.
DeepSeekOCR = 46DeepSeek OCR template format, raw content with no role formatting.
Exaone4 = 47Exaone 4 template format with bracketed role markers and tool support.
ExaoneMOE = 48Exaone MoE template format with angle-bracket role markers and tool declarations.
Granite4 = 49IBM Granite 4.0 template format with start/end role markers and tool call support.
BailingThink = 50Bailing template format with thinking/reasoning support.
Bailing2 = 51Bailing v2 template format with role_end markers.
Dots1 = 52Dots1 template format with system/userprompt/response markers.
HunyuanMOE = 53Hunyuan MoE template format with extra token markers.
HunyuanDense = 54Hunyuan Dense template format with fullwidth Unicode role markers.
KimiK2 = 55Kimi K2 template format with im_system/im_user/im_assistant markers.
SeedOSS = 56Seed OSS template format with seed:bos/seed:eos markers.
Grok2 = 57Grok 2 template format with plain-text role labels and separator tokens.
PanguEmbed = 58Pangu Embed template format with Chinese role markers and unused tokens.
SolarOpen = 59Solar Open template format with begin/content/end markers.