Skip to content
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

fix eager mode spmd module loading with fsdpv2 #7631

Merged
merged 1 commit into from
Jul 4, 2024

Conversation

JackCaoG
Copy link
Collaborator

@JackCaoG JackCaoG commented Jul 4, 2024

The problem is module.to is always a empty + to_copy. in eager mode empty is a expand and will be evaluated directly. However this evulation will result in a replicated sharding spec. In fsdpv2 code, we incorrectly believe this tensor is intentionally replicated and fsdpv2 won't shard it.

Copy link
Collaborator

@alanwaketan alanwaketan left a comment

Choose a reason for hiding this comment

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

LGTM.

@JackCaoG JackCaoG merged commit 10a5130 into master Jul 4, 2024
23 checks passed
bhavya01 pushed a commit that referenced this pull request Jul 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants