mirror of
https://github.com/JustAResearcher/gpu-unlock-ada.git
synced 2026-12-03 20:45:57 +07:00
[PR #62] Add FP16 accumulation uncap hook for GeForce #106
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JustAResearcher/gpu-unlock-ada#106
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/JustAResearcher/gpu-unlock-ada/pull/62
Author: @AndrewCTF
Created: 10/26/2026
Status: 🔄 Open
Base:
main← Head:fp16-accum-uncap📝 Commits (1)
c4e1b43Add FP16 accumulation uncap hook for GeForce📊 Changes
3 files changed (+77 additions, -0 deletions)
View changed files
➕
tools/fp16-uncap/README.md(+45 -0)➕
tools/fp16-uncap/_nvidia_fp16_uncap.pth(+1 -0)➕
tools/fp16-uncap/_nvidia_fp16_uncap.py(+31 -0)📄 Description
What
Adds
tools/fp16-uncap/: a ~30-line Python import hook (_nvidia_fp16_uncap.py+.pth) that enables PyTorch's publictorch.backends.cuda.matmul.allow_fp16_accumulationtoggle automatically in any venv it's installed into. GeForce cards run FP16 matmuls at half rate when accumulation is FP32; PyTorch already exposes the full-rate path — it's just off by default.Measured on an RTX 5090 (driver 615.71.09): ~325 TFLOPS FP16 matmul with the hook vs ~217 without.
Scope / what this is NOT
Legality
Trade-offs
FP16 accumulation adds rounding error to long reductions (that's why the default is off). For inference and most fine-tuning it's practically indistinguishable; numerically sensitive training may want it off.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.