Skip to content

Commit

Permalink
Update paged AdEMAMix
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewdouglas committed Sep 20, 2024
1 parent d4b92d1 commit 1a3d3c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bitsandbytes/optim/ademamix.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def update_step(self, group, p, gindex, pindex):
)

def _get_state_double_buffer(self, p, dtype=torch.float32):
if not self.is_paged or p.numel() < 0.5e5:
if not self.is_paged or p.numel() < 1e5:
return torch.zeros((2, *p.size()), dtype=dtype, device=p.device)
else:
buff = F.get_paged(*(2, *p.size()), dtype=dtype, device=p.device)
Expand Down

0 comments on commit 1a3d3c6

Please sign in to comment.