File size: 2,142 Bytes
efbeef8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
{
  "add_prefix_space": false,
  "added_tokens_decoder": {
    "151643": {
      "content": "<|endoftext|>",
      "lstrip": false,
      "normalized": false,
      "rstrip": false,
      "single_word": false,
      "special": true
    },
    "151644": {
      "content": "<|im_start|>",
      "lstrip": false,
      "normalized": false,
      "rstrip": false,
      "single_word": false,
      "special": true
    },
    "151645": {
      "content": "<|im_end|>",
      "lstrip": false,
      "normalized": false,
      "rstrip": false,
      "single_word": false,
      "special": true
    }
  },
  "additional_special_tokens": [
    "<|im_start|>",
    "<|im_end|>"
  ],
  "bos_token": "<|im_end|>",
  "chat_template": "\n{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful assistant. Here are some examples:\nQuestion: What is the capital of France?\n\nOptions:\nA. Berlin\nB. Madrid\nC. Paris\nD. Rome\n\nAnswer:CQuestion: Who wrote To Kill a Mockingbird?\n\nOptions:\nA. Harper Lee\nB. J.K. Rowling\nC. Ernest Hemingway\nD. Mark Twain\n\nAnswer:AQuestion: What is the chemical symbol for water?\n\nOptions:\nA. H2O\nB. CO2\nC. O2\nD. NaCl\n\nAnswer:AQuestion: What is the largest planet in our solar system?\n\nOptions:\nA. Earth\nB. Mars\nC. Saturn\nD. Jupiter\n\nAnswer:DQuestion: Who was the first President of the United States?\n\nOptions:\nA. Abraham Lincoln\nB. George Washington\nC. Thomas Jefferson\nD. John Adams\n\nAnswer:BNow, here is your multiple choice question:\n.<|im_end|>\n' }}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}\n",
  "clean_up_tokenization_spaces": false,
  "eos_token": "<|im_end|>",
  "errors": "replace",
  "max_length": 32768,
  "model_max_length": 32768,
  "pad_token": "<|im_end|>",
  "return_tensors": "pt",
  "split_special_tokens": false,
  "stride": 0,
  "tokenizer_class": "Qwen2Tokenizer",
  "truncation_side": "left",
  "truncation_strategy": "longest_first",
  "unk_token": null
}