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

About the prompt #12

Open
frkmac3 opened this issue Dec 28, 2023 · 2 comments
Open

About the prompt #12

frkmac3 opened this issue Dec 28, 2023 · 2 comments

Comments

@frkmac3
Copy link

frkmac3 commented Dec 28, 2023

{data_point["output"]}"""
Hi, codes here already integrated output label into prompt, so the model already know the real label before prediction? So what about the testing stage when the model don't know the real label?

@melights
Copy link
Collaborator

Hi @frkmac3, during testing stage, the generation function use user_input_ids to prompt the model, which doesn't contains the label.

kwargs["input_ids"] = kwargs.pop("user_input_ids")

Hope that helps. If you have any further questions or need additional information, please feel free to ask.

@MLgeek7325
Copy link

MLgeek7325 commented Jan 21, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants