Skip to content

Commit

Permalink
carmocca review
Browse files Browse the repository at this point in the history
  • Loading branch information
awaelchli committed Jul 7, 2023
1 parent 5842f2e commit a1b80c8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions tests/tests_pytorch/strategies/test_fsdp.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,9 +534,7 @@ def test_fsdp_strategy_save_optimizer_states(tmpdir, wrap_min_params):

# restore model to ddp
model = TestBoringModel()
trainer = Trainer(
default_root_dir=tmpdir, accelerator="gpu", devices=2, strategy="ddp", precision="16-mixed", max_epochs=1
)
trainer = Trainer(default_root_dir=tmpdir, accelerator="gpu", devices=2, strategy="ddp", max_epochs=1)

# This step will restore the model and optimizer states
trainer.fit(model, ckpt_path=model_path)
Expand Down Expand Up @@ -567,9 +565,7 @@ def test_fsdp_strategy_load_optimizer_states(tmpdir, wrap_min_params):

# restore model to ddp
model = TestBoringModel()
trainer = Trainer(
default_root_dir=tmpdir, accelerator="gpu", devices=2, strategy="ddp", precision="16-mixed", max_epochs=1
)
trainer = Trainer(default_root_dir=tmpdir, accelerator="gpu", devices=2, strategy="ddp", max_epochs=1)

# This step will restore the model and optimizer states
trainer.fit(model)
Expand Down

0 comments on commit a1b80c8

Please sign in to comment.