huseinzol05 commited on
Commit
634c77b
1 Parent(s): 6ede71c

Upload tokenizer

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -0
tokenizer_config.json CHANGED
@@ -40,6 +40,7 @@
40
  "<unk>"
41
  ],
42
  "bos_token": "<s>",
 
43
  "clean_up_tokenization_spaces": true,
44
  "eos_token": "</s>",
45
  "max_length": 20480,
 
40
  "<unk>"
41
  ],
42
  "bos_token": "<s>",
43
+ "chat_template": "{{ bos_token }}{% for message in messages %}{% if (message['role'] == 'user') != (loop.index0 % 2 == 0) %}{{ raise_exception('Conversation roles must alternate user/assistant/user/assistant/...') }}{% endif %}{% if message['role'] == 'user' %}{{ '[INST] ' + message['content'] + ' [/INST]' }}{% elif message['role'] == 'assistant' %}{{ message['content'] + eos_token + ' ' }}{% else %}{{ raise_exception('Only user and assistant roles are supported!') }}{% endif %}{% endfor %}",
44
  "clean_up_tokenization_spaces": true,
45
  "eos_token": "</s>",
46
  "max_length": 20480,