You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
agieval-aqua-rat Inference steps: 0%|| 0/64 [00:00<?, ?it/s]Traceback (most recent call last):
File "/ColossalAI/applications/ColossalEval/examples/dataset_evaluation/inference.py", line 260, in<module>
main(args)
File "/ColossalAI/applications/ColossalEval/examples/dataset_evaluation/inference.py", line 223, in main
answers_per_rank = model_.inference(
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/colossal_eval/models/huggingface.py", line 373, in inference
batch_prompt, batch_target = get_batch_prompt(
^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/colossal_eval/utils/conversation.py", line 195, in get_batch_prompt
few_shot_prefix = get_few_shot_prefix(conv, few_shot_data, tokenizer, language, max_tokens)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/colossal_eval/utils/conversation.py", line 141, in get_few_shot_prefix
few_shot_prefix = few_shot_data[0] + "\n\n"~~~~~~~~~~~~~^^^
IndexError: list index out of range
🐛 Describe the bug
Describe the bug
AGIEvalDataset loader in ColossalEval incorrectly set
few_shot_data
to[]
whenfew_shot
is disabled, causing IndexError at https://github.com/hpcaitech/ColossalAI/blob/main/applications/ColossalEval/colossal_eval/utils/conversation.py#L126.To Reproduce
Use the following inference config.json, to run https://github.com/hpcaitech/ColossalAI/blob/main/applications/ColossalEval/examples/dataset_evaluation/inference.sh
The following exception will occur.
Expected behavior
With
few_shot
set to false,few_shot_data
should be set to None, soget_batch_prompt
(https://github.com/hpcaitech/ColossalAI/blob/main/applications/ColossalEval/colossal_eval/utils/conversation.py#L182) will skip few shot prefix generation.Environment
Python 3.11.0rc1
The text was updated successfully, but these errors were encountered: