-
Notifications
You must be signed in to change notification settings - Fork 2.1k
[BART] Fail successfully when fairseq
is not installed
#4031
Comments
This issue has not had activity in 30 days. Please feel free to reopen if you have more issues. You may apply the "never-stale" tag to prevent this from happening. |
Hi @klshuster I would like to work on this issue. Can you please more info where to add the error message. |
ParlAI/parlai/core/build_data.py Line 515 in 755b9dc
This except is catching too broadly an import error created by when we load the checkpoint here:
The easiest solution is to change the latter to a RunTimeError. |
Thank you! I will work on it. |
Hi, I am not sure if I should put my question here. Basically, I installed ParlAI from source (v1.7.1) and installed Fairseq (v0.12.2) but I am still not able to run BB2 with the same error When running I cannot find any solution. I wonder if there could be any possible cause? Thank you very much in advance! =========================================================================== |
Thanks for flagging -- i would ignore the warning, if it's just that. If you could file a new issue regarding the first error, that would be great (so that we can track it separately) |
I'm also having the |
@ye7iaserag could you try downgrading to pytorch 1.12? |
Bug description
When using BART models, or any models that require BART (e.g. some of the hallucination or BB2, several folks have posted that ParlAI fails with
Could not find pretrained model in parlai.zoo.bart.bart_large or parlai.zoo.bart.build
; we should, instead, raise an error and note that fairseq should be installed.Related Issues:
Reproduction steps
See #3975 for repro.
Expected behavior
ParlAI should fail with an appropriate error, providing instructions for installing fairseq
Logs
See #3975 for logs.
The text was updated successfully, but these errors were encountered: