Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

[BART] Fail successfully when fairseq is not installed #4031

@klshuster

Description

@klshuster

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.

Metadata

Metadata

Assignees

Labels

donotreapAvoid automatically marking as stale.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions