Skip to content

Commit 77afe74

Browse files
committed
连接失败兜底
1 parent 2caafc0 commit 77afe74

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fastdeploy/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,7 @@ def retrive_model_from_server(model_name_or_path, revision="master"):
513513
except Exception:
514514
if os.path.exists(local_path):
515515
llm_logger.error(
516-
"Failed to connect to aistudio, but detected that the model directory exists. Attempting to start."
516+
f"Failed to connect to aistudio, but detected that the model directory {local_path} exists. Attempting to start."
517517
)
518518
return local_path
519519
else:
@@ -536,7 +536,7 @@ def retrive_model_from_server(model_name_or_path, revision="master"):
536536
except Exception:
537537
if os.path.exists(local_path):
538538
llm_logger.error(
539-
"Failed to connect to modelscope, but detected that the model directory exists. Attempting to start."
539+
f"Failed to connect to modelscope, but detected that the model directory {local_path} exists. Attempting to start."
540540
)
541541
return local_path
542542
else:

0 commit comments

Comments
 (0)