- BaseTrainingBackend 定义 prepare/accumulate/unwrap_model 抽象 - DDPTrainingBackend 支持全部 DDP 参数并通过 BackendFactory 注册 - unwrap_model 改为实例方法,由子类各自实现 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| backend.py | ||
| module.py | ||
| setup.py | ||
- BaseTrainingBackend 定义 prepare/accumulate/unwrap_model 抽象 - DDPTrainingBackend 支持全部 DDP 参数并通过 BackendFactory 注册 - unwrap_model 改为实例方法,由子类各自实现 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| backend.py | ||
| module.py | ||
| setup.py | ||