#Chat template
3 messages · Page 1 of 1 (latest)
I'm sorry, but the knowledge sources do not contain a specific chat template for the MLewdBoros-L2-13B-GGUF model.
However, you can find or create a chat template for models that do not include one by following these steps:
-
Find the original model's HuggingFace repository: The authoritative source for a model's chat template is usually the HuggingFace repo for the original (non-GGUF) model. If you have the model file, try searching for its name online or check the page where you downloaded the GGUF model. The README may provide the template or reference a standard one (e.g., ChatML, Alpaca, Vicuna) How do I find a chat template?.
-
Extract the chat template:
- Download the
tokenizer_config.jsonfrom the model's HuggingFace repo and usejqto extract the template:jq -r ".chat_template" tokenizer_config.json - Or, use Python with the
transformerslibrary:Replacefrom transformers import AutoTokenizer tokenizer = AutoTokenizer.from_pretrained('MODEL_ID') print(tokenizer.get_chat_template())'MODEL_ID'with the actual HuggingFace model ID.
- Download the
-
If no template is provided: You may need to create your own, referencing templates from similar models or community resources. The Advanced: How do I make a chat template? section provides guidance on this process.
If you need further help, you can also ask the Discord community for assistance.