Fix after QWen support (#82)
This commit is contained in:
@@ -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