template="Please write a python program to address the following QUESTION. Your ANSWER should be in a code block format like this: ```python # Write your code here ```. \nQUESTION:\n{question} {starter}\nANSWER:\n"),
template='Please write a python program to address the following QUESTION. Your ANSWER should be in a code block format like this: ```python # Write your code here ```. \nQUESTION:\n{question} {starter}\nANSWER:\n'),
template="Please write a python program to address the following QUESTION. Your ANSWER should be in a code block format like this: ```python # Write your code here ```. \nQUESTION:\n{question} {starter}\nANSWER:\n"),
template='Please write a python program to address the following QUESTION. Your ANSWER should be in a code block format like this: ```python # Write your code here ```. \nQUESTION:\n{question} {starter}\nANSWER:\n'),
@@ -7,8 +7,8 @@ from opencompass.utils.text_postprocessors import first_capital_postprocess
maxmin_reader_cfg=dict(
input_columns=["nl_tokens","pl_tokens"],
output_column="answer",
input_columns=['nl_tokens','pl_tokens'],
output_column='answer',
)
maxmin_infer_cfg=dict(
...
...
@@ -16,8 +16,8 @@ maxmin_infer_cfg = dict(
type=PromptTemplate,
template=dict(
round=[
dict(role="HUMAN",prompt="Code:{pl_tokens}\nThe aim of the code: {nl_tokens}\nQuestion: Please tell me what \"<mask>\" in the code should be replaced with and you must response to me only A or B.\nA. max\nB. min\nAnswer:"),
dict(role="BOT",prompt="{answer}"),
dict(role='HUMAN',prompt="Code:{pl_tokens}\nThe aim of the code: {nl_tokens}\nQuestion: Please tell me what \"<mask>\" in the code should be replaced with and you must response to me only A or B.\nA. max\nB. min\nAnswer:"),