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 patch for parameter partitioning in zero.Init() #6388

Merged
merged 5 commits into from
Sep 4, 2024

Conversation

tohtana
Copy link
Contributor

@tohtana tohtana commented Aug 21, 2024

This PR fixes an issue addressed in #5921.
With this change, we only apply the patch for parameter partitioning to classes that have __init__ so that we can avoid applying the patch multiple times.
The class that does not have __init__ now uses its superclass's one. So this PR also applies the patch to the root class, torch.nn.modules.module.Module.

Thanks @VeryLazyBoy for the report and initial solution.

@tohtana tohtana requested a review from tjruwase as a code owner August 21, 2024 03:23
@tjruwase tjruwase added this pull request to the merge queue Sep 3, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 3, 2024
@tohtana tohtana added this pull request to the merge queue Sep 4, 2024
Merged via the queue into master with commit ddeb0c1 Sep 4, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants