mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-12-15 03:10:35 +08:00
@@ -109,15 +109,15 @@ def get_model_path(model_name: str) -> str:
|
||||
use_modelscope()
|
||||
and path_dict.get(DownloadSource.MODELSCOPE)
|
||||
and model_path == path_dict.get(DownloadSource.DEFAULT)
|
||||
): # replace path
|
||||
): # replace hf path with ms path
|
||||
model_path = path_dict.get(DownloadSource.MODELSCOPE)
|
||||
|
||||
if (
|
||||
use_openmind()
|
||||
and path_dict.get(DownloadSource.MODELERS)
|
||||
and path_dict.get(DownloadSource.OPENMIND)
|
||||
and model_path == path_dict.get(DownloadSource.DEFAULT)
|
||||
): # replace path
|
||||
model_path = path_dict.get(DownloadSource.MODELERS)
|
||||
): # replace hf path with om path
|
||||
model_path = path_dict.get(DownloadSource.OPENMIND)
|
||||
|
||||
return model_path
|
||||
|
||||
|
||||
Reference in New Issue
Block a user