Skip to content

[spmd_types] enable transformers modeling backend - #4235

Merged
pianpwk merged 10 commits into
mainfrom
gh/pianpwk/83/head
Aug 25, 2026
Merged

pianpwk merged 10 commits into
mainfrom
gh/pianpwk/83/head

Conversation

@pianpwk

@pianpwk pianpwk commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

[ghstack-poisoned]
[ghstack-poisoned]
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 19, 2026
pianpwk added a commit that referenced this pull request Aug 19, 2026
ghstack-source-id: ead9759
Pull Request resolved: #4235
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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

HF backend configures enable_sp == tp_enabled, so we don't have to handle spmd.I/R

[ghstack-poisoned]
[ghstack-poisoned]
pianpwk added a commit that referenced this pull request Aug 20, 2026
ghstack-source-id: ead9759
Pull Request resolved: #4235
@pianpwk
pianpwk marked this pull request as ready for review August 20, 2026 16:44
@pianpwk
pianpwk requested a review from tianyu-l August 20, 2026 16:44
@tianyu-l

Copy link
Copy Markdown
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 24, 2026
ghstack-source-id: 3994f2b
Pull Request resolved: #4235
[ghstack-poisoned]
[ghstack-poisoned]
pianpwk added a commit that referenced this pull request Aug 24, 2026
ghstack-source-id: eb29fd5
Pull Request resolved: #4235
[ghstack-poisoned]
[ghstack-poisoned]
pianpwk added a commit that referenced this pull request Aug 25, 2026
ghstack-source-id: b614669
Pull Request resolved: #4235
@pianpwk
pianpwk changed the base branch from gh/pianpwk/83/base to main August 25, 2026 22:40
@pianpwk
pianpwk merged commit 4022b15 into main Aug 25, 2026
5 of 6 checks passed
acisseJZhong pushed a commit that referenced this pull request Sep 2, 2026
acisseJZhong pushed a commit that referenced this pull request Sep 2, 2026
ghstack-source-id: eb29fd5
Pull Request resolved: #4235

(cherry picked from commit 81c9948)
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants