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
Describe the issue
AST eval fail on Huggingface and Tensorflowhub (list index error occur) but success on Torchhub. To reproduce, just git clone the original repo, cd gorilla/eval/eval-scripts/ and run the following as the author's instruction. I use all the original code, data and instruction in the original repo. Specificlly:
I use all the original data and code and instructions in the repo. Please help me.
(camel) (base) hejia@euclid:~/gorilla/eval/eval-scripts$ python ast_eval_th.py --api_dataset ../../data/api/huggingface_api.jsonl --apibench ../../data/apibench/huggingface_eval.json --llm_responses ../eval-data/responses/huggingface/response_huggingface_Gorilla_FT_0_shot.jsonl
Traceback (most recent call last):
File "/home/hejia/gorilla/eval/eval-scripts/ast_eval_th.py", line 204, in <module>
main(args)
File "/home/hejia/gorilla/eval/eval-scripts/ast_eval_th.py", line 183, in main
correct, hallucination = result.result()
File "/home/hejia/.conda/envs/camel/lib/python3.10/concurrent/futures/_base.py", line 451, in result
return self.__get_result()
File "/home/hejia/.conda/envs/camel/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
raise self._exception
File "/home/hejia/.conda/envs/camel/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/hejia/gorilla/eval/eval-scripts/ast_eval_th.py", line 149, in process_response
database_index = ast_check(ast_subtree_list, ast_database)
File "/home/hejia/gorilla/eval/eval-scripts/ast_eval_th.py", line 76, in ast_check
args_list = get_args(base_tree)
File "/home/hejia/gorilla/eval/eval-scripts/ast_eval_th.py", line 61, in get_args
args_list.append(child.children[2].text)
IndexError: list index out of range
Describe the issue
AST eval fail on Huggingface and Tensorflowhub (list index error occur) but success on Torchhub. To reproduce, just git clone the original repo, cd gorilla/eval/eval-scripts/ and run the following as the author's instruction. I use all the original code, data and instruction in the original repo. Specificlly:
Error code:
Env:
tree_sitter==0.20.4
tenacity==8.2.2
pydantic==1.10.7
rank-bm25==0.2.2
Please help me. Thanks.
The text was updated successfully, but these errors were encountered: