-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Dist Pass] Amp Pass #38764
[Dist Pass] Amp Pass #38764
Conversation
…rding-stage-1-2-3
…rding-stage-1-2-3
Thanks for your contribution! |
@@ -185,10 +188,9 @@ def _get_dist_program(self, rank, dist_context=None, relaunch_phase=False): | |||
self._parameter_list, self._no_grad_set, self._callbacks) | |||
|
|||
# serial forward pass | |||
self._apply_serial_pass(completed_main_program, serial_startup_program) | |||
|
|||
self._apply_serial_pass(completed_main_program, serial_startup_program, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change _apply_serial_pass()
to _apply_pre_passes()
and change _apply_post_optimization_passed
to _apply_post_passes
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed~
from ..dist_attribute import OperatorDistributedAttribute | ||
from paddle.distributed.auto_parallel.process_group import get_world_process_groups | ||
|
||
global_process_mesh = get_world_process_groups().ranks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please change get_world_process_groups()
to get_world_process_group()
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed, though it is not my fault~ lol
g_dist_attr.dims_mapping) | ||
self.dist_context.set_op_dist_attr_for_program(new_op, new_op_dist_attr) | ||
|
||
main_block._sync_with_cpp() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add the necessary comments, especially for the methods without underscores.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR types
New features
PR changes
Others
Describe