mbpp.yaml 819 Bytes
Newer Older
Hojin Lee's avatar
Hojin Lee committed
1
2
3
4
5
6
task: mbpp
dataset_path: google-research-datasets/mbpp
dataset_name: full
unsafe_code: true
output_type: generate_until
test_split: test
Baber's avatar
Baber committed
7
8
9
repeats: 20
doc_to_text: "{{text|trim}}\n{{code}}.split(':')[0]:\n"
doc_to_target: "{% if is_fewshot is defined %}{{code}}\n{% else %}{{test_list[0]}}\n{{test_list[1]}}\n{{test_list[2]}}{% endif %}"
Minho Ryu's avatar
Minho Ryu committed
10
target_delimiter: ""
Baber's avatar
Baber committed
11
gen_prefix: "Here is the completed function:\n\n```python\n"
Hojin Lee's avatar
Hojin Lee committed
12
metric_list:
Baber's avatar
Baber committed
13
  - metric: !function utils.pass_at_k
Hojin Lee's avatar
Hojin Lee committed
14
15
    aggregation: mean
    higher_is_better: true
Baber's avatar
Baber committed
16
    k: [ 10 ]
Hojin Lee's avatar
Hojin Lee committed
17
generation_kwargs:
Baber's avatar
Baber committed
18
19
20
21
22
23
24
25
26
27
28
  until: [
    "\nclass",
    "\nassert",
    '\n"""',
    "\nprint",
    "\nif",
    "\n```",
    "\n#",
    "\n<|/",
    "<|eot_id|>",
  ]
Hojin Lee's avatar
Hojin Lee committed
29
30
31
32
33
  do_sample: false
fewshot_config:
  sampler: first_n
  samples: !function utils.list_fewshot_samples
metadata:
Baber's avatar
Baber committed
34
  version: 2.0