fix for missing config
This commit is contained in:
parent
73b39cdd4a
commit
424ca79bbd
1 changed files with 1 additions and 0 deletions
|
|
@ -637,6 +637,7 @@ class FastSentenceTransformer(FastModel):
|
|||
|
||||
transformers4 = Version(transformers.__version__).major < 5
|
||||
model_type = ""
|
||||
config = None
|
||||
try:
|
||||
config = AutoConfig.from_pretrained(
|
||||
model_name, token = token, trust_remote_code = trust_remote_code
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue