Skip to content

Zero-initialized L1, L2 gradient buffers to avoid garbage accumulation in gradients - #138

Merged
vbharadwaj-bk merged 1 commit into
mainfrom
l3_bugfix
Jun 21, 2025
Merged

Zero-initialized L1, L2 gradient buffers to avoid garbage accumulation in gradients#138
vbharadwaj-bk merged 1 commit into
mainfrom
l3_bugfix

Conversation

@vbharadwaj-bk

Copy link
Copy Markdown
Member

In the future, probably best to add logic within the templates that writes zeros to the appropriate location so we don't have to touch memory twice.

@vbharadwaj-bk vbharadwaj-bk added the ci-ready Triggers CI checks for a pull request label Jun 21, 2025
@vbharadwaj-bk
vbharadwaj-bk merged commit 7d18691 into main Jun 21, 2025
@vbharadwaj-bk
vbharadwaj-bk deleted the l3_bugfix branch June 21, 2025 05:51
vbharadwaj-bk added a commit that referenced this pull request Jun 21, 2025
* Directly import sysconfig + Remove Multidevice "Memory Leak" (#137)

* Eliminated cudaFree(0), directly imported sysconfig.

* Linted.

* Zero-initialized L1, L2 gradient buffers to avoid garbage accumulation. (#138)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-ready Triggers CI checks for a pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant