Skip to content

Commit

Permalink
Update predict.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ftgreat authored Oct 20, 2023
1 parent 5423044 commit 636bf34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flagai/model/aquila2_hf/predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ def predict(model, text, tokenizer=None,
template_map = {"AquilaChat2-7B": "aquila-v1",
"AquilaChat2-34B": "aquila-legacy",
"AquilaChat2-7B-16K": "aquila",
"AquilaChat2-34B-16K": "aquila-v1"}
"AquilaChat2-34B-16K": "aquila"}
if not convo_template:
convo_template=template_map.get(model_name, "aquila-chat")

Expand Down

0 comments on commit 636bf34

Please sign in to comment.