Skip to content

Commit

Permalink
Update hf_adapter.py
Browse files Browse the repository at this point in the history
Signed-off-by: gitworkflows <[email protected]>
  • Loading branch information
gitworkflows authored Oct 12, 2024
1 parent fe09598 commit 2a80971
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions gptdb/model/adapter/hf_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -370,10 +370,15 @@ class Qwen2Adapter(QwenAdapter):
support_8bit: bool = True

def do_match(self, lower_model_name_or_path: Optional[str] = None):
return (
lower_model_name_or_path
and "qwen2" in lower_model_name_or_path
and "instruct" in lower_model_name_or_path
return lower_model_name_or_path and (
(
"qwen2" in lower_model_name_or_path
and "instruct" in lower_model_name_or_path
)
or (
"qwen2.5" in lower_model_name_or_path
and "instruct" in lower_model_name_or_path
)
)


Expand Down

0 comments on commit 2a80971

Please sign in to comment.