Open KMFODA opened 2 years ago
It seems to be a bug with Python 3.9 compatibility. Downgrading to 3.7 works for me.
Hi, I am having the same issue, and unfortunately downgrading to python 3.7.12 didn't solve the issue... The issue happens on PyCharm, using Jupyter notebook, but it doesn't happen on Google Colab, even though Python & fairseq versions are identical
Any news regarding this error? I have the same problem and cannot downgrade to python 3.7 at the moment.
🐛 Bug
Getting an invalid typing.Optional[int] error when setting max-tokens and trying to train a model using fairseq-train.
To Reproduce
Steps to reproduce the behavior (always include the command you ran):
CUDA_VISIBLE_DEVICES=0 fairseq-train data-bin/iwslt14.tokenized.de-en --lr 0.25 --clip-norm 0.1 --dropout 0.2 --max-tokens 4000 --arch fconv_iwslt_de_en --save-dir checkpoints/fconv
Code sample
Expected behavior
Environment
pip
, source): pip