Fix after QWen support (#82)

This commit is contained in:
Lianmin Zheng authored and GitHub committed 2024-01-22 21:17:05 -08:00
1 parent 63e97e5e4c
commit 94e05770db
4 files changed
+46 -43

No files matched your search

+4 -1
View File
@@ -168,7 +168,10 @@ def match_llama2_chat(model_path: str):
@register_chat_template_matching_function
def match_chat_ml(model_path: str):
if "tinyllama" in model_path.lower():
model_path = model_path.lower()
if "tinyllama" in model_path:
return get_chat_template("chatml")
if "qwen" in model_path and "chat" in model_path:
return get_chat_template("chatml")