|
|
|
|
|
|
|
|
|
"""isort:skip_file""" |
|
|
|
import os |
|
import sys |
|
|
|
try: |
|
from .version import __version__ |
|
except ImportError: |
|
version_txt = os.path.join(os.path.dirname(__file__), "version.txt") |
|
with open(version_txt) as f: |
|
__version__ = f.read().strip() |
|
|
|
__all__ = ["pdb"] |
|
|
|
|
|
from fairseq.distributed import utils as distributed_utils |
|
from fairseq.logging import meters, metrics, progress_bar |
|
|
|
sys.modules["fairseq.distributed_utils"] = distributed_utils |
|
sys.modules["fairseq.meters"] = meters |
|
sys.modules["fairseq.metrics"] = metrics |
|
sys.modules["fairseq.progress_bar"] = progress_bar |
|
|
|
|
|
from fairseq.dataclass.initialize import hydra_init |
|
hydra_init() |
|
|
|
import fairseq.criterions |
|
import fairseq.distributed |
|
import fairseq.models |
|
import fairseq.modules |
|
import fairseq.optim |
|
import fairseq.optim.lr_scheduler |
|
import fairseq.pdb |
|
import fairseq.scoring |
|
import fairseq.tasks |
|
import fairseq.token_generation_constraints |
|
|
|
import fairseq.benchmark |
|
import fairseq.model_parallel |
|
|