Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-pick fused_adam_cuda related patches and add its unit tests to the ROCm extension test script #93

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

hubertlu-tw
Copy link

No description provided.

hubertlu-tw and others added 5 commits September 9, 2022 16:54
…IA#1446)

Checkpointing can fail since pickle doesn't support >4GB strings by default
* Optimize dist Adam kernels and implementation

Add option to directly use params instead of storing main params. Add option to store 16-bit param remainders and reconstruct fp32 main params out of bf16 params. Add option to choose between Adam and AdamW optimizer. Miscellaneous tweaks to simplify code and avoid GPU synchronization. Avoid calling NCCL collectives in side streams.

* Use FMAs for lerps in dist Adam kernels

Review suggestions from @crcrpar.
@hubertlu-tw
Copy link
Author

jenkins: retest this please

2 similar comments
@hubertlu-tw
Copy link
Author

jenkins: retest this please

@hubertlu-tw
Copy link
Author

jenkins: retest this please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants