Llama 2
[INST] <>
You are a helpful assistant.
< >
What is 2+2? [/INST] 4. Advertisement
Llama 3
<|begin_of_text|><|start_header_id|>system<|end_header_id|>
You are a helpful assistant.<|eot_id|>
<|start_header_id|>user<|end_header_id|>
Hi<|eot_id|>
<|start_header_id|>assistant<|end_header_id|>
Hello!<|eot_id|>Advertisement
Auto-apply
HuggingFace Transformers: tokenizer.apply_chat_template(messages, tokenize=False). Correct template per model.