Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
delock committed Mar 5, 2024
1 parent b28d81b commit 2ea44ba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion tests/unit/checkpoint/test_zero_optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ def test_load_optimizer_state(self, tmpdir, zero_stage, use_cpu_offload, adam_op
if not get_accelerator().is_fp16_supported():
pytest.skip("fp16 is not supported")


config_dict = {
"train_batch_size": 2,
"steps_per_print": 1,
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/compression/test_dequantization.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
from deepspeed.accelerator import get_accelerator



class TestDequantization(DistributedTest):

def init(self):
local_rank = int(os.getenv("LOCAL_RANK", "0"))
self.device = torch.device(get_accelerator().device_name(local_rank))
Expand Down

0 comments on commit 2ea44ba

Please sign in to comment.