Skip to content

Commit

Permalink
update: test_mars_c_t_norm
Browse files Browse the repository at this point in the history
  • Loading branch information
kozistr committed Dec 21, 2024
1 parent 2023956 commit c14aec8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_optimizers.py
Original file line number Diff line number Diff line change
Expand Up @@ -812,3 +812,11 @@ def test_muon_rank(rank):
model[2].weight.grad = torch.randn(1, 1, 1)

optimizer.step()


def test_mars_c_t_norm():
param = simple_parameter(True)
param.grad[0] = 100.0

optimizer = load_optimizer('mars')([param], optimize_1d=True)
optimizer.step()

0 comments on commit c14aec8

Please sign in to comment.