Text Generation
Transformers
Safetensors
jamba
conversational
custom_code
Inference Endpoints
ptrdvn commited on
Commit
0ae11fa
1 Parent(s): f3a166d

Update tokenizer_config.json

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -0
tokenizer_config.json CHANGED
@@ -38,6 +38,7 @@
38
  "bos_token": "<|startoftext|>",
39
  "clean_up_tokenization_spaces": false,
40
  "eos_token": "<|endoftext|>",
 
41
  "model_max_length": 1000000000000000019884624838656,
42
  "pad_token": "<|pad|>",
43
  "spaces_between_special_tokens": false,
 
38
  "bos_token": "<|startoftext|>",
39
  "clean_up_tokenization_spaces": false,
40
  "eos_token": "<|endoftext|>",
41
+ "chat_template": "{% for message in messages %}{% if loop.first and messages[0]['role'] != 'system' %}{{ '<|im_start|>system\nYou are a helpful assistant<|im_end|>\n' }}{% endif %}{{'<|im_start|>' + message['role'] + '\n' + message['content']}}{% if (loop.last and add_generation_prompt) or not loop.last %}{{ '<|im_end|>' + '\n'}}{% endif %}{% endfor %}{% if add_generation_prompt and messages[-1]['role'] != 'assistant' %}{{ '<|im_start|>assistant\n' }}{% endif %}",
42
  "model_max_length": 1000000000000000019884624838656,
43
  "pad_token": "<|pad|>",
44
  "spaces_between_special_tokens": false,