Skip to content

Commit

Permalink
Disable FSDP use original parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
pomonam committed Mar 19, 2024
1 parent 834c645 commit 2ee08aa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/gpu_tests/fsdp_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ def setUpClass(cls) -> None:
cls.model = cls.model.to(device=device)
cls.model = DistributedDataParallel(cls.model, device_ids=[LOCAL_RANK], output_device=LOCAL_RANK)
my_auto_wrap_policy = functools.partial(size_based_auto_wrap_policy, min_num_params=100)
cls.model = FSDP(cls.model, use_orig_params=True, auto_wrap_policy=my_auto_wrap_policy)
cls.model = FSDP(cls.model, use_orig_params=False, auto_wrap_policy=my_auto_wrap_policy)
print(cls.model)

cls.analyzer = Analyzer(
analysis_name="gpu_test",
Expand Down

0 comments on commit 2ee08aa

Please sign in to comment.