error when do python3 run_squad.py
See original GitHub issueHello, I am newbie of pytorch-pretrained-Bert. After successfully converted from init-checkpoint of tensorflow to pytorch bin, I found an error when I do run_squad. Guessing I should’ve included some configuration ahead, could anyone can help? See below.
File "run_squad.py", line 37, in <module>
from pytorch_pretrained_bert.file_utils import PYTORCH_PRETRAINED_BERT_CACHE, WEIGHTS_NAME, CONFIG_NAME
ImportError: No module named pytorch_pretrained_bert.file_utils
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:13 (6 by maintainers)
Top Results From Across the Web
why run "python run_squad.py" doesn't work? - Stack Overflow
3, when I use "--do_train True" as following code, the error message is "run_squad.py: error: unrecognized arguments: True": !python ...
Read more >Custom SQuAD2.0 dataset gives an error when using run_qa ...
Hello, I am trying to follow the PyTorch Question Answering example. However, when running the run_qa.py script using my own (Dutch ...
Read more >torch distributed launch - You.com | The Search Engine You Control
python -m torch.distributed.run --standalone --nnodes=1 ... distributed training if errors (e.g., out-of-memory) are expected or if resources can join and ...
Read more >Visualizing attention zones in machine reading ...
Machine reading comprehension (MRC) is a task to achieve such goals, ... Our experiments are carried out under the Python 3.7.3 environment, ......
Read more >implementation of bert based machine learning model to ...
Bert is a deep learning model which is pretrained on Wikipedia text corpse ... Hugging Face Transformers Python Package-(V3.5.1).
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@YanZhangADS
You can install from source with this command below
Actually, we’ll wait for the merge of #506.
In the meantime you can install from source and it should work.