naacl_transfer_learning_tutorial icon indicating copy to clipboard operation
naacl_transfer_learning_tutorial copied to clipboard

ImportError: cannot import name 'cached_path'

Open SeekPoint opened this issue 5 years ago • 1 comments

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'

SeekPoint avatar Jun 29 '19 14:06 SeekPoint

Maybe you should install the latest version of pytorch_pretrained_bert? pip install pytorch_pretrained_bert --upgrade

thomwolf avatar Jul 05 '19 09:07 thomwolf