Skip to content

Commit

Permalink
Update on "Made some stylistic changes to apply_dp"
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
awgu committed Jul 10, 2024
2 parents 2fa596d + a70f055 commit 5c04a9b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchtitan/parallelisms/parallelize_llama.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ def apply_compile(model, job_config: JobConfig):

def apply_dp(model, world_mesh, parallel_dims, job_config: JobConfig):
"""
Apply data parallelism to the model. FSDP2 is used here.
Apply data parallelism (FSDP2) to the model.
"""

dp_mesh = world_mesh["dp"] if world_mesh.ndim > 1 else world_mesh
Expand Down

0 comments on commit 5c04a9b

Please sign in to comment.