Skip to content

Conversation

@davidlin54
Copy link
Contributor

@davidlin54 davidlin54 commented Nov 18, 2024

Move MethodHolder to public to be reused in internal benchmarking

Reviewed By: JacobSzwejbka

Differential Revision: D65905482

@pytorch-bot
Copy link

pytorch-bot bot commented Nov 18, 2024

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/6933

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:

❌ 3 New Failures

As of commit 547af2d with merge base ce77995 (image):

NEW FAILURES - The following jobs have failed:

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

@facebook-github-bot facebook-github-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 Nov 18, 2024
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65905482

davidlin54 pushed a commit to davidlin54/executorch that referenced this pull request Nov 19, 2024
Summary:

This adds benchmarking for training. It loads the 3 methods required for training (param names, param index, gradient index) and runs the exported forward+backwards, then runs the optimizer.

Reviewed By: JacobSzwejbka

Differential Revision: D65905482
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65905482

@davidlin54
Copy link
Contributor Author

@pytorchbot label "topic: not user facing"

Summary:

This adds benchmarking for training. It loads the 3 methods required for training (param names, param index, gradient index) and runs the exported forward+backwards, then runs the optimizer.

Reviewed By: JacobSzwejbka

Differential Revision: D65905482
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D65905482

MmapUseMlockIgnoreErrors,
};

struct MethodHolder {
Copy link
Contributor

Choose a reason for hiding this comment

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

can you leave it private and just make a friend class for benchmarking?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmm I don't want to access any data in Module (and don't even have a reference to Module, since benchmarking uses program/method), just want to use MethodHolder as a helper structure. I can also just copy and paste it into the benchmark runner code if you prefer this to be private

@facebook-github-bot
Copy link
Contributor

Hi @davidlin54!

Thank you for your pull request.

We require contributors to sign our Contributor License Agreement, and yours needs attention.

You currently have a record in our system, but the CLA is no longer valid, and will need to be resubmitted.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@shoumikhin
Copy link
Contributor

@JacobSzwejbka, @tarun292, @Gasoonjia can you please take a look?

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 topic: not user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants