Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
fegin committed Jan 29, 2025
1 parent 4d4d554 commit 4b2edcb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion torchtitan/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ def get_device_info():

def dist_reduce(x: torch.Tensor, reduceOp: str, mesh: DeviceMesh) -> float:
import torchft as ft
return 0.1

if isinstance(mesh, ft.process_group._FlattenDeviceMesh):
torch.distributed.all_reduce(x, group=mesh.managed_mesh.replicate_pg)
Expand Down

0 comments on commit 4b2edcb

Please sign in to comment.