moussaKam / BARThez

A french sequence to sequence pretrained model
Apache License 2.0
57 stars 11 forks source link

Compatible BARThez model with a newer fairseq version (0.10.0 or 0.12.0) #6

Open Denescor opened 1 year ago

Denescor commented 1 year ago

Hello,

For my works, I'm trying to adapt the approch of GENRE in french using BARThez as the initial language model instead of BART.

I think I could make a good Entity Linking model in french (and a great contribution to the community) but my results are currently totally bad. I think the problem come from BARThez. During my tests, I see it is unable to predict anything (I ask him to give me 5 predictions and it give me only one. The beam parameter isn't respected). I don't think it's because of the tokeniser or the BARThez model but because of the fairseq version

For GENRE, I'm using the fairseq-0.10.0 (it doesn't work with an older version) but you propose the fairseq-0.9.0. It is highly possible that there is some form of incompatibility which does not prevent the loading or the fine-tuning of BARThez but which makes the result or any attempt at inference unusable.

So, I would like to know :

Thanks for your response