Fu01978 commited on
Commit
e7577d5
·
verified ·
1 Parent(s): ba6f890

Upload tokenizer

Browse files
Files changed (3) hide show
  1. chat_template.jinja +6 -0
  2. tokenizer.json +0 -0
  3. tokenizer_config.json +21 -0
chat_template.jinja ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system
2
+ You are a helpful AI assistant named SmolLM, trained by Hugging Face<|im_end|>
3
+ ' }}{% endif %}{{'<|im_start|>' + message['role'] + '
4
+ ' + message['content'] + '<|im_end|>' + '
5
+ '}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant
6
+ ' }}{% endif %}
tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
tokenizer_config.json ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "backend": "tokenizers",
4
+ "bos_token": "<|im_start|>",
5
+ "clean_up_tokenization_spaces": false,
6
+ "eos_token": "<|im_end|>",
7
+ "extra_special_tokens": [
8
+ "<|im_start|>",
9
+ "<|im_end|>"
10
+ ],
11
+ "is_local": true,
12
+ "max_length": null,
13
+ "model_max_length": 8192,
14
+ "pad_to_multiple_of": null,
15
+ "pad_token": "<|im_start|>",
16
+ "pad_token_type_id": 0,
17
+ "padding_side": "left",
18
+ "tokenizer_class": "TokenizersBackend",
19
+ "unk_token": "<|endoftext|>",
20
+ "vocab_size": 49152
21
+ }
Free AI Image Generator No sign-up. Instant results. Open Now