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

fix: adjust llama MLP name from dense to mlp to correctly apply lora #2760

Merged
merged 1 commit into from
Nov 19, 2024

Conversation

drbh
Copy link
Collaborator

@drbh drbh commented Nov 19, 2024

This PR simply renames self.dense to self.mlp to fix a bug when applying lora's to llama models. As mentioned in the original bug report get_mlp_weights failed to apply the lora in the case no mlp attr existed on the layer. This PR fixes this issue with llama based models

Bug indicated here: #2715

@drbh drbh merged commit bd6e8b3 into main Nov 19, 2024
10 of 12 checks passed
@drbh drbh deleted the rename-llama-mlp-layer-attr branch November 19, 2024 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants