-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Question] add_generation_prompt=True
on prompt
#2346
Comments
Can you point the "previous version" you are refering to? |
I think it has been like this from the initial implementation (see #2020) |
Sorry, I didn't say that right. I mean before v0.11.0, there was no Lines 156 to 160 in 55cc4b1
Since the code has been refactored , I'm not sure if there was generation prompt or not. If so, could you please point out where it was implemented? |
Yes the example code was wrong, you need to add a generation prompt at the end of the prompt. |
I see. Thanks a lot! |
Hi,
I noticed that from v0.11.0,
maybe_apply_chat_template
added generation prompt on the prompt of the example, which was different from the previous version.trl/trl/data_utils.py
Lines 86 to 88 in 0238d96
Was it a little bug? Will the generation prompt influence the final result?
A prompt reply is appreciated.
The text was updated successfully, but these errors were encountered: