Commit e7f49cca authored by lintangsutawika's avatar lintangsutawika
Browse files

updated yaml

parent 3ec68d38
......@@ -5,6 +5,7 @@ validation_split: validation
test_split: test
doc_to_text: "Q: {{question}}\nA:"
doc_to_target: "{% set answer_choices = doc['choices']['text'] %}{{answer_choices[int(doc['answerKey']) - 1]}}"
metric_list: [
[exact_match, mean, true]
]
metric_list:
- metric: exact_match
aggregation: mean
higher_is_better: true
......@@ -2,12 +2,15 @@ dataset_path: gsm8k
dataset_name: main
training_split: train
test_split: test
doc_to_text: "Question: {{question}}\nAnswer:"
doc_to_target: "{{answer}}" # TODO: this field needs to change to account for the regexing that happens etc.
metric_list: [
[acc, mean, true]
]
filters: [
["regex", ["regex", "take_first"]]
]
stop_sequences: ["\n"]
\ No newline at end of file
doc_to_target: "{{answer.split('### ')[-1]}}"
use_prompt: "qa-basic:question-newline-answer"
metric_list:
- metric: exact_match
aggregation: mean
higher_is_better: true
ignore_case: true
ignore_punctuation: true
delimiter: "\n"
# 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