We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb09d93 commit 42647abCopy full SHA for 42647ab
model.py
@@ -44,7 +44,7 @@ def from_name(cls, name: str):
44
if name in transformer_configs:
45
return cls(**transformer_configs[name])
46
# fuzzy search
47
- config = [config for config in transformer_configs if config.lower() in str(name).lower() or config.lower() in str(name).lower()]
+ config = [config for config in transformer_configs if config.lower() in str(name).lower()]
48
49
# We may have two or more configs matched (e.g. "7B" and "Mistral-7B"). Find the best config match,
50
# take longer name (as it have more symbols matched)
0 commit comments