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