"vscode:/vscode.git/clone" did not exist on "308c79344c144290d431f777fc47deb5c94ccc80"
Commit f70ec454 authored by Baber's avatar Baber
Browse files

add Question: Answer to niah

parent 3f4157f9
......@@ -8,7 +8,7 @@ test_split: test
download_dataset: !function niah_utils.niah_single_1
doc_to_text: "{{input}}"
doc_to_target: "{{outputs[0]}}"
gen_prefix: "{{gen_prefix}}"
gen_prefix: "Answer: {{gen_prefix}}"
target_delimiter: " "
process_results: !function common_utils.process_results
metric_list:
......
......@@ -7,7 +7,7 @@ from lm_eval.tasks.ruler.common_utils import DEFAULT_SEQ_LENGTHS, get_tokenizer
from lm_eval.tasks.ruler.prepare_niah import generate_samples, get_haystack
TEMPLATE = """Some special magic {type_needle_v} are hidden within the following text. Make sure to memorize it. I will quiz you about the {type_needle_v} afterwards.\n{context}\nWhat are all the special magic {type_needle_v} for {query} mentioned in the provided text?"""
TEMPLATE = """Some special magic {type_needle_v} are hidden within the following text. Make sure to memorize it. I will quiz you about the {type_needle_v} afterwards.\n{context}\nQuestion: What are all the special magic {type_needle_v} for {query} mentioned in the provided text?"""
def download_dataset(df: Generator) -> dict[str, datasets.Dataset]:
......
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