Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行BERT预训练时报错 #11

Open
klmuty opened this issue Apr 25, 2023 · 0 comments
Open

运行BERT预训练时报错 #11

klmuty opened this issue Apr 25, 2023 · 0 comments

Comments

@klmuty
Copy link

klmuty commented Apr 25, 2023

具体报错如下:
(
MindSpore) [ma-user work]$ python run_pretrain.py --device_target Ascend --amp True --jit True --lr 2e-5 --warmup_steps 10000 --train_batch_size 256 --epochs 15 --save_steps 10000 --do_load_ckpt False --config config/bert_config_small.json
modelarts_true
INFO:root:Using MoXing-v2.0.1.rc0.ffd1c0c8-ffd1c0c8
INFO:root:Using OBS-Python-SDK-3.20.9.1
from path:
to path: /cache/data
Traceback (most recent call last):
File "run_pretrain.py", line 209, in
sync_data(data_url, local_data_path, threads=25)
File "/home/ma-user/work/src/moxing_adapter.py", line 59, in sync_data
mox.file.copy_parallel(from_path, to_path, threads=threads)
File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.7/site-packages/moxing/framework/file/file_io.py", line 2406, in copy_parallel
return copy(src_url, dst_url, atom=atom)
File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.7/site-packages/moxing/framework/util/runtime.py", line 259, in wrapper
return func(*args, **kwargs)
File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.7/site-packages/moxing/framework/file/file_io.py", line 329, in wrapper
return func(*args, **kwargs)
File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.7/site-packages/moxing/framework/file/file_io.py", line 2039, in copy
shutil.copyfile(src_object_key, dst_object_key)
File "/home/ma-user/anaconda3/envs/MindSpore/lib/python3.7/shutil.py", line 120, in copyfile
with open(src, 'rb') as fsrc:
FileNotFoundError: [Errno 2] No such file or directory: ''

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant