mirror of https://github.com/InternLM/InternLM
fix ci
parent
2520edb795
commit
c46861f986
|
@ -515,7 +515,7 @@ class LocalClient(StorageClient):
|
||||||
try:
|
try:
|
||||||
if not os.path.exists(fp_dirname):
|
if not os.path.exists(fp_dirname):
|
||||||
os.makedirs(fp_dirname, exist_ok=True)
|
os.makedirs(fp_dirname, exist_ok=True)
|
||||||
except:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
torch.save(saved_obj, fp, **kwargs)
|
torch.save(saved_obj, fp, **kwargs)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue