zRzRzRzRzRzRzR jinmingyi commited on
Commit
0991e79
1 Parent(s): a93f22e

Update tokenizer_config.json (#1)

Browse files

- Update tokenizer_config.json (7397f6a05312fc0b898ac6d5a06bd8597b1624b4)


Co-authored-by: Mingyi Jin <jinmingyi@users.noreply.huggingface.co>

Files changed (1) hide show
  1. tokenizer_config.json +3 -2
tokenizer_config.json CHANGED
@@ -1,12 +1,13 @@
1
  {
2
- "name_or_path": "THUDM/chatglm2-6b",
3
  "remove_space": false,
4
  "do_lower_case": false,
5
  "tokenizer_class": "ChatGLMTokenizer",
 
6
  "auto_map": {
7
  "AutoTokenizer": [
8
  "tokenization_chatglm.ChatGLMTokenizer",
9
  null
10
  ]
11
  }
12
- }
 
1
  {
2
+ "name_or_path": "THUDM/chatglm3-6b-128k",
3
  "remove_space": false,
4
  "do_lower_case": false,
5
  "tokenizer_class": "ChatGLMTokenizer",
6
+ "chat_template": "{% for message in messages %}{% if loop.first %}[gMASK]sop<|{{ message['role'] }}|> \n {{ message['content'] }}{% else %}<|{{ message['role'] }}|> \n {{ message['content'] }}{% endif %}{% endfor %}{% if add_generation_prompt %}<|assistant|>{% endif %}",
7
  "auto_map": {
8
  "AutoTokenizer": [
9
  "tokenization_chatglm.ChatGLMTokenizer",
10
  null
11
  ]
12
  }
13
+ }