Repository navigation
[spmd_types] enable transformers modeling backend - #4235
Merged
Merged
Conversation
[ghstack-poisoned]
pianpwk
commented
Aug 20, 2026
| plain local shards rather than DTensor subclasses. Once that backend is ready, | ||
| the DTensor-based sharding here should be deprecated in favor of it. The | ||
| declarative ``ShardingConfig``/``SpmdLayout`` this module emits is already | ||
| backend-agnostic, so the migration is a backend switch rather than a rewrite. |
Contributor
Author
There was a problem hiding this comment.
HF backend configures enable_sp == tp_enabled, so we don't have to handle spmd.I/R
[ghstack-poisoned]
pianpwk
marked this pull request as ready for review
August 20, 2026 16:44
tianyu-l
approved these changes
Aug 20, 2026
Contributor
|
can we first deprecate partial_dtensor for transformers? |
pianpwk
added a commit
that referenced
this pull request
Aug 20, 2026
Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.12.0) (oldest at bottom): * #4235 * __->__ #4249 PR #3859 moved grouped expert weights from MoE.experts to MoE.routed_experts.inner_experts. Update the transformers modeling backend tests to follow the new module structure.
[ghstack-poisoned]
[ghstack-poisoned]
pianpwk
added a commit
that referenced
this pull request
Aug 25, 2026
following #4177 Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.12.0) (oldest at bottom): * #4235 * __->__ #4309
[ghstack-poisoned]
acisseJZhong
pushed a commit
that referenced
this pull request
Sep 2, 2026
following #4177 Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.12.0) (oldest at bottom): * #4235 * __->__ #4309 (cherry picked from commit c8ba4ee)
acisseJZhong
pushed a commit
that referenced
this pull request
Sep 2, 2026
Stack from [ghstack](https://github.com/ezyang/ghstack/tree/0.12.0) (oldest at bottom): * #4235 * __->__ #4249 PR #3859 moved grouped expert weights from MoE.experts to MoE.routed_experts.inner_experts. Update the transformers modeling backend tests to follow the new module structure. Original PR: #4249 (cherry picked from commit 1dfeff9)
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.
Stack from ghstack (oldest at bottom):