jondurbin commited on
Commit
07f4f3d
1 Parent(s): 36e5702

Update tokenizer_config.json

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +2 -1
tokenizer_config.json CHANGED
@@ -43,5 +43,6 @@
43
  "spaces_between_special_tokens": false,
44
  "tokenizer_class": "LlamaTokenizer",
45
  "unk_token": "<|unk|>",
46
- "use_default_system_prompt": false
 
47
  }
 
43
  "spaces_between_special_tokens": false,
44
  "tokenizer_class": "LlamaTokenizer",
45
  "unk_token": "<|unk|>",
46
+ "use_default_system_prompt": false,
47
+ "chat_template": "{%- for idx in range(0, messages|length) -%}\n{%- if messages[idx]['role'] == 'user' -%}\n{%- if idx > 1 -%}\n{{- bos_token + '[INST] ' + messages[idx]['content'] + ' [/INST]' -}}\n{%- else -%}\n{{- messages[idx]['content'] + ' [/INST]' -}}\n{%- endif -%}\n{% elif messages[idx]['role'] == 'system' %}\n{{- '[INST] <<SYS>>\\n' + messages[idx]['content'] + '\\n<</SYS>>\\n\\n' -}}\n{%- elif messages[idx]['role'] == 'assistant' -%}\n{{- ' ' + messages[idx]['content'] + ' ' + eos_token -}}\n{% endif %}\n{% endfor %}"
48
  }