Update chat_templates.py
This commit is contained in:
parent
c3e0e518d9
commit
a12e4ea3e0
1 changed files with 2 additions and 2 deletions
|
|
@ -245,8 +245,8 @@ CHAT_TEMPLATES["gemma"] = (gemma_template, gemma_eos_token,)
|
||||||
# We find using <eos> is still more appropriate!
|
# We find using <eos> is still more appropriate!
|
||||||
gemma_chatml_template = "{{ bos_token }}" + chatml_template
|
gemma_chatml_template = "{{ bos_token }}" + chatml_template
|
||||||
gemma_chatml_eos_token = (
|
gemma_chatml_eos_token = (
|
||||||
{"<start_of_turn>" : "<|im_start|>", }, # "<end_of_turn>" : "<|im_end|>"},
|
{"<start_of_turn>" : "<|im_start|>", "<eos>" : "<|im_end|>"},
|
||||||
"eos_token", # "<|im_end|>",
|
"<|im_end|>",
|
||||||
)
|
)
|
||||||
CHAT_TEMPLATES["gemma_chatml"] = (gemma_chatml_template, gemma_chatml_eos_token,)
|
CHAT_TEMPLATES["gemma_chatml"] = (gemma_chatml_template, gemma_chatml_eos_token,)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue