ping98k commited on
Commit
5c05867
1 Parent(s): 44c0d99

Upload 4 files

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +2 -2
tokenizer_config.json CHANGED
@@ -56,13 +56,13 @@
56
  "<end_of_turn>"
57
  ],
58
  "bos_token": "<bos>",
59
- "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 %}",
60
  "clean_up_tokenization_spaces": false,
61
  "eos_token": "<eos>",
62
  "legacy": null,
63
  "model_max_length": 8192,
64
  "pad_token": "<pad>",
65
- "padding_side": "left",
66
  "sp_model_kwargs": {},
67
  "spaces_between_special_tokens": false,
68
  "tokenizer_class": "GemmaTokenizer",
 
56
  "<end_of_turn>"
57
  ],
58
  "bos_token": "<bos>",
59
+ "chat_template": "{{ bos_token }}{{ 'Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.\n\n### Instruction:\n' }}{% for message in messages %}{% if loop.last and message['role'] == 'user' %}{{ message['content'] }}{% endif %}{% endfor %}{{ '\n\n### Response:\n' }}",
60
  "clean_up_tokenization_spaces": false,
61
  "eos_token": "<eos>",
62
  "legacy": null,
63
  "model_max_length": 8192,
64
  "pad_token": "<pad>",
65
+ "padding_side": "right",
66
  "sp_model_kwargs": {},
67
  "spaces_between_special_tokens": false,
68
  "tokenizer_class": "GemmaTokenizer",