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

If I want to add my own designed prompts before each question, how should I modify the code #230

Open
ALLISWELL8 opened this issue Apr 27, 2024 · 1 comment

Comments

@ALLISWELL8
Copy link

No description provided.

@loubnabnl
Copy link
Collaborator

You can try using the --prefix argument which adds a prefix to the prompts, but be careful it might influence the generations style if you're using instruct models (e.g generating some text before the actual code which will cause the test to fail with the default postprocessing).

We have an "instruction-tuning" version of HumanEval under HumanEvalPack which supports different prompt templates depending on the models, example here

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