Skip to content

Commit

Permalink
fix code style and quality
Browse files Browse the repository at this point in the history
  • Loading branch information
huismiling committed Oct 23, 2024
1 parent 11670ed commit 0d67c18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/deepspeed/test_deepspeed.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
slow,
)
from accelerate.test_utils.training import RegressionDataset, RegressionModel
from accelerate.utils import patch_environment
from accelerate.utils.dataclasses import DeepSpeedPlugin
from accelerate.utils.deepspeed import (
DeepSpeedEngineWrapper,
Expand All @@ -50,7 +51,6 @@
DummyOptim,
DummyScheduler,
)
from accelerate.utils import patch_environment
from accelerate.utils.versions import compare_versions


Expand Down
2 changes: 1 addition & 1 deletion tests/fsdp/test_fsdp.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
require_non_torch_xla,
slow,
)
from accelerate.utils import patch_environment
from accelerate.utils.constants import (
FSDP_AUTO_WRAP_POLICY,
FSDP_BACKWARD_PREFETCH,
Expand All @@ -43,7 +44,6 @@
)
from accelerate.utils.dataclasses import FullyShardedDataParallelPlugin
from accelerate.utils.fsdp_utils import disable_fsdp_ram_efficient_loading, enable_fsdp_ram_efficient_loading
from accelerate.utils import patch_environment


set_seed(42)
Expand Down

0 comments on commit 0d67c18

Please sign in to comment.