Commit 7a462453 authored by Hojjat Mokhtarabadi's avatar Hojjat Mokhtarabadi
Browse files

undefined type and output_type when using promptsource fixed

parent a916afd7
......@@ -60,8 +60,7 @@ def check_prompt_config(config: dict[str, str]) -> List[dict[str, str]]:
prompt_variation,
]
)
},
**{"output_type": "greedy_until"},
}
}
)
else:
......
......@@ -48,7 +48,7 @@ def main():
docs = join_iters(iters)
with open(os.path.join(args.output_base_path, task_name), "w") as f:
with open(os.path.join(args.output_base_path, task_name), "w", encoding='utf8') as f:
for i, doc in (
zip(range(args.num_examples), docs)
if args.num_examples > 0
......
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