pabloce commited on
Commit
bb9e162
·
verified ·
1 Parent(s): 38a12a0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -96,12 +96,12 @@ def get_messages_formatter_type(model_name):
96
  return MessagesFormatterType.LLAMA_3
97
  elif "Mistral" in model_name:
98
  return MessagesFormatterType.MISTRAL
99
- elif "Einstein-v6-7B" in model_name:
100
- return MessagesFormatterType.MISTRAL
101
  elif "Phi" in model_name:
102
  return MessagesFormatterType.PHI_3
103
  else:
104
- raise ValueError(f"Unsupported model: {model_name}")
105
 
106
 
107
  def write_message_to_user():
 
96
  return MessagesFormatterType.LLAMA_3
97
  elif "Mistral" in model_name:
98
  return MessagesFormatterType.MISTRAL
99
+ elif "Einstein-v6-7B" in model_name or "dolphin" in model_name:
100
+ return MessagesFormatterType.CHATML
101
  elif "Phi" in model_name:
102
  return MessagesFormatterType.PHI_3
103
  else:
104
+ return MessagesFormatterType.CHATML
105
 
106
 
107
  def write_message_to_user():