Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Yi support #2723

Merged
merged 6 commits into from
Nov 23, 2023
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fix
  • Loading branch information
infwinston committed Nov 23, 2023
commit 937249fd53bc07af95536fcd85937f7c7121b21c
4 changes: 2 additions & 2 deletions fastchat/model/model_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1889,10 +1889,10 @@ class YiAdapter(BaseModelAdapter):
"""The model adapter for Yi models"""

def match(self, model_path: str):
return "yi" in model_path.lower()
return "yi-34b-chat" in model_path.lower()

def get_default_conv_template(self, model_path: str) -> Conversation:
return et_conv_template("Yi-34b-chat")
return get_conv_template("Yi-34b-chat")


# Note: the registration order matters.
Expand Down
Loading