mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-12 12:47:21 +00:00
[tensor] design DistSpec and DistSpecManager for ColoTensor (#934)
* add dist spec * update linear op * polish code * polish code * update embedding op * polish unit tests * polish unit tests * polish comments * polish code * add test_dist_spec_mgr * polish code * refactor folder structure * polish unit tests * add get_process_group() for TensorSpec * polish code
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from .spec import ComputePattern, ParallelAction, TensorSpec, ShardPattern
|
||||
from .spec import ComputePattern, ParallelAction, TensorSpec
|
||||
from .op_wrapper import (
|
||||
colo_op_impl,)
|
||||
from .colo_tensor import ColoTensor
|
||||
@@ -6,8 +6,10 @@ 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 dist_spec
|
||||
from .dist_spec_mgr import DistSpecManager
|
||||
|
||||
__all__ = [
|
||||
'ColoTensor', 'convert_parameter', 'colo_op_impl', 'ComputePattern', 'TensorSpec', 'ParallelAction',
|
||||
'named_params_with_colotensor', 'ShardPattern', 'ColoOptimizer', 'ColoParameter'
|
||||
'named_params_with_colotensor', 'ColoOptimizer', 'ColoParameter', 'dist_spec', 'DistSpecManager'
|
||||
]
|
||||
|
Reference in New Issue
Block a user