SYSTEM_MESSAGE_GENERIC='You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.'# noqa: E501
'You are an expert at Python programming, code execution, test case generation, and fuzzing.'# noqa: E501
),
],
round=[dict(role='HUMAN',prompt='{prompt}')])),
retriever=dict(type=ZeroRetriever),
inferencer=dict(type=GenInferencer))
lcb_code_execution_eval_cfg=dict(
evaluator=dict(type=LCBCodeExecutionEvaluator,),
pred_role='BOT',
)
LCBCodeExecution_dataset=dict(
type=LCBCodeExecutionDataset,
abbr='lcb_code_execution',
path='opencompass/execution-v2',
reader_cfg=lcb_code_execution_reader_cfg,
infer_cfg=lcb_code_execution_infer_cfg,
eval_cfg=lcb_code_execution_eval_cfg,
)
# TestOuputput Dataset
lcb_test_output_reader_cfg=dict(
input_columns=[
'prompt',
],
output_column='evaluation_sample',
)
system_prompt='You are an expert Python programmer. You will be given a question (problem specification) and will generate a correct Python program that matches the specification and passes all tests. You will NOT return anything except for the program.'# noqa: E501