File size: 757 Bytes
ed9f38e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
task: cole_fquad
dataset_path: json
dataset_kwargs:
  data_files: {validation: "@DATA@/graalul__COLE-public/fquad/fquad_validation.jsonl"}
test_split: validation
output_type: generate_until
num_fewshot: 0
doc_to_text: "Contexte : {{context}}\n\nQuestion : {{question}}\n\nRépondez en recopiant le passage exact du contexte qui répond à la question, sans rien ajouter."
process_docs: !function utils.has_answer
doc_to_target: "{{answers.text[0]}}"
generation_kwargs:
  until: []
  do_sample: false
  temperature: 0.0
  max_gen_toks: 64
process_results: !function utils.qa_results
metric_list:
  - metric: exact_match
    aggregation: mean
    higher_is_better: true
  - metric: f1
    aggregation: mean
    higher_is_better: true
metadata:
  version: 1.0