Commit e7f49cca authored by lintangsutawika's avatar lintangsutawika
Browse files

updated yaml

parent 3ec68d38
...@@ -5,6 +5,7 @@ validation_split: validation ...@@ -5,6 +5,7 @@ validation_split: validation
test_split: test test_split: test
doc_to_text: "Q: {{question}}\nA:" doc_to_text: "Q: {{question}}\nA:"
doc_to_target: "{% set answer_choices = doc['choices']['text'] %}{{answer_choices[int(doc['answerKey']) - 1]}}" doc_to_target: "{% set answer_choices = doc['choices']['text'] %}{{answer_choices[int(doc['answerKey']) - 1]}}"
metric_list: [ metric_list:
[exact_match, mean, true] - metric: exact_match
] aggregation: mean
higher_is_better: true
...@@ -2,12 +2,15 @@ dataset_path: gsm8k ...@@ -2,12 +2,15 @@ dataset_path: gsm8k
dataset_name: main dataset_name: main
training_split: train training_split: train
test_split: test test_split: test
doc_to_text: "Question: {{question}}\nAnswer:" doc_to_target: "{{answer.split('### ')[-1]}}"
doc_to_target: "{{answer}}" # TODO: this field needs to change to account for the regexing that happens etc. use_prompt: "qa-basic:question-newline-answer"
metric_list: [ metric_list:
[acc, mean, true] - metric: exact_match
] aggregation: mean
filters: [ higher_is_better: true
["regex", ["regex", "take_first"]] ignore_case: true
] ignore_punctuation: true
stop_sequences: ["\n"] delimiter: "\n"
\ No newline at end of file # filters: [
# ["regex", ["regex", "take_first"]]
# ]
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment