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

Train Custom data set PDF #12

Open
diouck opened this issue Oct 31, 2023 · 1 comment
Open

Train Custom data set PDF #12

diouck opened this issue Oct 31, 2023 · 1 comment

Comments

@diouck
Copy link

diouck commented Oct 31, 2023

Hello, Super interesting. I would like to train the model on my own data in pdf format.
How to adapt the code. instead of using # The instruction dataset to use
dataset_name = "mlabonne/guanaco-llama2-1k" I would like to replace it with
dataset= doc.pdf but it sucks.
Do you have an idea? THANKS

@mlabonne
Copy link
Owner

mlabonne commented Nov 1, 2023

Hi, in your case you want to create a dataset based on your PDFs. The code you're talking about is designed for instruction tuning, which means it requires pairs of instructions and answers. You could generate those using ChatGPT for example (see this: https://github.com/teknium1/GPTeacher).

Another option is to change the training objective from instruction tuning to next-token prediction (the pre-training task), but you can't use this code. I'd recommend checking the Axolotl library in this case: https://github.com/OpenAccess-AI-Collective/axolotl

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