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

Finetune #1088

Closed
liuxinxin123 opened this issue Dec 4, 2023 · 4 comments
Closed

Finetune #1088

liuxinxin123 opened this issue Dec 4, 2023 · 4 comments
Labels
feature request New feature or request

Comments

@liuxinxin123
Copy link

Can we support instruction finetune?

@liuxinxin123 liuxinxin123 added the feature request New feature or request label Dec 4, 2023
@StellaAthena
Copy link
Member

Nothing special is required to do instruction-finetuning. It's the same as normal finetuning, just with different data.

if you're interested in RLHF, that's not something we plan on supporting, however there are libraries such as trl and trlX that support this. The later library has a WIP integration with GPT-NeoX

@StellaAthena StellaAthena closed this as not planned Won't fix, can't repro, duplicate, stale Dec 5, 2023
@iNeil77
Copy link

iNeil77 commented Jun 27, 2024

Hi @StellaAthena, I think you mean (If I'm not mistaken) to line up the instruct data as an append of instruction and response and continue with regular LM training. However, for most instruction tuning, it is standard to mask the gradient updates for the instruction and only backdrop them for the response. Does the framework make this possible?

@StellaAthena
Copy link
Member

Hi @StellaAthena, I think you mean (If I'm not mistaken) to line up the instruct data as an append of instruction and response and continue with regular LM training. However, for most instruction tuning, it is standard to mask the gradient updates for the instruction and only backdrop them for the response. Does the framework make this possible?

There's an open PR adding support for this here. We also have started implementing RLHF features since my comment, e.g., here and here.

@iNeil77
Copy link

iNeil77 commented Jun 28, 2024

Thanks for the reply! Will check it out

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants