Fairseq: Currently fairseq-py requires PyTorch version >= 0.4.0 ?

Created on 14 Mar 2018  路  3Comments  路  Source: pytorch/fairseq

I notice that README says: "Currently fairseq-py requires PyTorch version >= 0.4.0". But the latest pytorch version seems to be 0.3.1 ...

Most helpful comment

You should reinstall the pytorch from source code, because the lastest version[0.4 version] is not released yet.

First, install the latest pytorch from source code according this:
https://github.com/pytorch/pytorch#from-source.

Second, install nccl2, if you want to train your own fairseq model [not nccl1!!!!!!!!!!!]:
http://docs.nvidia.com/deeplearning/sdk/nccl-install-guide/index.html#down

Finally, clone the latest fairseq-py and build the code:
https://github.com/facebookresearch/fairseq-py [the link of nccl in this page is redirected to nccl 1, do not install it]

All 3 comments

Hello, Could you tell me how to deal with it?

You should reinstall the pytorch from source code, because the lastest version[0.4 version] is not released yet.

First, install the latest pytorch from source code according this:
https://github.com/pytorch/pytorch#from-source.

Second, install nccl2, if you want to train your own fairseq model [not nccl1!!!!!!!!!!!]:
http://docs.nvidia.com/deeplearning/sdk/nccl-install-guide/index.html#down

Finally, clone the latest fairseq-py and build the code:
https://github.com/facebookresearch/fairseq-py [the link of nccl in this page is redirected to nccl 1, do not install it]

thank you for your reply!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ajesujoba picture ajesujoba  路  3Comments

chengfx picture chengfx  路  3Comments

prihoda picture prihoda  路  3Comments

PhilippeMarcotte picture PhilippeMarcotte  路  3Comments

tyoc213 picture tyoc213  路  3Comments