Please refer to Table 3 of [code llama](https://scontent-nrt1-2.xx.fbcdn.net/v/t39.2365-6/369856151_1754812304950972_1159666448927483931_n.pdf?_nc_cat=107&ccb=1-7&_nc_sid=3c67a6&_nc_ohc=TxT1PKkNBZoAX8zMHbm&_nc_ht=scontent-nrt1-2.xx&oh=00_AfDmmQAPzqX1-QOKIDUV5lGKzaZqt0CZUVtxFjHtnh6ycQ&oe=65F5AF8F) for original results if needed.
Please refer to Table 3 of [code llama](https://scontent-nrt1-2.xx.fbcdn.net/v/t39.2365-6/369856151_1754812304950972_1159666448927483931_n.pdf?_nc_cat=107&ccb=1-7&_nc_sid=3c67a6&_nc_ohc=TxT1PKkNBZoAX8zMHbm&_nc_ht=scontent-nrt1-2.xx&oh=00_AfDmmQAPzqX1-QOKIDUV5lGKzaZqt0CZUVtxFjHtnh6ycQ&oe=65F5AF8F) for original results if needed.
## Citation
## Citation
```
```
...
@@ -40,4 +40,4 @@ Please refer to Table 3 of [code llama](https://scontent-nrt1-2.xx.fbcdn.net/v/t
...
@@ -40,4 +40,4 @@ Please refer to Table 3 of [code llama](https://scontent-nrt1-2.xx.fbcdn.net/v/t
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
...
@@ -7,8 +7,8 @@ from opencompass.utils.text_postprocessors import first_capital_postprocess
maxmin_reader_cfg=dict(
maxmin_reader_cfg=dict(
input_columns=["nl_tokens","pl_tokens"],
input_columns=['nl_tokens','pl_tokens'],
output_column="answer",
output_column='answer',
)
)
maxmin_infer_cfg=dict(
maxmin_infer_cfg=dict(
...
@@ -16,8 +16,8 @@ maxmin_infer_cfg = dict(
...
@@ -16,8 +16,8 @@ maxmin_infer_cfg = dict(
type=PromptTemplate,
type=PromptTemplate,
template=dict(
template=dict(
round=[
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='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:"),