Skip to content
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

Masakhane Reverse Machine Learning translation notebook Training Issue #164

Open
RuanJohn opened this issue Aug 30, 2021 · 3 comments
Open

Comments

@RuanJohn
Copy link

I am trying to run the the starter revere training notebook and run into the following issue:

Everything seems to be working just fine, right up to when I want to train the model (the fourth cell from the bottom of the notebook), when I get the following error:

Traceback (most recent call last): File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main "__main__", mod_spec) File "/usr/lib/python3.7/runpy.py", line 85, in _run_code exec(code, run_globals) File "/content/joeynmt/joeynmt/__main__.py", line 3, in <module> from joeynmt.training import train File "/content/joeynmt/joeynmt/training.py", line 22, in <module> from torchtext.legacy.data import Dataset File "/usr/local/lib/python3.7/dist-packages/torchtext/__init__.py", line 5, in <module> from . import vocab File "/usr/local/lib/python3.7/dist-packages/torchtext/vocab.py", line 13, in <module> from torchtext._torchtext import ( ImportError: /usr/local/lib/python3.7/dist-packages/torchtext/_torchtext.so: undefined symbol: _ZN2at6detail10noopDeleteEPv

@bricksdont
Copy link

(Copying over my answer from Masakhane slack)

I think that the reason is that this notebook explicitly installs torch==1.8.0+cu101 . Joey itself now requires >torch-1.9.0 and Colab has torch-1.9.0+cu102 installed by default.

Temporary fixes:

a) If you already installed another version in your running Colab:

! pip install torch==1.9.0+cu102 -f https://download.pytorch.org/whl/torch_stable.html

b) If you boot up a new Colab: do not install version 1.8.0 of torch after installing joeynmt

@bricksdont
Copy link

Permanent fix: in the starter notebook the line that installs 1.8.0 explicitly should be removed.

@RuanJohn
Copy link
Author

Thank you @bricksdont

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants