#394 训练任务下载bert报错

Closed
created 1 year ago by koreyoshiw · 2 comments
<!-- 为了更有效地识别与解决您的问题,请尽可能的补充如下信息 --> ### 问题描述 在调试任务运行正常,训练任务报错 No such file or directory: '/root/.cache/huggingface/hub/models--bert-base-cased/refs/main' ### 相关环境(GPU/NPU) gpu ### 相关集群(启智/智算) ### 任务类型(调试/训练/推理) 训练任务 ### 任务名 korey202212242395937 ### 日志说明或问题截图 Traceback (most recent call last): File "/code/train.py", line 146, in train(configs) File "/code/train.py", line 44, in train tokenizer = BertTokenizer.from_pretrained('bert-base-cased', do_lower_case=False) File "/opt/conda/lib/python3.7/site-packages/transformers/tokenization_utils_base.py", line 1750, in from_pretrained _commit_hash=commit_hash, File "/opt/conda/lib/python3.7/site-packages/transformers/utils/hub.py", line 420, in cached_file local_files_only=local_files_only, File "/opt/conda/lib/python3.7/site-packages/huggingface_hub/file_download.py", line 1136, in hf_hub_download with open(ref_path) as f: FileNotFoundError: [Errno 2] No such file or directory: '/root/.cache/huggingface/hub/models--bert-base-cased/refs/main' ### 期望的解决方案或建议 这一步本应该下载bert模型,调试任务可以正常下载,训练任务报错
avadesian commented 1 year ago
Owner
已反馈运维查看网络环境
avadesian commented 1 year ago
Owner
推荐使用智算网络的计算资源
liuzx closed this issue 1 month ago
Sign in to join this conversation.
No Milestone
No Assignees
2 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.