Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers — talks, workshops, and what’s next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
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
{{ message }}
ml-explore
mlx
Repository navigation
Code
Issues
90
(90)
Pull requests
32
(32)
Discussions
Actions
Security and quality
2
(2)
Insights
More
items
Fix float16 overflow in clip_grad_norm
- #4626
#4626
Merged
zcbenz
merged 3 commits into
ml-explore:main
ml-explore/mlx:main
from
ishtihoss:clip-grad-norm-fp16-overflow-zeroes-grads
ishtihoss/mlx:clip-grad-norm-fp16-overflow-zeroes-grads
Copy head branch name to clipboard
Oct 7, 2026
Conversation
Commits
3
(3)
Checks
Files changed
Merged
Fix float16 overflow in clip_grad_norm
#4626
zcbenz
merged 3 commits into
ml-explore:main
ml-explore/mlx:main
from
ishtihoss:clip-grad-norm-fp16-overflow-zeroes-grads
ishtihoss/mlx:clip-grad-norm-fp16-overflow-zeroes-grads
Copy head branch name to clipboard
Commits
Commits on Oct 4, 2026
clip_grad_norm squared and summed gradients in their own dtype, so any fp16 gradient above ~256 overflowed to inf; making the total norm inf and the normalizer zero; so literally every gradient sil…
Show description for 95b9228
ishtihoss
committed
95b9228
View commit details
Copy full SHA for 95b9228
Browse repository at this point
Commits on Oct 5, 2026
fixed the failing tests
ishtihoss
committed
43426ca
View commit details
Copy full SHA for 43426ca
Browse repository at this point
Merge branch 'main' into clip-grad-norm-fp16-overflow-zeroes-grads
ishtihoss
authored
251ea08
View commit details
Copy full SHA for 251ea08
Browse repository at this point
You can’t perform that action at this time.