Skip to content

Commit

Permalink
Support Qwen1.5 [release]
Browse files Browse the repository at this point in the history
  • Loading branch information
AjayP13 committed Apr 4, 2024
1 parent 792ce1c commit a3a22b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "DataDreamer"
version = "0.26.0"
version = "0.27.0"
description = "Prompt. Generate Synthetic Data. Train & Align Models."
license = "MIT"
authors= [
Expand Down
2 changes: 2 additions & 0 deletions src/llms/_chat_prompt_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ def _model_name_to_chat_prompt_template_type( # noqa: C901
chat_prompt_template_type = "chatml_system"
elif all(fragment in model_name_lower for fragment in ["qwen-", "-chat"]):
chat_prompt_template_type = "chatml_system"
elif all(fragment in model_name_lower for fragment in ["qwen1.5-", "-chat"]):
chat_prompt_template_type = "chatml_system"
elif all(fragment in model_name_lower for fragment in ["dolphin-", "-mistral"]):
chat_prompt_template_type = "chatml_system"
elif all(
Expand Down

0 comments on commit a3a22b6

Please sign in to comment.