-
Notifications
You must be signed in to change notification settings - Fork 4.4k
[Split 1/N of #3430] feat(mHC): basic pytorch implementation of manifold hyper connection #4531
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
Merged
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
feba22c
[Split 1/N of #3430] feat(mHC): basic pytorch implementation of manif…
Connor-XY 2dd457d
test(mHC): make test_transformer_layer self-contained for split #1
Connor-XY 1a31f14
test(mHC): update test_hybrid_moe_model GOLDEN_CONFIG for new mHC fields
Connor-XY f1d51a5
test(mHC): add direct coverage for BDA recompute path and block-level…
Connor-XY 3acfdb0
style: collapse short attention_mask to one line for black
Connor-XY c453dc7
refactor(mHC): address mathemakitten review on PR #4531
Connor-XY 210f189
refactor(mHC): drop dead is_last_layer_in_recompute_block kwarg pop
Connor-XY aa12d2d
refactor(mHC): extract attention hooks to dedup _forward_attention
Connor-XY cdb576c
refactor(mHC): thread h_res/h_post via attn_state slot, not instance …
Connor-XY 07365cb
style(mHC): restore _set_proj_residual context comment
Connor-XY 41e0e17
refactor(mHC): extract MLP hooks to dedup _forward_mlp
Connor-XY 143b9cf
style(mHC): shorten docstring line to fit 100-char pylint limit
Connor-XY 481138b
fix(mHC): only thread mhc_recompute_manager when manager exists
Connor-XY 009de20
refactor(mHC): add back-compat shim for renamed _forward_post_mlp hook
Connor-XY 096064e
test(mHC): pass pipeline rank to offload manager
Connor-XY f51948a
fix(mhc): update CUDA graph module API
FDecaYed c8cda51
refactor(mHC): address review feedback
Connor-XY dd54c69
fix(mHC): drop a bad rebase hunk and guard unsupported mHC configs
Connor-XY 2e5bf78
refactor(mHC): drop dead code and move remaining guards to config/init
Connor-XY b57eba5
test(mHC): make the full-recompute guard case reach the mHC check
Connor-XY 700a9ef
fix(mHC): do not reject MoE at config level
Connor-XY cc80c69
test(mHC): give the PP-guard case a pipeline_dtype
Connor-XY File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,10 @@ | ||
| # Copyright (c) 2023, NVIDIA CORPORATION. All rights reserved. | ||
| # Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved. | ||
|
|
||
| from .module import MegatronModule | ||
| from .spec_utils import ModuleSpec, build_module | ||
| from .transformer_config import MLATransformerConfig, TransformerConfig | ||
| from .transformer_layer import TransformerLayer, TransformerLayerSubmodules | ||
| from .transformer_layer import ( | ||
| HyperConnectionTransformerLayer, | ||
| TransformerLayer, | ||
| TransformerLayerSubmodules, | ||
| ) |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.