Skip to content

Commit

Permalink
lowercase
Browse files Browse the repository at this point in the history
  • Loading branch information
samhavens committed Aug 17, 2023
1 parent 1c0cb05 commit be03263
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/inference/hf_chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -334,9 +334,9 @@ def main(args: Namespace) -> None:

# Chat format
model_name = model.config.model_type
if 'llama2' in model_name:
if 'llama2' in model_name.lower():
chat_format = Llama2ChatFormatter(system=args.system_prompt)
elif 'mpt' in model_name:
elif 'mpt' in model_name.lower():
chat_format = ChatMLFormatter(system=args.system_prompt)
else:
chat_format = ChatFormatter(system=args.system_prompt,
Expand Down

0 comments on commit be03263

Please sign in to comment.