ml-explore / mlx

MLX: An array framework for Apple silicon
https://ml-explore.github.io/mlx/
MIT License
14.83k stars 845 forks source link

feat: implement `clip_grad_norm` #1043

Closed NripeshN closed 2 weeks ago

NripeshN commented 3 weeks ago

Proposed changes

Closes #1040 Closes https://github.com/ml-explore/mlx/issues/1045

Checklist

Put an x in the boxes that apply.

NripeshN commented 3 weeks ago

@awni Tests pass locally, ready to merge