Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update on "[BE][1/n] simplify train.py and rename things for consiste…
…ncy" Including: - move TrainState from `train.py` to `checkpoint.py` - create `optimizer.py` to include things related to optimizers and lr scheduler. - rename `logging_utils.py` to `logging.py` - unify various build prefixes (`build_`, `create_`, `get_`) to `build_` - simplify utils import by doing `import torchtitan.utils as utils` - move `get_metrics_rank` from `utils.py` to `metrics.py` to make `build_metric_logger` simpler - create `GarbageCollection` in `utils.py` to hide gc details from `train.py` - reorder definition and initialization of some objects in `train.py` to be closer to where they are first used - expose `build_pipeline_schedule` to `torchtitan.parallelisms` - other minor improvements to reduce the amount of import in `train.py` After this refactoring, LoC for import in `train.py` drops from 51 to 23. [ghstack-poisoned]
- Loading branch information