Fix after QWen support (#82)
This commit is contained in:
1 parent
63e97e5e4c
commit
94e05770db
4 files changed
+46
-43
No files matched your search
@@ -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")
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user