-
Notifications
You must be signed in to change notification settings - Fork 689
add more options for loading checkpoints #5823
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
This PR adds support to load qat_lora checkpoints. It mainly does the following two things: - Refactor the existing quantization flow for SpinQuant to be separate function, which is used to load QAT checkpoint as well since they share the same format. - For QAT_LoRA checkpoint, we do one more extra step after quantization. It replaces `Int8DynActInt4WeightLinear` layers with `Int8DynActInt4WeightLinearLoRA` which contains LoRA adaptor. Differential Revision: [D63714794](https://our.internmc.facebook.com/intern/diff/D63714794/) [ghstack-poisoned]
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/5823
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit 96e6198 with merge base 152e22d ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This pull request was exported from Phabricator. Differential Revision: D63714794 |
This PR adds support to load qat_lora checkpoints. It mainly does the following two things: - Refactor the existing quantization flow for SpinQuant to be separate function, which is used to load QAT checkpoint as well since they share the same format. - For QAT_LoRA checkpoint, we do one more extra step after quantization. It replaces `Int8DynActInt4WeightLinear` layers with `Int8DynActInt4WeightLinearLoRA` which contains LoRA adaptor. Differential Revision: [D63714794](https://our.internmc.facebook.com/intern/diff/D63714794/) ghstack-source-id: 245945707 Pull Request resolved: #5823
This PR adds support to load qat_lora checkpoints. It mainly does the following two things: - Refactor the existing quantization flow for SpinQuant to be separate function, which is used to load QAT checkpoint as well since they share the same format. - For QAT_LoRA checkpoint, we do one more extra step after quantization. It replaces `Int8DynActInt4WeightLinear` layers with `Int8DynActInt4WeightLinearLoRA` which contains LoRA adaptor. Differential Revision: [D63714794](https://our.internmc.facebook.com/intern/diff/D63714794/) [ghstack-poisoned]
Pull Request resolved: #5823 Internal: This PR adds support to load qat_lora checkpoints. It mainly does the following two things: - Refactor the existing quantization flow for SpinQuant to be separate function, which is used to load QAT checkpoint as well since they share the same format. - For QAT_LoRA checkpoint, we do one more extra step after quantization. It replaces `Int8DynActInt4WeightLinear` layers with `Int8DynActInt4WeightLinearLoRA` which contains LoRA adaptor. Differential Revision: [D63714794](https://our.internmc.facebook.com/intern/diff/D63714794/) ghstack-source-id: 245956347
This pull request was exported from Phabricator. Differential Revision: D63714794 |
This pull request has been merged in 9ff3351. |
Stack from ghstack (oldest at bottom):
Differential Revision: D63714794