mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-13 05:01:44 +00:00
[shardformer] support module saving and loading (#4062)
* [shardformer] support module saving and loading * polish code
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
from .api import (
|
||||
compute_global_numel,
|
||||
distribute_tensor,
|
||||
get_device_mesh,
|
||||
get_global_shape,
|
||||
get_layout,
|
||||
get_sharding_spec,
|
||||
is_distributed_tensor,
|
||||
is_sharded,
|
||||
redistribute,
|
||||
shard_colwise,
|
||||
shard_rowwise,
|
||||
sharded_tensor_to_param,
|
||||
to_global,
|
||||
)
|
||||
from .layout import Layout
|
||||
from .sharding_spec import ShardingSpec
|
||||
|
||||
__all__ = [
|
||||
'is_distributed_tensor', 'distribute_tensor', 'to_global', 'is_sharded', 'shard_rowwise', 'shard_colwise',
|
||||
'sharded_tensor_to_param', 'compute_global_numel', 'get_sharding_spec', 'get_global_shape', 'get_device_mesh',
|
||||
'redistribute', 'get_layout'
|
||||
'Layout', 'ShardingSpec'
|
||||
]
|
||||
|
Reference in New Issue
Block a user