Text Generation
Transformers
PyTorch
English
llama
conversational
Eval Results
Inference Endpoints
text-generation-inference
ehartford commited on
Commit
54c5159
1 Parent(s): c4e02a3

Update tokenizer_config.json

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -0
tokenizer_config.json CHANGED
@@ -42,6 +42,7 @@
42
  }
43
  },
44
  "bos_token": "<|startoftext|>",
 
45
  "clean_up_tokenization_spaces": false,
46
  "eos_token": "<|im_end|>",
47
  "legacy": true,
 
42
  }
43
  },
44
  "bos_token": "<|startoftext|>",
45
+ "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 %}",
46
  "clean_up_tokenization_spaces": false,
47
  "eos_token": "<|im_end|>",
48
  "legacy": true,