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

error in torchtext when excuse <python visual-chatgpt.py> #25

Closed
K-tang-mkv opened this issue Mar 10, 2023 · 4 comments
Closed

error in torchtext when excuse <python visual-chatgpt.py> #25

K-tang-mkv opened this issue Mar 10, 2023 · 4 comments

Comments

@K-tang-mkv
Copy link

K-tang-mkv commented Mar 10, 2023

I run it on googlecolab, got python=3.9 and pip=23.0.1, when I run python visual-chatgpt.py, I got error like this below. It might be environmental pjromblen.
OSError: /usr/local/lib/python3.9/dist-packages/torchtext/lib/libtorchtext.so: undefined symbol: _ZN2at4_ops5zeros4callEN3c108ArrayRefINS2_6SymIntEEENS2_8optionalINS2_10ScalarTy peEEENS6_INS2_6LayoutEEENS6_INS2_6DeviceEEENS6_IbEE

@ZetangForward
Copy link
Contributor

Hi, it seems that the CUDA version of googlecolab mismatches with ours.
For more solution, NVIDIA/NeMo#3176 may help.

@rupeshs
Copy link
Contributor

rupeshs commented Mar 10, 2023

@K-tang-mkv Yes I tried to implement colab version but got OSError: /usr/local/lib/python3.9/dist-packages/torchtext/lib/libtorchtext.so .

@K-tang-mkv
Copy link
Author

K-tang-mkv commented Mar 10, 2023

@rupeshs

I solve this problem. The error happened because your torch and torchtext are not compatible, so try this pip install torch==1.9 torchtext=0.10 torchvision==0.10 torchaudio==0.9 and then it will be fine

@bro28
Copy link

bro28 commented Mar 13, 2023

The same done pip install torch==1.9 torchtext=0.10 torchvision==0.10 torchaudio==0.9

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

5 participants