mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2025-10-05 08:37:06 +08:00
fix glm all_reduce tp group (#4188)
This commit is contained in:
@@ -160,7 +160,7 @@ class Glm4Moe(nn.Layer):
|
|||||||
out = out + shared_experts_out
|
out = out + shared_experts_out
|
||||||
# We do to TP all reduce after the sum of experts.
|
# We do to TP all reduce after the sum of experts.
|
||||||
if self.tensor_parallel_size > 1:
|
if self.tensor_parallel_size > 1:
|
||||||
tensor_model_parallel_all_reduce(out)
|
tensor_model_parallel_all_reduce(out, self.tp_group)
|
||||||
return out
|
return out
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user