facebookresearch / LAMA

LAnguage Model Analysis
Other
1.34k stars 181 forks source link

Requirements in requirements.txt and setup.py are different #42

Open LevinRoman opened 3 years ago

LevinRoman commented 3 years ago

Hi,

Just wanted to point out that the requirement versions in setup.py and requirements.txt file are different. (e.g. 'fairseq==0.6.1' vs fairseq==0.8.0)

Thanks!

ShengdingHu commented 3 years ago

I also notice this problem. I simply used fairseq==0.8.0. Could it result in some strange behaviors?

SuJiaKuan commented 3 years ago

Using fairseq==0.8.0 works fine, but fairseq==0.6.1 fails. The following code line imports fairseq.models.roberta, which does not appear in the APIs for fairseq==0.6.1:

https://github.com/facebookresearch/LAMA/blob/5cba81b6e55d4c596ce62b0166b1acd429a47f28/lama/modules/roberta_connector.py#L7