未验证 提交 7f17f9a0 编写于 作者: J JZ-LIANG 提交者: GitHub

bugfix for mp accuracy (#35326)

上级 b24f84c8
...@@ -124,7 +124,7 @@ class TensorParallelOptimizer(MetaOptimizerBase): ...@@ -124,7 +124,7 @@ class TensorParallelOptimizer(MetaOptimizerBase):
collective_helper._init_communicator( collective_helper._init_communicator(
self.startup_program, self.current_endpoint, self.mp_endpoints, self.startup_program, self.current_endpoint, self.mp_endpoints,
self.mp_rank, self.mp_ring_id, True, self.global_ring_id, True) self.mp_rank, self.mp_ring_id, True, self.global_ring_id, True)
#self._broadcast_params(self.mp_ring_id, mp_mode=True) self._broadcast_params(self.mp_ring_id, mp_mode=True)
# Create dp rings # Create dp rings
if self.nranks > self.mp_degree: if self.nranks > self.mp_degree:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册