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

Fine tune decoder-only transformers in seq2seq manner #27005

Closed
YerongLi opened this issue Oct 23, 2023 · 2 comments
Closed

Fine tune decoder-only transformers in seq2seq manner #27005

YerongLi opened this issue Oct 23, 2023 · 2 comments

Comments

@YerongLi
Copy link

YerongLi commented Oct 23, 2023

Feature request

#1464
This posts discuss fine-tuning GPT2,
With GPT2/LLaMA, by default, we need to input the [prompt label] the whole sentence model([prompt label]) in fine-tuning and caculate the CrossEntropy on the label part, and the model output the model().logits.

Are there any ways to input the prompt only and do the fine-tuning in the seq2seq manner? (model(prompt)), this way we minimize the loss of log p(y|x).

Get the feature of model(prompt) rather than model([prompt label]) is the whole point.

Motivation

seq2seq equivalence fine-tuning workflow for decoder-only transformers.

Your contribution

I could submit PR with discussion as a guidance.

@ArthurZucker
Copy link
Collaborator

Hey 🤗 thanks for opening an issue! We try to keep the github issues for bugs/feature requests.
Could you ask your question on the forum instead? I'm sure the community will be of help!

Thanks!

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.

Please note that issues that do not follow the contributing guidelines are likely to be ignored.

@github-actions github-actions bot closed this as completed Dec 1, 2023
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