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

Correct LoRA weights merging #1784

Merged
merged 1 commit into from
Mar 21, 2024
Merged

Correct LoRA weights merging #1784

merged 1 commit into from
Mar 21, 2024

Conversation

BastienHot
Copy link
Contributor

Correction of the merging code between the model's original layer weights and the LoRA model weights. This respect the principle of LoRA to dispose of the LoRA layers once we don't plan on training it more bur more importantly allows us to save and load the model as a ".keras" file.

Correction of the merging code between the model's original layer weights and the LoRA model weights.
This respect the principle of LoRA to dispose of the LoRA layers once we don't plan on training it more bur more importantly allows us to save and load the model as a ".keras" file.
Copy link

google-cla bot commented Mar 9, 2024

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@BastienHot BastienHot marked this pull request as draft March 9, 2024 18:19
@BastienHot BastienHot marked this pull request as ready for review March 9, 2024 18:19
@BastienHot BastienHot closed this Mar 9, 2024
@BastienHot BastienHot reopened this Mar 9, 2024
@fchollet
Copy link
Contributor

@mattdangerw Can you take a look?

Copy link
Member

@mattdangerw mattdangerw left a comment

Choose a reason for hiding this comment

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

lgtm!

@fchollet fchollet merged commit 02c9bae into keras-team:master Mar 21, 2024
2 of 4 checks passed
sitamgithub-MSIT pushed a commit to sitamgithub-MSIT/keras-io that referenced this pull request May 30, 2024
Correction of the merging code between the model's original layer weights and the LoRA model weights.
This respect the principle of LoRA to dispose of the LoRA layers once we don't plan on training it more bur more importantly allows us to save and load the model as a ".keras" file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants