Skip to content

Commit

Permalink
Update thunder/distributed/transforms/fsdp_v2.py
Browse files Browse the repository at this point in the history
  • Loading branch information
t-vi committed Aug 19, 2024
1 parent f05768e commit 2357aad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thunder/distributed/transforms/fsdp_v2.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def transform_module(
if p_orig.device.type != "meta":
p_meta = torch.nn.Parameter(p.to(device="meta"), requires_grad=p.requires_grad)
p_meta._thunder_device = p_orig.device
setattr(submodule, base_pn, p_meta)
submodule.register_parameter(base_pn, p_meta)
else:
p_orig._thunder_device = self.device

Expand Down

0 comments on commit 2357aad

Please sign in to comment.