Text Generation
Transformers
PyTorch
Thai
English
llama
conversational
text-generation-inference
Inference Endpoints
bol20162021 commited on
Commit
c766b8a
1 Parent(s): f88ebbd

Update tokenizer_config.json

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -0
tokenizer_config.json CHANGED
@@ -35,6 +35,7 @@
35
  "model_max_length": 1000000000000000019884624838656,
36
  "pad_token": null,
37
  "sp_model_kwargs": {},
 
38
  "spaces_between_special_tokens": false,
39
  "tokenizer_class": "LlamaTokenizer",
40
  "unk_token": "<unk>",
 
35
  "model_max_length": 1000000000000000019884624838656,
36
  "pad_token": null,
37
  "sp_model_kwargs": {},
38
+ "chat_template": "{% for message in messages %}\n{% if message['role'] == 'user' %}\n{{ '<|user|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'system' %}\n{{ '<|system|>\n' + message['content'] + eos_token }}\n{% elif message['role'] == 'assistant' %}\n{{ '<|assistant|>\n' + message['content'] + eos_token }}\n{% endif %}\n{% if loop.last and add_generation_prompt %}\n{{ '<|assistant|>' }}\n{% endif %}\n{% endfor %}",
39
  "spaces_between_special_tokens": false,
40
  "tokenizer_class": "LlamaTokenizer",
41
  "unk_token": "<unk>",