mirror of
https://github.com/hiyouga/LLaMA-Factory.git
synced 2025-10-14 23:58:11 +08:00
parent
4d3ffa2ec4
commit
6c3cd400b5
@ -152,6 +152,8 @@ def setup_fs(path, anon=False):
|
|||||||
fs = fsspec.filesystem("gcs", **storage_options)
|
fs = fsspec.filesystem("gcs", **storage_options)
|
||||||
else:
|
else:
|
||||||
raise ValueError(f"Unsupported protocol in path: {path}. Use 's3://' or 'gs://'")
|
raise ValueError(f"Unsupported protocol in path: {path}. Use 's3://' or 'gs://'")
|
||||||
|
if not fs.exists(path):
|
||||||
|
raise ValueError(f"Path does not exist: {path}")
|
||||||
return fs
|
return fs
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user