2023-03-31 08:06:13 +00:00
|
|
|
from .gemini_plugin import GeminiPlugin
|
2023-07-25 16:53:57 +00:00
|
|
|
from .hybrid_parallel_plugin import HybridParallelPlugin
|
2023-04-26 06:37:25 +00:00
|
|
|
from .low_level_zero_plugin import LowLevelZeroPlugin
|
2023-03-21 09:39:30 +00:00
|
|
|
from .plugin_base import Plugin
|
|
|
|
from .torch_ddp_plugin import TorchDDPPlugin
|
|
|
|
|
2023-07-25 16:53:57 +00:00
|
|
|
__all__ = ['Plugin', 'TorchDDPPlugin', 'GeminiPlugin', 'LowLevelZeroPlugin', 'HybridParallelPlugin']
|
2023-05-15 04:14:38 +00:00
|
|
|
|
|
|
|
import torch
|
|
|
|
from packaging import version
|
|
|
|
|
|
|
|
if version.parse(torch.__version__) >= version.parse('1.12.0'):
|
|
|
|
from .torch_fsdp_plugin import TorchFSDPPlugin
|
|
|
|
__all__.append('TorchFSDPPlugin')
|