Skip to content

Commit

Permalink
correct test_distribtued
Browse files Browse the repository at this point in the history
  • Loading branch information
mori360 committed Dec 10, 2024
1 parent 22f3f17 commit 8aae3d9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/torchtune/training/test_distributed.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ def test_lora_state_dict(self):
fsdp_model_to_load.parameters(), weight_decay=0.01, lr=0.01
)
training.load_from_full_optimizer_state_dict(
fsdp_model_to_load,
fsdp_optim_to_load,
# mimic mmap=True where every rank see full SD
copy.deepcopy(self._broadcast_full_state_dict(optim_full_sd)),
Expand Down

0 comments on commit 8aae3d9

Please sign in to comment.