mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-07-24 12:09:17 +00:00
Merge 393c31da61
into 97f4bee9d8
This commit is contained in:
commit
6a811810ba
@ -123,11 +123,6 @@ def search_tp_partition_dim(current_shape: torch.Size, original_shape: torch.Siz
|
||||
if length > current_shape[dim]:
|
||||
partition_dim = dim
|
||||
break
|
||||
if partition_dim is not None:
|
||||
assert (
|
||||
original_shape[partition_dim] == tp_size * current_shape[partition_dim]
|
||||
), f"The parameter isn't evenly distributed among tensor parallel group: \
|
||||
shape before sharding {original_shape}, shape after sharding {current_shape}"
|
||||
|
||||
return partition_dim
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user