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

instruction finetuning IDEFICS #451

Open
schwarzwalder93 opened this issue Nov 29, 2023 · 0 comments
Open

instruction finetuning IDEFICS #451

schwarzwalder93 opened this issue Nov 29, 2023 · 0 comments

Comments

@schwarzwalder93
Copy link

schwarzwalder93 commented Nov 29, 2023

Hi Team,

I would like to instruct fine tune IDEFICS on custom dataset. Could you provide the training script used to produce idefics-9b-instruct ?

I suppose changes will be need to following snippets:

labels should correspond to responses/answers to the input instructions:

Modifying the logic before loss computation:
https://github.com/huggingface/transformers/blob/bd50402b56980ff17e957342ef69bd9b0dd45a7b/src/transformers/models/idefics/modeling_idefics.py#L1508C1-L1523C97

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

1 participant