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

Unexpected Keyword arguments prompt_params, adaptor_layers, deep_adaptor_tuning, deep_adaptor_tuning_ffn_only, parallel_adaptors #27

Closed
goru001 opened this issue May 1, 2022 · 7 comments

Comments

@goru001
Copy link

goru001 commented May 1, 2022

Hi @prajdabre ,

Thanks for doing great work with this library. I was trying to use it and ran into this issue where prompt_params, adaptor_layers, deep_adaptor_tuning, deep_adaptor_tuning_ffn_only, parallel_adaptors params are being passed here to forward here but the MBartForConditionalGeneration class's forward function doesn't expect it.

Wanted to understand from you if the fix is as simple as creating these params in forward function call with default value of None (in which case I'm guessing we would need to make changes in the forward functions implementation itself to use these params).

Let me know if you think I might be missing something here. Thanks!

@prajdabre
Copy link
Owner

Oh lord. I forgot to push my latest changes. Gimme a moment.

@prajdabre
Copy link
Owner

Ok please pull, run setup.py in the transformers folder and try again and lmk.

@goru001
Copy link
Author

goru001 commented May 2, 2022

Thanks @prajdabre for the quick reply. The code still seems to be failing here when we're not using --prompt_tuning as prompt_params is None.

When we use --prompt_tuning it fails here as tgt_len size is same as src_len size in attention mask.

@prajdabre
Copy link
Owner

Hi,

My bad again, I forgot to put if else conditions. Could you try using the following commit for now: ed5da80

Just revert to this commit and try again.

Really should not make breaking changes before going on vacation! 🤦

@prajdabre
Copy link
Owner

If you want you can also fix this by wrapping the lines you pointed out with an if condition which triggers only if prompt params is not none.

@goru001
Copy link
Author

goru001 commented May 2, 2022

Got it, sure @prajdabre. Thanks a lot for your quick replies. I've switched to tag v2.0 for now, but ya you're right I can fix this at my end. Just didnt do it for now as I wanted to get more comfortable with the code-base first.

I hope to contribute back as well in future. Thanks for doing the great work and Hope you'll enjoy your vacation! :)

@prajdabre
Copy link
Owner

Fixed please check @goru001

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