qasper.yaml 1.08 KB
Newer Older
Baber Abbasi's avatar
Baber Abbasi committed
1
2
3
4
5
6
7
8

tag:
  - longbench
task: longbench_qasper
dataset_path: THUDM/LongBench
test_split: test
dataset_name: qasper
doc_to_text: 'You are given a scientific article and a question. Answer the question as concisely as you can, using a single phrase or sentence if possible. If the question cannot be answered based on the information in the article, write "unanswerable". If the question is a yes/no question, answer "yes", "no", or "unanswerable". Do not provide any explanation.\n\nArticle: {{context}}\n\n Answer the question based on the above article as concisely as you can, using a single phrase or sentence if possible. If the question cannot be answered based on the information in the article, write "unanswerable". If the question is a yes/no question, answer "yes", "no", or "unanswerable". Do not provide any explanation.\n\nQuestion: {{input}}\n\nAnswer:'
Baber Abbasi's avatar
Baber Abbasi committed
9
doc_to_target: '{{answers[0]}}'
Baber Abbasi's avatar
Baber Abbasi committed
10
11
12
13
generation_kwargs:
  max_gen_toks: 128
  temperature: 1
  do_sample: True
Baber Abbasi's avatar
Baber Abbasi committed
14
  until: []
Baber Abbasi's avatar
Baber Abbasi committed
15
16
17
18
19
metric_list:
  - metric: !function metrics.qa_f1_score
    aggregation: mean
    higher_is_better: True
metadata:
Baber Abbasi's avatar
Baber Abbasi committed
20
  version: 2.0