|
|
|
from .spec import ComputePattern, ParallelAction, TensorSpec
|
|
|
|
from .op_wrapper import (
|
|
|
|
colo_op_impl,)
|
|
|
|
from .colo_tensor import ColoTensor
|
|
|
|
from .colo_parameter import ColoParameter
|
|
|
|
from .utils import convert_parameter, named_params_with_colotensor
|
|
|
|
from ._ops import *
|
|
|
|
from .optim.colo_optimizer import ColoOptimizer
|
|
|
|
from . import distspec
|
|
|
|
from .dist_spec_mgr import DistSpecManager
|
|
|
|
from .param_op_hook import ParamOpHook, use_param_op_hooks
|
|
|
|
from .chunk import ChunkManager, TensorState
|
|
|
|
from .module_utils import register_colo_module, is_colo_module, get_colo_module, init_colo_module, check_colo_module
|
|
|
|
from .modules import ColoLinear, ColoEmbedding
|
|
|
|
|
|
|
|
__all__ = [
|
|
|
|
'ColoTensor', 'convert_parameter', 'colo_op_impl', 'ComputePattern', 'TensorSpec', 'ParallelAction',
|
|
|
|
'named_params_with_colotensor', 'ColoOptimizer', 'ColoParameter', 'distspec', 'DistSpecManager',
|
|
|
|
'register_colo_module', 'is_colo_module', 'get_colo_module', 'init_colo_module', 'check_colo_module', 'ColoLinear',
|
|
|
|
'ColoEmbedding', 'ParamOpHook', 'use_param_op_hooks', 'ChunkManager', 'TensorState'
|
|
|
|
]
|