Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/model_support.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
- [project-baize/baize-v2-7b](https://huggingface.co/project-baize/baize-v2-7b)
- [Qwen/Qwen-7B-Chat](https://huggingface.co/Qwen/Qwen-7B-Chat)
- [rishiraj/CatPPT](https://huggingface.co/rishiraj/CatPPT)
- [tenyx/TenyxChat-7B-v1](https://huggingface.co/tenyx/TenyxChat-7B-v1)
- [TinyLlama/TinyLlama-1.1B-Chat-v1.0](https://huggingface.co/TinyLlama/TinyLlama-1.1B-Chat-v1.0)
- [Salesforce/codet5p-6b](https://huggingface.co/Salesforce/codet5p-6b)
- [StabilityAI/stablelm-tuned-alpha-7b](https://huggingface.co/stabilityai/stablelm-tuned-alpha-7b)
Expand Down
10 changes: 10 additions & 0 deletions fastchat/conversation.py
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,16 @@ def get_conv_template(name: str) -> Conversation:
)
)

# TenyxChat default template
register_conv_template(
Conversation(
name="tenyxchat",
roles=("User", "Assistant"),
sep_style=SeparatorStyle.FALCON_CHAT,
sep="<|end_of_turn|>",
)
)

# Deepseek code default template
register_conv_template(
Conversation(
Expand Down
11 changes: 11 additions & 0 deletions fastchat/model/model_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,16 @@ def get_default_conv_template(self, model_path: str) -> Conversation:
return get_conv_template("openchat_3.5")


class TenyxChatAdapter(BaseModelAdapter):
"""The model adapter for TenyxChat (e.g. tenyx/TenyxChat-7B-v1)"""

def match(self, model_path: str):
return "tenyxchat" in model_path.lower()

def get_default_conv_template(self, model_path: str) -> Conversation:
return get_conv_template("tenyxchat")


class PythiaAdapter(BaseModelAdapter):
"""The model adapter for any EleutherAI/pythia model"""

Expand Down Expand Up @@ -2119,6 +2129,7 @@ def get_default_conv_template(self, model_path: str) -> Conversation:
register_model_adapter(OasstPythiaAdapter)
register_model_adapter(OasstLLaMAAdapter)
register_model_adapter(OpenChat35Adapter)
register_model_adapter(TenyxChatAdapter)
register_model_adapter(StableLMAdapter)
register_model_adapter(BaizeAdapter)
register_model_adapter(RwkvAdapter)
Expand Down
7 changes: 7 additions & 0 deletions fastchat/model/model_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,13 @@ def get_model_info(name: str) -> ModelInfo:
"an open model fine-tuned on Mistral-7B using C-RLFT",
)

register_model_info(
["tenyxchat-7b-v1"],
"TenyxChat-7B",
"https://huggingface.co/tenyx/TenyxChat-7B-v1",
"an open model DPO trained on top of OpenChat-3.5 using Tenyx fine-tuning",
)

register_model_info(
["zephyr-7b-beta", "zephyr-7b-alpha"],
"Zephyr",
Expand Down