Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add lazy import for
run_training
(#116)
The `main_ds` module imports DeepSpeed and PyTorch. These imports take a very long time and slow down startup of the Instruct CLI `ilab` tool by over a second. Use PEP 562 hooks to implement lazy import and loading for `run_training` function. The function is imported when the attribute is accessed. See: instructlab/instructlab#1467 Signed-off-by: Christian Heimes <[email protected]>
- Loading branch information