mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-08-01 07:46:55 +00:00
Merge e44e65d61c
into 97f4bee9d8
This commit is contained in:
commit
3c6e0adfab
@ -83,6 +83,12 @@ Following are the description `ShardConfig`'s arguments:
|
|||||||
|
|
||||||
- `extra_kwargs`: A dict to store extra kwargs for ShardFormer.
|
- `extra_kwargs`: A dict to store extra kwargs for ShardFormer.
|
||||||
|
|
||||||
|
- - `tensor_parallel_mode`: A choice of parallel modes for tensor operations. Supported modes are:
|
||||||
|
- `'1d'`: 1D tensor parallelism
|
||||||
|
- `'2d'`: 2D tensor parallelism
|
||||||
|
- `'2.5d'`: 2.5D tensor parallelism
|
||||||
|
- `'3d'`: 3D tensor parallelism
|
||||||
|
|
||||||
### Write your own policy
|
### Write your own policy
|
||||||
|
|
||||||
If you have a custom model, you can also use Shardformer to parallelize it by writing your own sharding policy. More information about the sharding policy can be found in [API Design](#-api-design).
|
If you have a custom model, you can also use Shardformer to parallelize it by writing your own sharding policy. More information about the sharding policy can be found in [API Design](#-api-design).
|
||||||
|
Loading…
Reference in New Issue
Block a user