Safetensors
llama
nunonmg commited on
Commit
cd9ed37
1 Parent(s): fbfaca8

Update tokenizer_config.json

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -1
tokenizer_config.json CHANGED
@@ -2093,7 +2093,7 @@
2093
  }
2094
  },
2095
  "bos_token": "<s>",
2096
- "chat_template": "{%- set system_message = namespace(content='') -%}{%- if messages[0]['role'] == 'system' -%}{%- set system_message.content = messages[0]['content'] -%}{%- endif -%}<|im_start|>system\n{{ system_message.content }}<|im_end|>\n{% for message in messages -%}{%- if message['role'] != 'system' %}<|im_start|>{{ message['role'] }}\n{{ message['content'] }}<|im_end|>\n{% endif -%}{%- endfor -%}",
2097
  "clean_up_tokenization_spaces": false,
2098
  "eos_token": "<|im_end|>",
2099
  "legacy": true,
 
2093
  }
2094
  },
2095
  "bos_token": "<s>",
2096
+ "chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}<|im_start|>system\n{% if messages[0]['role'] == 'system' %}{{ messages[0]['content'] }}{% endif %}<|im_end|>\n{% for message in messages %}{% if message['role'] != 'system' %}<|im_start|>{{ message['role'] }}\n{{ message['content'] }}<|im_end|>\n{% endif %}{% endfor %}{% if add_generation_prompt %}<|im_start|>assistant\n{% endif %}",
2097
  "clean_up_tokenization_spaces": false,
2098
  "eos_token": "<|im_end|>",
2099
  "legacy": true,