fairseq icon indicating copy to clipboard operation
fairseq copied to clipboard

ModuleNotFoundError: No module named 'fairseq.criterions.'

Open libeineu opened this issue 1 year ago • 2 comments

🐛 Bug

I am very confused about the error caused by the environment. There is no error reported after run the required command "pip install -e ."

image

and "python setup.py build develop"

image

However, I got the error below when I generated the bin file using preprocess.py

image

I am not sure what the problem is since I never encountered such a problem before.

Environment

  • fairseq Version (e.g., 1.0 or main): 0.10.2
  • PyTorch Version: 1.12.1
  • OS (e.g., Linux):
  • How you installed fairseq (pip, source): pip install -e .
  • Build command you used (if compiling from source): there is no any errors after run 'pip install -e .' and 'python setup.py build develop'
  • Python version: 3.8
  • CUDA/cuDNN version: 11.3
image

libeineu avatar Mar 06 '24 01:03 libeineu

Has anybody met this issue before?

libeineu avatar Mar 06 '24 11:03 libeineu

@libeineu if you upgrade fairseq to 0.12.2, it should probably fix the error, the criterions submodule is present in that version.

deven367 avatar Mar 19 '24 15:03 deven367