Closed rerngvit closed 3 years ago
Hi there --> yes, you'll need to pip install transformers==4.3.3
to use the hallucination project models.
Additionally, you'll need to run pip install faiss-gpu==1.7.0
(or faiss-cpu
, either works)
We will eventually add each to the requirements in future releases
as the failure is more informative (and provides instructions for installing), I'll be closing this issue. Please reopen if you have additional questions/concerns
Bug description I was trying to test the recently released retrieval augmented generation model in ParlAI 1.3, e.g., just trying to run
$parlai interactive -mf zoo:hallucination/bart_rag_token/model
. However, it seems that the some package dependency for the project have not been added to requirements.txt. This would result in an error shown below.Reproduction steps
git clone https://github.com/facebookresearch/ParlAI
pip install -r requirement.txt
Expected behavior The interactive chatting with the pretrained model should be started to run
Logs
Additional context Note that it seems a specific pinned version is required, since just
pip install transformers
will result in a conflict with another required library. Also, from what mentioned in the paper, a package for faiss will likely be needed as well.