SamLynnEvans / Transformer

Transformer seq2seq model, program that can build a language translator from parallel corpus
Apache License 2.0
1.35k stars 350 forks source link

The version #36

Open shark803 opened 9 months ago

shark803 commented 9 months ago

Can the author show the version of pytorch and torchtext. The code cannot run in my env.

pytorch 1.13 cuda 11.7 torchtext: 0.14.0

The error message is "ModuleNotFoundError: No module named 'torchtext.legacy' "

We replace the torchtext.legacy to torchtext. the error message is "AttributeError: module 'torchtext.data' has no attribute 'Iterator'"

zk19971101 commented 8 months ago

i encountered the same problem about torchtext. my anaconda env is : pytorch 1.12.0 torchtext 0.13.0 cuda 11.6

shy19960518 commented 7 months ago

pip install torchtext==0.10.0