torotoki mitmul commited on
Commit
3f2a13e
1 Parent(s): 266167a

Add "chat_template" to tokenizer_config.json (#2)

Browse files

- Add "chat_template" to tokenizer_config.json (8437c8db8865f6b13b8e73a8ab68b8cacec1bd13)
- Add assistant role (5d1946bb50efeae43d51003a43f40ac313625889)
- Update tokenizer_config.json (115ea9a671fa2fa617691d065563e22ef71ae160)
- Add assistant content to prompt (4dc99c7f552085f8c0baf07c6ab9245956f1b383)


Co-authored-by: Shunta Saito <mitmul@users.noreply.huggingface.co>

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>",