Text Generation
Transformers
Safetensors
llama
code
conversational
Eval Results
text-generation-inference
Inference Endpoints
wyt2000 commited on
Commit
bb6e9c5
1 Parent(s): 435e817

add chat_template.

Browse files
Files changed (1) hide show
  1. tokenizer_config.json +1 -0
tokenizer_config.json CHANGED
@@ -66,6 +66,7 @@
66
  "▁<EOT>"
67
  ],
68
  "bos_token": "<s>",
 
69
  "clean_up_tokenization_spaces": false,
70
  "eos_token": "</s>",
71
  "eot_token": "▁<EOT>",
 
66
  "▁<EOT>"
67
  ],
68
  "bos_token": "<s>",
69
+ "chat_template": "{{bos_token}}{{'You are an exceptionally intelligent coding assistant that consistently delivers accurate and reliable responses to user instructions.\n\n'}}\n{%- for message in messages %}\n {%- if message['role'] == 'system' %}\n {{ raise_exception('System messages are not allowed in this template.') }}\n {%- else %}\n {%- if message['role'] == 'user' %}\n{{'@@ Instruction\n' + message['content'] + '\n\n'}}\n {%- else %}\n{{'@@ Response\n' + message['content'] + eos_token + '\n\n'}}\n {%- endif %}\n {%- endif %}\n{%- endfor %}\n{{'@@ Response\n'}}",
70
  "clean_up_tokenization_spaces": false,
71
  "eos_token": "</s>",
72
  "eot_token": "▁<EOT>",