(module_path)
| 20 | |
| 21 | @staticmethod |
| 22 | def build(module_path): |
| 23 | sys.path.insert(0, module_path) |
| 24 | try: |
| 25 | from internlm.core.context.registry import \ |
| 26 | register_model_initializer # noqa: F401 |
| 27 | return CurrentInternTrainManager(module_path) |
| 28 | except ImportError: |
| 29 | return LegacyInternTrainManager(module_path) |
| 30 | |
| 31 | |
| 32 | class CurrentInternTrainManager(InternTrainManager): |
no test coverage detected