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

Do I Just splice instructions and text together to test? #1142

Closed
waywayliu opened this issue Apr 23, 2023 · 1 comment
Closed

Do I Just splice instructions and text together to test? #1142

waywayliu opened this issue Apr 23, 2023 · 1 comment

Comments

@waywayliu
Copy link

I use lora to fine-tune llama, and I have two inputs for training, using instruction and text.
And after quantization using "Instruction mode with Alpaca" I only have one input, so how do I test it, do I just splice the instruction and text together?
Thank you!

@SlyEcho
Copy link
Collaborator

SlyEcho commented Apr 24, 2023

Alpaca uses special formatting to separate instructions and data. You can see the templates used for tloen/alpaca-lora. There are two variants, one with just instruction, and one with instruction and input.

Yes, they are spliced together for the token input to the model during training and for generating. When generating, you stop at the EOS special token or if the model generates another ### Instruction: prefix.

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

3 participants