You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the AdamW with bias correction (not the one in mlx) combine with clip_grad_norm allows to be similar to pytorch performances.
One possible explanation is that pytorch also has a trick to avoid gradient explosion.
Another one explanation, more logical, is that the initialisation has a big impact on gradient stability.
The fact that the LR changes at each iteration instead of each epoch can be the last one.
Suggestion feature : Having LR scheduler with a option to do it per batch or per epoch would be a great feature to evaluate.
Here a view of 10 time runs using the same initialization (loading identical saved weights for each run) & same data split (mv = validation, mt = test)
.
we can see the real deviation of RMSE over the runs.
Desktop (please complete the following information):
This discussion was converted from issue #1623 on April 14, 2026 10:19.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Comment:
Using the AdamW with bias correction (not the one in mlx) combine with clip_grad_norm allows to be similar to pytorch performances.
One possible explanation is that pytorch also has a trick to avoid gradient explosion.
Another one explanation, more logical, is that the initialisation has a big impact on gradient stability.
The fact that the LR changes at each iteration instead of each epoch can be the last one.
Suggestion feature : Having LR scheduler with a option to do it per batch or per epoch would be a great feature to evaluate.
Here a view of 10 time runs using the same initialization (loading identical saved weights for each run) & same data split (mv = validation, mt = test)
.
we can see the real deviation of RMSE over the runs.
Desktop (please complete the following information):
All reactions