mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-08-24 23:02:49 +08:00
parent
ab66ae8cd2
commit
ba9aa7e2aa
@ -39,7 +39,11 @@ def get_save_dir(*paths: str) -> os.PathLike:
|
|||||||
r"""
|
r"""
|
||||||
Gets the path to saved model checkpoints.
|
Gets the path to saved model checkpoints.
|
||||||
"""
|
"""
|
||||||
paths = (path.replace(os.path.sep, "").replace(" ", "").strip() for path in paths)
|
if os.path.sep in paths[-1]:
|
||||||
|
logger.warning("Found complex path, some features may be not available.")
|
||||||
|
return paths[-1]
|
||||||
|
|
||||||
|
paths = (path.replace(" ", "").strip() for path in paths)
|
||||||
return os.path.join(DEFAULT_SAVE_DIR, *paths)
|
return os.path.join(DEFAULT_SAVE_DIR, *paths)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user