Open ereday opened 3 years ago
So Why the bug is not fixed for such a long time ?
ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject
@ereday @EricLina IIRC this error often comes up in Fairseq because of numpy version issues. If you upgrade numpy
to 1.22 or something later it should be fixed (or at least it has worked for me numerous times when working on regular MT models). If you're still going down that rabbit hole, perhaps it's worth a try?
🐛 Bug
Hi,
I was trying to evaluate the pre-trained models under "Efficient Wait-k Models for Simultaneous Machine Translation". For this, I followed the instructions given in the readme. Specifically, I did followings:
After downloading model and data and placing them under
pre_saved
:It generates following error message:
EDIT
Okay, here is more detail about this:
I believe thisline is responsible for the error message shared above.
I changed this
importlib.import_module('examples.simultaneous.models.' + model_name)
toimportlib.import_module('examples.waitk.models.' + model_name)
Then, I got another error:
So, I changed this line here to ```from examples.waitk.modules import TransformerEncoderLayer, ```` too. Then when I tried once more, I got the following error:
So, to fix it I commented out following lines in examples/waitk/modules/init.py:
Next, I've tried to use the generation command given in the readme once more..
CUDA_VISIBLE_DEVICES=0 python generate.py pretrained-sources/iwslt14_deen_bpe10k_binaries/ -s de -t en --gen-subset test --path pretrained-sources/model.pt --task waitk_translation --eval-waitk $k --model-overrides "{'max_source_positions': 1024, 'max_target_positions': 1024}" --left-pad-source False --user-dir examples/waitk --no-progress-bar --max-tokens 8000 --remove-bpe --beam 1 2>&1 | tee -a $output
I got this error:
I just gave up after that.. @elbayadm I hope you can help me on this.
Code sample
Environment
I have followed the instructions in the README to install my environment. :
As a result, I have the following libraries in my environment:
Operating system: Linux