Skip to content

Conversation

navsud
Copy link
Contributor

@navsud navsud commented Oct 13, 2025

Summary: Previously, dict(model.named_modules()) was called for every node in the model, which makes it very slow especially for LLMs which have large number of nodes. Hence, moved it outside such that it is only called once per model prepare.

Differential Revision: D84389318

Summary: Previously, dict(model.named_modules()) was called for every node in the model, which makes it very slow especially for LLMs which have large number of nodes. Hence, moved it outside such that it is only called once per model prepare.

Differential Revision: D84389318
Copy link

pytorch-bot bot commented Oct 13, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/ao/3159

Note: Links to docs will display an error until the docs builds have been completed.

❗ 1 Active SEVs

There are 1 currently active SEVs. If your PR is affected, please view them below:

✅ No Failures

As of commit ade34e0 with merge base 8c6d754 (image):
💚 Looks good so far! There are no failures yet. 💚

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 13, 2025
Copy link

meta-codesync bot commented Oct 13, 2025

@navsud has exported this pull request. If you are a Meta employee, you can view the originating Diff in D84389318.

@navsud navsud added the topic: performance Use this tag if this PR improves the performance of a feature label Oct 13, 2025
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 Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported topic: performance Use this tag if this PR improves the performance of a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant