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

Incorporating contrastive prefixes with PrefixTuning #2012

Open
AvantiB opened this issue Aug 17, 2024 · 2 comments
Open

Incorporating contrastive prefixes with PrefixTuning #2012

AvantiB opened this issue Aug 17, 2024 · 2 comments

Comments

@AvantiB
Copy link

AvantiB commented Aug 17, 2024

Feature request

I was wondering if you could shed some light on how to incorporate contrastive prefixes with the PrefixTuning wrapper (https://huggingface.co/docs/peft/en/package_reference/prefix_tuning) as detailed in this paper (https://aclanthology.org/2022.findings-acl.229/).

Motivation

Contrastive Prefixes have shown to have a similar number of parameters and yet show a better alignment with the attributes being controlled for controllable text generation

Your contribution

academic

@BenjaminBossan
Copy link
Member

If your question is how to use this method in PEFT right now, the answer is that it's not implemented. If you mean how PEFT could be extended to incorporate this method, that's a bit more difficult to answer, as I don't know the details of this method. Could you please clarify?

Copy link

This issue has been automatically marked as stale because it has not had recent activity. If you think this still needs to be addressed please comment on this thread.

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