Skip to content

Commit

Permalink
remove the to in the copy because jack said so and the test pass
Browse files Browse the repository at this point in the history
  • Loading branch information
samsja committed Sep 27, 2024
1 parent b43bde7 commit 9d801d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/zeroband/diloco.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def sync_inner_model(self, model: nn.Module):

self._logger.debug("sync inner model")
for param_offloaded, param in zip(self.param_list_cpu, model.parameters()):
param.data.copy_(param_offloaded.data.to(param.device)) # todo: use copy_ here
param.data.copy_(param_offloaded.data) # todo: use copy_ here

def get_offloaded_param(self, model: nn.Module) -> list[nn.Parameter]:
"""
Expand Down

0 comments on commit 9d801d3

Please sign in to comment.