Skip to content

运行BERT预训练时报错 #11

Open
@klmuty

Description

@klmuty

具体报错如下:
(
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: ''

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions