Skip to content
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
Apply suggestions from code review
  • Loading branch information
merrymercy authored Nov 26, 2023
commit 695f5988118ccbcaf12d1c013c28ea9d8e96d7e4
1 change: 0 additions & 1 deletion fastchat/model/model_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1916,7 +1916,6 @@ class YiAdapter(BaseModelAdapter):
"""The model adapter for Yi models"""

def match(self, model_path: str):
# use "yi-" instead of "yi" to support Yi Series Models, because "yi" is usually a sub-string of certain words.
return "yi-" in model_path.lower() and "chat" in model_path.lower()

def get_default_conv_template(self, model_path: str) -> Conversation:
Expand Down