Dampfinchen commited on
Commit
84bed65
1 Parent(s): 39643c4

add chat template

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -0
tokenizer_config.json CHANGED
@@ -8005,6 +8005,7 @@
8005
  }
8006
  },
8007
  "bos_token": "<s>",
 
8008
  "clean_up_tokenization_spaces": false,
8009
  "eos_token": "<|im_end|>",
8010
  "model_max_length": 1000000000000000019884624838656,
 
8005
  }
8006
  },
8007
  "bos_token": "<s>",
8008
+ "chat_template": "{% if not add_generation_prompt is defined %}{% set add_generation_prompt = false %}{% endif %}{% for message in messages %}{{'<|im_start|>' + message['role'] + '\n' + message['content'] + '<|im_end|>' + '\n'}}{% endfor %}{% if add_generation_prompt %}{{ '<|im_start|>assistant\n' }}{% endif %}",
8009
  "clean_up_tokenization_spaces": false,
8010
  "eos_token": "<|im_end|>",
8011
  "model_max_length": 1000000000000000019884624838656,