WuChengyue gardner commited on
Commit
9850c8a
1 Parent(s): 209760d

Add chat_template from allenai/tulu-2-dpo-70b to tokenizer_config.json (#4)

Browse files

- Add chat_template from allenai/tulu-2-dpo-70b to tokenizer_config.json (8ab48e7aa6322c87a4cb9b71d36b7deb84262310)


Co-authored-by: Gardner Bickford <gardner@users.noreply.huggingface.co>

Files changed (1) hide show
  1. tokenizer_config.json +2 -1
tokenizer_config.json CHANGED
@@ -33,5 +33,6 @@
33
  "rstrip": false,
34
  "single_word": false
35
  },
36
- "use_default_system_prompt": true
 
37
  }
 
33
  "rstrip": false,
34
  "single_word": false
35
  },
36
+ "use_default_system_prompt": true,
37
+ "chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}"
38
  }