Skip to content

Commit

Permalink
dist adam transpose fix
Browse files Browse the repository at this point in the history
Signed-off-by: dimapihtar <[email protected]>
  • Loading branch information
dimapihtar committed May 17, 2024
1 parent 6a5187b commit ff0eb2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nemo/core/optim/distributed_adam.py
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@ def _param_copy_fragments(self, fragments: Iterable[DistributedFusedAdam.Paramet
for param in params:
if is_float8tensor(param):
param._reset_caches()
param.transpose(update_cache=True)
param.transpose_2d(cache=True)
param._lazy_transpose_cache = True

@torch.no_grad()
Expand Down

0 comments on commit ff0eb2f

Please sign in to comment.