-
Notifications
You must be signed in to change notification settings - Fork 752
Refactor LLMEdgeManager's to_dtype #9542
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
Conversation
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/9542
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New FailuresAs of commit 9192d58 with merge base 012f120 ( NEW FAILURES - The following jobs have failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
|
@iseeyuan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@pytorchbot label "topic: not user facing" |
|
|
||
| # Checkpoint dtype should be lower or equal precision to the dtype override. | ||
| # override dtype | ||
| checkpoint_dtype = edge_manager.model.checkpoint_dtype |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure why we need to keep this original checkpoint_dtype, since it would be overriden in the line below. Just to keep the behavior of the existing code. @jackzhxng and @kimishpatel , what's the reason behind this, for weight quantization?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep it's for quantization
|
@iseeyuan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@iseeyuan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@iseeyuan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
jackzhxng
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be okay
|
|
||
| # Checkpoint dtype should be lower or equal precision to the dtype override. | ||
| # override dtype | ||
| checkpoint_dtype = edge_manager.model.checkpoint_dtype |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yep it's for quantization
|
@iseeyuan has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Summary: Small refactor to aggregate dtype override in to_dtype method. Test Plan: CI Reviewed By: billmguo Differential Revision: D71736608 Pulled By: iseeyuan
3c6c1ab to
9192d58
Compare
|
This pull request was exported from Phabricator. Differential Revision: D71736608 |
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
Summary
Small refactor to aggregate dtype override in to_dtype method.
Test plan
CI