Text Generation
Transformers
Safetensors
llama
text-generation-inference
Inference Endpoints
danielsteinigen commited on
Commit
0aaf3bb
·
verified ·
1 Parent(s): 53b7ab8

add default system prompt

Browse files
Files changed (1) hide show
  1. gptx_tokenizer.py +2 -1
gptx_tokenizer.py CHANGED
@@ -459,4 +459,5 @@ class SPTokenizer(HFGPTXTokenizer):
459
  self.chat_template = {
460
  lang: f"System: {sys_msg}" + "{{- '\\n'}}\n" + chat_template
461
  for lang, sys_msg in self.system_messages_by_lang.items()
462
- }
 
 
459
  self.chat_template = {
460
  lang: f"System: {sys_msg}" + "{{- '\\n'}}\n" + chat_template
461
  for lang, sys_msg in self.system_messages_by_lang.items()
462
+ }
463
+ self.chat_template['default'] = f"System: {self.system_messages_by_lang['EN']}" + "{{- '\\n'}}\n" + chat_template