| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| from .base import BaseEngine, EngineRegistry |
| from .fsdp import FSDPEngine, FSDPEngineWithLMHead |
|
|
| __all__ = [ |
| "BaseEngine", |
| "EngineRegistry", |
| "FSDPEngine", |
| "FSDPEngineWithLMHead", |
| ] |
|
|
| try: |
| from .torchtitan import TorchTitanEngine, TorchTitanEngineWithLMHead |
|
|
| __all__ += ["TorchTitanEngine", "TorchTitanEngineWithLMHead"] |
| except ImportError: |
| TorchTitanEngine = None |
| TorchTitanEngineWithLMHead = None |
|
|
| try: |
| from .veomni import VeOmniEngine, VeOmniEngineWithLMHead |
|
|
| __all__ += ["VeOmniEngine", "VeOmniEngineWithLMHead"] |
| except ImportError: |
| VeOmniEngine = None |
| VeOmniEngineWithLMHead = None |
|
|
| |
| try: |
| from .mindspeed import MindspeedEngineWithLMHead |
|
|
| __all__ += ["MindspeedEngineWithLMHead"] |
| except ImportError: |
| MindspeedEngineWithLMHead = None |
|
|
| try: |
| from .megatron import MegatronEngine, MegatronEngineWithLMHead |
|
|
| __all__ += ["MegatronEngine", "MegatronEngineWithLMHead"] |
| except ImportError: |
| MegatronEngine = None |
| MegatronEngineWithLMHead = None |
|
|