question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error when do python3 run_squad.py

See original GitHub issue

Hello, 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:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

3reactions
yumerecommented, Apr 21, 2019

@YanZhangADS

You can install from source with this command below

git clone https://github.com/huggingface/pytorch-pretrained-BERT.git
cd pytorch-pretrained-BERT
python setup.py install
2reactions
thomwolfcommented, Apr 18, 2019

Actually, we’ll wait for the merge of #506.

In the meantime you can install from source and it should work.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found