Skip to content

Commit

Permalink
remove destroy process group
Browse files Browse the repository at this point in the history
  • Loading branch information
siddharth9820 committed Oct 18, 2024
1 parent 99ad91f commit e8ddd1d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions axonn/tests/test_intra_layer_fc.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,6 @@ def test_fw_pass(G_intra_r, G_intra_c, G_intra_d, B, H, expert_mode, bias):

assert torch.allclose(Y_sequential, Y_parallel), "FW Pass - output does not match"

if torch.distributed.is_initialized():
torch.distributed.destroy_process_group()


@pytest.mark.parametrize("B, H", [(32, 64), (16, 128), (2, 256)])
@pytest.mark.parametrize(
Expand Down Expand Up @@ -201,8 +198,6 @@ def test_bw_pass(
bias_grad_parallel, layer_sequential.bias.grad
), "BW Pass - gradients of bias do not match"

if torch.distributed.is_initialized():
torch.distributed.destroy_process_group()


if __name__ == "__main__":
Expand Down

0 comments on commit e8ddd1d

Please sign in to comment.