Skip to content

Commit

Permalink
Args should default to true, removed tensor_list operator for cpus
Browse files Browse the repository at this point in the history
  • Loading branch information
Sathwik Yanamaddi committed Feb 5, 2024
1 parent e3bfa64 commit 472d355
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion axonn/intra_layer/communication.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def _gather(input_, dim, process_group=None, cache=False):
tensor_list = [
torch.empty_like(input_) for _ in range(dist.get_world_size(process_group))
]
tensor_list[rank] = input_
# tensor_list[rank] = input_
dist.all_gather(tensor_list, input_, group=process_group)

# Note: torch.cat already creates a contiguous tensor.
Expand Down
4 changes: 2 additions & 2 deletions axonn/intra_layer/fully_connected.py
Original file line number Diff line number Diff line change
Expand Up @@ -253,8 +253,8 @@ def get_output_feature_size(self):
def forward(
self,
x,
scatter_input=False,
gather_output=False,
scatter_input=True,
gather_output=True,
cache_weights_in_all_gather=False,
):
# gather weights from depth parallel group
Expand Down

0 comments on commit 472d355

Please sign in to comment.