Skip to content

Feature distributed fused adam and distributed fused lamb #188

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

Closed
wants to merge 2 commits into from

Conversation

amd-sriram
Copy link
Collaborator

  • Updated feature of distributed fused adam from upstream. Updated its dependencies - fused adam, distributed adam. Updated the unit test case for distributed fused adam.

  • Raise Exception when nccl user buffer / cuda graph is used in distributed fused adam. Skipped these particular UTs

  • Adding support for rccl_ub in distributed_fused_adam

  • build nccl_allocator module when cuda_ext flag is mentioned

Commits :
6fd8b50
ccb59d6

* Updated feature of distributed fused adam from upstream. Updated its dependencies - fused adam, distributed adam. Updated the unit test case for distributed fused adam.

* Raise Exception when nccl user buffer / cuda graph is used in distributed fused adam. Skipped these particular UTs

* Adding support for rccl_ub in distributed_fused_adam

* build nccl_allocator module when cuda_ext flag is mentioned
@amd-sriram amd-sriram self-assigned this Mar 25, 2025
amd-sriram added a commit to ROCm/pytorch that referenced this pull request Mar 25, 2025
Altering the flag to use the correct streamType for CUDAPluggableAllocator. This is impacting Distributed Fused Adam in Rocm/APEX.


Apex Commit : ROCm/apex#188
@amd-sriram
Copy link
Collaborator Author

ROCm/pytorch#1999

This should also be approved.

jithunnair-amd pushed a commit to ROCm/pytorch that referenced this pull request Mar 26, 2025
Altering the flag to use the correct streamType for
CUDAPluggableAllocator. This is impacting Distributed Fused Adam in
Rocm/APEX.

`2025-03-25T14:19:25.0187731Z #5 1815.5 FAILED:
/root/dockerbuild/pytorch.1.7.0a0/apex/build/temp.linux-x86_64-cpython-312/apex/contrib/csrc/nccl_allocator/NCCLAllocator_hip.o`

```
torch/include/torch/csrc/cuda/CUDAPluggableAllocator.h:125:8: error: ‘void torch::cuda::CUDAPluggableAllocator::CUDAPluggableAllocator::recordStream(const c10::DataPtr&, torch::cuda::CUDAPluggableAllocator::streamType)’ marked ‘override’, but does not override
2025-03-25T14:19:25.0192670Z #5 1815.5   125 |   void recordStream(const c10::DataPtr&, streamType stream) override;
2025-03-25T14:19:25.0192737Z #5 1815.5       |        ^~~~~~~~~~~~
```

Apex Commit : ROCm/apex#188
@amd-sriram amd-sriram marked this pull request as draft April 15, 2025 13:47
@amd-sriram amd-sriram closed this May 8, 2025
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.

1 participant