Skip to content

Commit

Permalink
[Hetero] Fix the argument bug (#257)
Browse files Browse the repository at this point in the history
Co-authored-by: lizhiyu <[email protected]>
  • Loading branch information
heavyrain-lzy and lizhiyu authored Nov 6, 2024
1 parent 8e933dd commit 3ae142f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion megatron/megatron/training/arguments.py
Original file line number Diff line number Diff line change
Expand Up @@ -2184,7 +2184,7 @@ def _add_hetero_args(parser):
group.add_argument('--hetero-process-meshes', nargs='*', type=int, default=None,
help='Use this arg to set TP-CP-DP-PP of each process mesh.'
'This argument must be in the form: TP0, CP0, DP0, PP0, TP1, CP0, DP1, PP1...TPN, CPN, DPN, PPN. CP and TP size can be different, sum of PP should match pipeline-model-parallel-size, DP size should be the same.')
group.add_argument('--hetero-use-cpu-communication', action='store_true', default=True, help='Use CPU for communication for heterogeneous communication.')
group.add_argument('--hetero-use-cpu-communication', action='store_true', help='Use CPU for communication for heterogeneous communication.')

return parser

Expand Down

0 comments on commit 3ae142f

Please sign in to comment.