Skip to content

Commit

Permalink
Make E5 adapter more restrict to reduce mismatch (lm-sys#2381)
Browse files Browse the repository at this point in the history
  • Loading branch information
merrymercy authored Sep 7, 2023
1 parent 1d703b2 commit 56744d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastchat/model/model_adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -1405,7 +1405,7 @@ class E5Adapter(BaseModelAdapter):
use_fast_tokenizer = False

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

def load_model(self, model_path: str, from_pretrained_kwargs: dict):
revision = from_pretrained_kwargs.get("revision", "main")
Expand Down

0 comments on commit 56744d1

Please sign in to comment.