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
Tested 9 samples, left 523 samples, total 532 samples
3%|█████▋ | 15/523 [00:01<00:49, 10.31it/s]
Traceback (most recent call last):
File "/home/contribute/llm-couple/evaluation/T-Eval/test.py", line 117, in
prediction = infer(dataset, llm, args.out_dir, tmp_folder_name=tmp_folder_name, test_num=test_num, batch_size=args.batch_size)
File "/home/contribute/llm-couple/evaluation/T-Eval/test.py", line 74, in infer
predictions = llm.chat(batch_infer_list, do_sample=False)
File "/home/anaconda3/envs/llm-couple/lib/python3.9/site-packages/lagent/llms/base_llm.py", line 191, in chat
return self.generate(_inputs, **gen_params)
File "/home/anaconda3/envs/llm-couple/lib/python3.9/site-packages/lagent/llms/huggingface.py", line 133, in generate
for status, chunk, _ in self.stream_generate(inputs, do_sample,
File "/home/anaconda3/envs/llm-couple/lib/python3.9/site-packages/lagent/llms/huggingface.py", line 272, in stream_generate
if (unfinished_sequences.max() == 0
RuntimeError: Boolean value of Tensor with more than one value is ambiguous
请问能提供修复方案吗
The text was updated successfully, but these errors were encountered:
Tested 9 samples, left 523 samples, total 532 samples
3%|█████▋ | 15/523 [00:01<00:49, 10.31it/s]
Traceback (most recent call last):
File "/home/contribute/llm-couple/evaluation/T-Eval/test.py", line 117, in
prediction = infer(dataset, llm, args.out_dir, tmp_folder_name=tmp_folder_name, test_num=test_num, batch_size=args.batch_size)
File "/home/contribute/llm-couple/evaluation/T-Eval/test.py", line 74, in infer
predictions = llm.chat(batch_infer_list, do_sample=False)
File "/home/anaconda3/envs/llm-couple/lib/python3.9/site-packages/lagent/llms/base_llm.py", line 191, in chat
return self.generate(_inputs, **gen_params)
File "/home/anaconda3/envs/llm-couple/lib/python3.9/site-packages/lagent/llms/huggingface.py", line 133, in generate
for status, chunk, _ in self.stream_generate(inputs, do_sample,
File "/home/anaconda3/envs/llm-couple/lib/python3.9/site-packages/lagent/llms/huggingface.py", line 272, in stream_generate
if (unfinished_sequences.max() == 0
RuntimeError: Boolean value of Tensor with more than one value is ambiguous
请问能提供修复方案吗
The text was updated successfully, but these errors were encountered: