Skip to content

Commit

Permalink
revise mbpp prompt (#2645)
Browse files Browse the repository at this point in the history
  • Loading branch information
bzantium authored Jan 21, 2025
1 parent 12b6eeb commit ed9c6fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lm_eval/tasks/mbpp/mbpp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ dataset_name: full
unsafe_code: true
output_type: generate_until
test_split: test
doc_to_text: "You are an expert Python programmer, and here is your task: {{text}} Your code should pass these tests:\n\n{{test_list[0]}}\n{{test_list[1]}}\n{{test_list[2]}}\n[BEGIN]"
doc_to_text: "You are an expert Python programmer, and here is your task: {{text}} Your code should pass these tests:\n\n{{test_list[0]}}\n{{test_list[1]}}\n{{test_list[2]}}\n[BEGIN]\n"
doc_to_target: "{% if is_fewshot is defined %}{{code}}\n[DONE]{% else %}{{test_list[0]}}\n{{test_list[1]}}\n{{test_list[2]}}{% endif %}"
target_delimiter: "\n"
target_delimiter: ""
metric_list:
- metric: !function utils.pass_at_1
aggregation: mean
Expand Down

0 comments on commit ed9c6fc

Please sign in to comment.