Skip to content

Commit

Permalink
tdist
Browse files Browse the repository at this point in the history
  • Loading branch information
dakinggg committed Apr 24, 2024
1 parent a5b4102 commit 2626599
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/train/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from typing import Any, Dict, List, Optional, Union

import torch
import torch.distributed as tdist
import torch.distributed
from composer import Trainer
from composer.core.callback import Callback
from composer.profiler import (JSONTraceHandler, Profiler, TraceHandler,
Expand Down Expand Up @@ -132,7 +132,7 @@ def _initialize_gloo_and_nccl(dist_timeout: Union[int, float]):
log.debug('Testing barrier with cpu...')
dist.barrier()
log.debug('Barrier test passed with cpu. Destroying process group...')
tdist.destroy_process_group()
torch.distributed.destroy_process_group()
log.debug('Process group destroyed.')

# Now, initialize with the correct device
Expand Down

0 comments on commit 2626599

Please sign in to comment.