mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-07 20:10:17 +00:00
[shardformer] support module saving and loading (#4062)
* [shardformer] support module saving and loading * polish code
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
import operator
|
||||
from dataclasses import dataclass
|
||||
from functools import reduce
|
||||
|
||||
import torch
|
||||
|
||||
from colossalai.device.device_mesh import DeviceMesh
|
||||
|
||||
from .misc import DuplicatedShardingDimensionError, LayoutException, ShardingNotDivisibleError
|
||||
from .misc import DuplicatedShardingDimensionError, ShardingNotDivisibleError
|
||||
from .sharding_spec import ShardingSpec
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user