huggingface / huggingface/naacl_transfer_learning_tutorial

ImportError: cannot import name 'cached_path'

未关闭
#2 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
725
派生
118
PR 合并指标
30 天内没有已合并 PR

描述

ub16c9@ub16c9-gpu:/media/ub16c9/fcd84300-9270-4bbd-896a-5e04e79203b7/ub16_prj/naacl_transfer_learning_tutorial$ python3.6 pretraining_train.py
Traceback (most recent call last):
File "pretraining_train.py", line 21, in
from utils import get_and_tokenize_dataset, average_distributed_scalar, add_logging_and_checkpoint_saving, WEIGHTS_NAME
File "/media/ub16c9/fcd84300-9270-4bbd-896a-5e04e79203b7/ub16_prj/naacl_transfer_learning_tutorial/utils.py", line 16, in
from pytorch_pretrained_bert import cached_path
ImportError: cannot import name 'cached_path'

贡献指南

这个仓库没有索引到贡献指南

调研方向

Run python3.6 pretraining_train.py and inspect utils.py line 16, along with the installed pytorch_pretrained_bert package, to determine why cached_path cannot be imported. Done means the tutorial starts past this import error.

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
machine-learning
Issue 类型
缺陷
难度
2/5
预计耗时
1-3 小时
活跃度
停滞
描述清晰度
需要澄清
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。