Skip to content

Commit 42647ab

Browse files
authored
Bug
1 parent cb09d93 commit 42647ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def from_name(cls, name: str):
4444
if name in transformer_configs:
4545
return cls(**transformer_configs[name])
4646
# fuzzy search
47-
config = [config for config in transformer_configs if config.lower() in str(name).lower() or config.lower() in str(name).lower()]
47+
config = [config for config in transformer_configs if config.lower() in str(name).lower()]
4848

4949
# We may have two or more configs matched (e.g. "7B" and "Mistral-7B"). Find the best config match,
5050
# take longer name (as it have more symbols matched)

0 commit comments

Comments
 (0)