RaushanTurganbay HF staff commited on
Commit
173f753
1 Parent(s): 76af5c0

add special tokens

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +7 -1
tokenizer_config.json CHANGED
@@ -49,6 +49,11 @@
49
  "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 %}",
50
  "clean_up_tokenization_spaces": false,
51
  "eos_token": "</s>",
 
 
 
 
 
52
  "legacy": true,
53
  "max_length": null,
54
  "model_max_length": 1000000000000000019884624838656,
@@ -61,5 +66,6 @@
61
  "spaces_between_special_tokens": false,
62
  "tokenizer_class": "LlamaTokenizer",
63
  "unk_token": "<unk>",
64
- "use_default_system_prompt": false
 
65
  }
 
49
  "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 %}",
50
  "clean_up_tokenization_spaces": false,
51
  "eos_token": "</s>",
52
+ "extra_special_tokens": {
53
+ "image_token": "<image>",
54
+ "video_token": "<video>"
55
+ },
56
+ "image_token": "<image>",
57
  "legacy": true,
58
  "max_length": null,
59
  "model_max_length": 1000000000000000019884624838656,
 
66
  "spaces_between_special_tokens": false,
67
  "tokenizer_class": "LlamaTokenizer",
68
  "unk_token": "<unk>",
69
+ "use_default_system_prompt": false,
70
+ "video_token": "<video>"
71
  }