facebookresearch / GENRE

Autoregressive Entity Retrieval
Other
756 stars 98 forks source link

I downloaded the model and everything related but getting request error from https://dl.fbaipublicfiles.com/fairseq/gpt2_bpe/encoder.json #67

Closed KemalDrop closed 2 years ago

KemalDrop commented 2 years ago

I have all the files locally including the encoder but from time to time I get requests error from https://dl.fbaipublicfiles.com/fairseq/gpt2_bpe/encoder.json website which indicates the from_pretrained function tries to download that file even if I had it. Everytime I load this happens - What do I need to do instead?

I load the disambiguation model with:

from genre.fairseq_model import GENRE
GENRE.from_pretrained(local_path)
nicola-decao commented 2 years ago

It seems a problem with fairseq rather than GENRE