Skip to content

Commit

Permalink
clean up imports
Browse files Browse the repository at this point in the history
  • Loading branch information
eitanturok committed Sep 30, 2024
1 parent 4c5802a commit 0dc90df
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/tp/test_tp_strategies.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@
# SPDX-License-Identifier: Apache-2.0

import os
import shutil
from pathlib import Path
from shutil import rmtree
from tempfile import TemporaryDirectory

import pytest
from composer.utils import dist
from omegaconf import OmegaConf as om
from torch.distributed._tensor import Replicate, Shard
from torch.distributed.tensor.parallel import (
Expand Down Expand Up @@ -122,7 +121,7 @@ def test_tp_train(tp_strategy: str):
finally:
# always remove data directory
if os.path.isdir(data_dir):
rmtree(data_dir)
shutil.rmtree(data_dir)


@pytest.mark.gpu
Expand Down

0 comments on commit 0dc90df

Please sign in to comment.