Skip to content

Commit

Permalink
better match for deepseek
Browse files Browse the repository at this point in the history
  • Loading branch information
AllentDan committed Mar 11, 2024
1 parent c7d83fd commit b5e727e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lmdeploy/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -826,7 +826,8 @@ def match(cls, model_path: str) -> Optional[str]:
Args:
model_path (str): the model path used for matching.
"""
if 'deepseek' in model_path.lower():
path = model_path.lower()
if 'deepseek' in path and 'chat' in path:
return 'deepseek'


Expand Down

0 comments on commit b5e727e

Please sign in to comment.