-
Notifications
You must be signed in to change notification settings - Fork 242
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
Remove unnecessary system role's index check for llama3 #898
base: main
Are you sure you want to change the base?
Conversation
Lllama3 doesnt require this
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/torchtune/898
Note: Links to docs will display an error until the docs builds have been completed. This comment was automatically generated by Dr. CI and updates every 15 minutes. |
Hi @musab-mk, thanks for the PR. I was not aware llama3 supports system prompts outside of the first message, do you have a reference for this? Modifying |
@RdoubleA llama3 doesn't have this type of restriction: I was trying to fine-tune for supporting in-chat file uploading support. But I guess I have to maintain a private fork if that's not possible to merge this? Or any other recommendations? |
Ok I see, thanks for sharing. You're right that this does not explicitly enforce system prompt as the first message. We are adding this check intentionally. The purpose of
I'm curious, does this require you to change the system prompt often? |
Yes, this requires adding a new system message in the middle of the conversation. For example: User: Can you plot a graph of my sales data ? |
Lllama3 supports system messages in arbitrary indexes