vall-e/vall_e/engines/__init__.py

11 lines
298 B
Python
Raw Normal View History

2023-08-04 01:26:36 +00:00
from ..config import cfg
2023-08-05 03:22:15 +00:00
from ..utils.distributed import fix_unset_envs
fix_unset_envs()
2023-08-04 01:26:36 +00:00
if cfg.trainer.backend == "deepspeed":
from .deepspeed import Engine
elif cfg.trainer.backend == "local":
from .base import Engine
from .base import Engines, TrainFeeder, default_feeder, Engine as _Engine