💬Chat Templates
Learn the fundamentals and customization options of chat templates, including Conversational, ChatML, ShareGPT, Alpaca formats, and more!
List of Colab chat template notebooks:
Adding new tokens
model, tokenizer = FastLanguageModel.from_pretrained(...)
from unsloth import add_new_tokens
add_new_tokens(model, tokenizer, new_tokens = ["<CHARACTER_1>", "<THINKING>", "<SCRATCH_PAD>"])
model = FastLanguageModel.get_peft_model(...)Multi turn conversations



Customizable Chat Templates






Applying Chat Templates with Unsloth
More Information
Last updated
Was this helpful?

