-
Notifications
You must be signed in to change notification settings - Fork 4.4k
[feat] Support fine-grained activation offloading in fused group mlp #5082
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
lhb8125
merged 26 commits into
NVIDIA:main
from
lhb8125:feat/selective-offload-on-srelu-fuser
Jun 17, 2026
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
50f5dd6
Support selective offload for TE fused grouped MLP
lhb8125 7111bc7
Rename TE fine-grained offload marker
lhb8125 52cb66c
Simplify fused grouped MLP offload attrs
lhb8125 531a436
Gate fused grouped MLP offload on TE 2.17
lhb8125 faae085
Refine fused grouped MLP offload grouping
lhb8125 7739185
Revert "Refine fused grouped MLP offload grouping"
lhb8125 ccb6da3
Use opt-out TE grouped MLP offload markers
lhb8125 c4c10c6
Set generic TE activation offload opt-out marker
lhb8125 8d7a05b
Fix integrity manifest direct test race
lhb8125 061a0dd
Sync fused grouped MLP offload with TE API
lhb8125 db02c47
Use TE op offload opt-out API
lhb8125 18164a7
Rename TE activation offload API usage
lhb8125 217ffca
Use TE activation offload policy setter
lhb8125 2d553a7
Skip non-offloadable activation tensors
lhb8125 cfe0d08
Add fused grouped MLP offload module
lhb8125 4c3a50f
Clean up fused group MLP offload follow-ups
lhb8125 ebf631c
Respect TE activation offload opt-out marker
lhb8125 2d6f25f
Fix transformer config formatting
lhb8125 8014953
Fix activation offload test import order
lhb8125 b389f3e
test: remove grouped mlp offload test changes
lhb8125 181c93a
fix: override stale streams during full CUDA graph capture
lhb8125 d966480
fix: honor TE non-offload marks on tensor wrappers
lhb8125 04a75da
fix: avoid formatting saved tensors during graph capture
lhb8125 412f21a
test: remove TE wrapper offload unit test
lhb8125 6a96a56
chore: update copyright headers
lhb8125 c6dd285
revert: drop full CUDA graph changes
lhb8125 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
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
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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
local_partial_moe_offloadbypassThe new escape hatch allows
cuda_graph_impl="local"withfine_grained_activation_offloading=Truewhen offloading is limited toexpert_fc1/moe_actand the full MoE module is not graphed. This PR adds unit tests for the TE-version gate and the_make_fused_opsmarkers, but nothing exercises this new branch inTransformerConfig.__post_init__. A test that constructs aTransformerConfigwithcuda_graph_impl="local"andoffload_modules=["expert_fc1"](should pass) alongside a counterpart that includes an extra module or setsCudaGraphModule.moeincuda_graph_modules(should raise) would close this gap.