add logger for loading local model
This commit is contained in:
parent
11f932d4b3
commit
d487b4df7d
@ -62,6 +62,8 @@ class LocalEmbeddingModel(FlagModel, BaseEmbeddingModel):
|
|||||||
|
|
||||||
if os.path.exists(_path := os.path.join(os.getenv("MODEL_DIR"), self.model)):
|
if os.path.exists(_path := os.path.join(os.getenv("MODEL_DIR"), self.model)):
|
||||||
self.model = _path
|
self.model = _path
|
||||||
|
else:
|
||||||
|
logger.warning(f"Local model `{info['name']}` not found in `{self.model}`, using `{info['name']}`")
|
||||||
|
|
||||||
logger.info(f"Loading local model `{info['name']}` from `{self.model}` with device `{config.device}`")
|
logger.info(f"Loading local model `{info['name']}` from `{self.model}` with device `{config.device}`")
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user