Repository navigation
[C/PyTorch] Removed MPI dependence in Userbuffers - #901
Merged
Merged
Conversation
Signed-off-by: Alp Dener <adener@nvidia.com>
…s is now always compiled Signed-off-by: Alp Dener <adener@nvidia.com>
Signed-off-by: Alp Dener <adener@nvidia.com>
timmoon10
reviewed
Jun 10, 2024
timmoon10
self-requested a review
June 10, 2024 21:11
Signed-off-by: Alp Dener <adener@nvidia.com>
Signed-off-by: Alp Dener <adener@nvidia.com>
denera
force-pushed
the
remove-mpi-from-userbuffers
branch
from
June 12, 2024 00:13
40ca7e6 to
6dee146
Compare
Member
|
/te-ci pytorch |
timmoon10
requested changes
Jun 12, 2024
…formerEngine into remove-mpi-from-userbuffers
Signed-off-by: Alp Dener <adener@nvidia.com>
Member
|
/te-ci pytorch |
timmoon10
approved these changes
Jun 13, 2024
ksivaman
reviewed
Jun 13, 2024
ksivaman
reviewed
Jun 13, 2024
Signed-off-by: Alp Dener <adener@nvidia.com>
ksivaman
reviewed
Jun 13, 2024
Signed-off-by: Alp Dener <adener@nvidia.com>
…ompile into transformer_engine/common/CmakeLists.txt Signed-off-by: Alp Dener <adener@nvidia.com>
8 of 13 tasks
5 of 13 tasks
8 tasks
8 of 13 tasks
This was referenced Jul 3, 2024
8 of 13 tasks
denera
added a commit
to denera/TransformerEngine
that referenced
this pull request
Jul 20, 2024
This reverts commit e706e5f. Signed-off-by: Alp Dener <adener@nvidia.com>
1 of 6 tasks
xiaoteng-cui-mt
pushed a commit
to MooreThreads/MT-TransformerEngine
that referenced
this pull request
Oct 9, 2026
* added DL framework callbacks for bootstrapping userbuffers without MPI Signed-off-by: Alp Dener <adener@nvidia.com> * removed userbuffers availability check in TE modules since userbuffers is now always compiled Signed-off-by: Alp Dener <adener@nvidia.com> * added comm+GEMM overlap example with LayerNormMLP Signed-off-by: Alp Dener <adener@nvidia.com> * lintin and review fixes Signed-off-by: Alp Dener <adener@nvidia.com> * linting and review fixes Signed-off-by: Alp Dener <adener@nvidia.com> * added header guards Signed-off-by: Alp Dener <adener@nvidia.com> * removed defunct userbuffers checks in build_utils and setup.py Signed-off-by: Alp Dener <adener@nvidia.com> * added exposed API in modules/base.py to __all__ Signed-off-by: Alp Dener <adener@nvidia.com> * removed transformer_engine/CMakeLists.txt and shifted all TE/common compile into transformer_engine/common/CmakeLists.txt Signed-off-by: Alp Dener <adener@nvidia.com> --------- Signed-off-by: Alp Dener <adener@nvidia.com> Co-authored-by: Tim Moon <4406448+timmoon10@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR splits off the userbuffers MPI-dependence removal from PR #760.
With these changes, userbuffers is now bootstrapped via callbacks to
torch.distributedcollectives. In the absence of the MPI dependence, userbuffers is always compiled as part of the PyTorch extension and no longer requires theNVTE_WITH_USERBUFFERS=1flag.The old MPI-based bootstrapping can be re-activated via
UB_MPI_BOOTSTRAP=1at compile time.Type of change
Changes
NVTE_WITH_USERBUFFERS=1option and Userbuffers is now always compiled into the PyTorch extensions module.torch.distributedcollectives.UB_MPI_BOOTSTRAP=1option in the TE build activates the old Userbuffers bootstrapping via MPI collectives.transformer_engine.pytorch.module.base.initialize_ub(...)is now more conveniently accessible viatransformer_engine.pytorch.initialize_ub(...).transformer_engine.pytorch.destroy_ub(...).transformer_engine.pytorch.initialize_ub(...)now requires the tensor-parallel process group instead of just the tensor-parallel size.te.LayerNormMLP.Checklist: