Update embedding_model.py
Browse files- embedding_model.py +1 -1
embedding_model.py
CHANGED
|
@@ -55,7 +55,7 @@ class EmbeddingModel(models.Transformer):
|
|
| 55 |
|
| 56 |
def _load_model(self, model_name_or_path, config, cache_dir, backend, **model_args) -> None:
|
| 57 |
"""Loads the transformer model"""
|
| 58 |
-
|
| 59 |
|
| 60 |
def get_config_dict(self) -> dict[str, str]:
|
| 61 |
return {"model_name_or_path": self.model_name_or_path}
|
|
|
|
| 55 |
|
| 56 |
def _load_model(self, model_name_or_path, config, cache_dir, backend, **model_args) -> None:
|
| 57 |
"""Loads the transformer model"""
|
| 58 |
+
self.auto_model = AutoModel.from_pretrained(model_name_or_path, config=config, cache_dir=cache_dir, trust_remote_code=True, **model_args)
|
| 59 |
|
| 60 |
def get_config_dict(self) -> dict[str, str]:
|
| 61 |
return {"model_name_or_path": self.model_name_or_path}
|