Official repository of OFA (ICML 2022). Paper: OFA: Unifying Architectures, Tasks, and Modalities Through a Simple Sequence-to-Sequence Learning Framework
I found an issue when trying to run your code, when certain file like "fairseq/fairseq/tasks/fairseq_task.py" import "metrics" they import it from "fairseq" but the metrics are in fact under "fairseq.fairseq.logging" so the correct imports would be "from fairseq.logging import metrics" in the "fairseq/fairseq/tasks/fairseq_task.py" file.
@Moeinh77 It seems that you didn't install the fairseq provided by this repo. Please uninstall the existing fairseq and install the fairseq provided by this repo.
I found an issue when trying to run your code, when certain file like "fairseq/fairseq/tasks/fairseq_task.py" import "metrics" they import it from "fairseq" but the metrics are in fact under "fairseq.fairseq.logging" so the correct imports would be "from fairseq.logging import metrics" in the "fairseq/fairseq/tasks/fairseq_task.py" file.