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
|
|
|
|
|
2023-08-27 17:26:12 +00:00
|
|
|
from .base import Engines, TrainFeeder, default_feeder, Engine as _Engine
|