Add "chat_template" to tokenizer_config.json

#2
Files changed (1) hide show
  1. tokenizer_config.json +1 -0
tokenizer_config.json CHANGED
@@ -75,6 +75,7 @@
75
  ]
76
  },
77
  "bos_token": "<s>",
 
78
  "clean_up_tokenization_spaces": false,
79
  "cls_token": "<cls>",
80
  "eos_token": "</s>",
 
75
  ]
76
  },
77
  "bos_token": "<s>",
78
+ "chat_template": "{{ '以下はタスクを説明する指示で、文脈を説明した入力とペアになっています。要求を適切に補完するよう応答を書いてください。\n\n' }}{% for message in messages %}{% if message['role'] == 'system' %}{{ '### 指示:\n' + message['content'].strip() + '\n\n' }}{% elif message['role'] == 'user' %}{{ '### 入力:\n' + message['content'].strip() + '\n\n' }}{% elif message['role'] == 'assistant' %}{{ '### 応答:\n' + message['content'].strip() + '\n\n' }}{% endif %}{% endfor %}{{ '### 応答:\n' }}",
79
  "clean_up_tokenization_spaces": false,
80
  "cls_token": "<cls>",
81
  "eos_token": "</s>",