default.yaml 1.26 KB
Newer Older
lintangsutawika's avatar
lintangsutawika committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
task: squadv2
dataset_path: squad_v2
output_type: greedy_until
training_split: train
validation_split: validation
doc_to_text: "Title: {{title}}\n\nBackground: {{context}}\n\nQuestion: {{question}}\n\n Answer:"
doc_to_target: "{% if answers.text| length > 0 %}{{answers.text}}{% else %}{{['unanswerable']}}{% endif %}"
target_delimiter: ""
should_decontaminate: true
doc_to_decontamination_query: context
process_results: !function utils.process_results
generation_kwargs:
  until:
    - "\n\n"
    - "\n"
  do_sample: false
  temperature: 0.0
filter_list:
  - name: remove_whitespace
    filter:
      - function: remove_whitespace
      - function: take_first
metric_list:
lintangsutawika's avatar
update  
lintangsutawika committed
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
  - metric: exact
    aggregation: !function utils.exact
    higher_is_better: true
  # - metric: f1
  #   aggregation: mean
  #   higher_is_better: true
  # - metric: HasAns_exact
  #   aggregation: mean
  #   higher_is_better: true
  # - metric: HasAns_f1
  #   aggregation: mean
  #   higher_is_better: true
  # - metric: NoAns_exact
  #   aggregation: mean
  #   higher_is_better: true
  # - metric: NoAns_f1
  #   aggregation: mean
  #   higher_is_better: true
  # - metric: best_exact
  #   aggregation: mean
  #   higher_is_better: true
  # - metric: best_f1
  #   aggregation: mean
  #   higher_is_better: true