-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is the code still able to run? #9
Comments
Hi @bing0037 I haven't run this code in a while but it used to work. My first guess would be probably an incompatibility with a newer version of pytorch. Can you try again in an environment with pytorch 1.0 or 1.1? If that doesn't solve it then I'm not too sure... I wasn't using DataParallel in the code so I'm not sure why it would show up in the eror message... let me know how changing the pytorch version goes. |
I met the same problem today and solved it by adding the following code block in pytorch-pretrained-BERT/examples/run_classifier.py
Hope it helps. Reference: |
Hi @caidongqi I tried changing the run_classifier.py file as you have done. But ran into the same errors as @bing0037.
Any ideas or solutions to this? |
Hi,
I am trying to reproduce your result of BERT. I followed the Prerequisite:
But got this error:
Any idea or suggestion?
The text was updated successfully, but these errors were encountered: