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

Clarification about IA^3 #5

Closed
sordonia opened this issue May 18, 2022 · 2 comments
Closed

Clarification about IA^3 #5

sordonia opened this issue May 18, 2022 · 2 comments

Comments

@sordonia
Copy link

Hi :)

I was reading your interesting paper https://arxiv.org/pdf/2205.05638.pdf.

In Section 3.3, you specify that IA^3 adds a total of d_k + d_v + d_ff parameters.

However, if I look at this line, you seem to be allocating 2 * d vectors for each linear layer (multi_lora_a, multi_lora_b) and multiplying multi_lora_a with the input and multi_lora_b with the transformed input.

hidden = hidden * self.multi_lora_b.flatten()

Am I missing something?

Thank you for your clarification :-)

@sordonia
Copy link
Author

Sorry, I just realized that in your config file you restrict the trainable parameters so all good, thank you!

"trainable_param_names": ".*lora_b.*",

@HaokunLiu
Copy link
Collaborator

Hey, you found the hidden story. IA3 is actually morphed from LoRA.

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

No branches or pull requests

2 participants