[eval-hotfix] set few_shot_data to None when few shot is disabled (#5422)

pull/5335/head^2
Dongruixuan Li 9 months ago committed by GitHub
parent 049121d19d
commit a7ae2b5b4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -201,7 +201,7 @@ class AGIEvalDataset(BaseDataset):
for file in files:
dataset_name = os.path.basename(file)[0 : -len(".jsonl")]
few_shot_data = []
few_shot_data = None
if few_shot:
# process demo once if it is few-shot-CoT
few_shot_data = combine_prompt(prompt_path, dataset_name, load_explanation=False, chat_mode=False)

Loading…
Cancel
Save