Abhaykoul commited on
Commit
f040b80
1 Parent(s): d2d6f79

Update tokenizer_config.json

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +6 -6
tokenizer_config.json CHANGED
@@ -1756,15 +1756,15 @@
1756
  }
1757
  },
1758
  "additional_special_tokens": [
1759
- "<|im_start|>",
1760
- "<|im_end|>"
1761
  ],
1762
- "bos_token": "<|im_start|>",
1763
- "chat_template": "{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
1764
  "clean_up_tokenization_spaces": false,
1765
- "eos_token": "<|im_end|>",
1766
  "model_max_length": 1000000000000000019884624838656,
1767
- "pad_token": "<|im_end|>",
1768
  "sp_model_kwargs": {},
1769
  "spaces_between_special_tokens": false,
1770
  "tokenizer_class": "GemmaTokenizer",
 
1756
  }
1757
  },
1758
  "additional_special_tokens": [
1759
+ "<start_of_turn>",
1760
+ "<end_of_turn>"
1761
  ],
1762
+ "bos_token": "<bos>",
1763
+ "chat_template": "{{ bos_token }}{% if messages[0]['role'] == 'system' %}{{ raise_exception('System role not supported') }}{% endif %}{% 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'] == 'assistant') %}{% set role = 'model' %}{% else %}{% set role = message['role'] %}{% endif %}{{ '<start_of_turn>' + role + '\n' + message['content'] | trim + '<end_of_turn>\n' }}{% endfor %}{% if add_generation_prompt %}{{'<start_of_turn>model\n'}}{% endif %}",
1764
  "clean_up_tokenization_spaces": false,
1765
+ "eos_token": "<eos>",
1766
  "model_max_length": 1000000000000000019884624838656,
1767
+ "pad_token": "<pad>",
1768
  "sp_model_kwargs": {},
1769
  "spaces_between_special_tokens": false,
1770
  "tokenizer_class": "GemmaTokenizer",