OpenBMB / ToolBench

[ICLR'24 spotlight] An open platform for training, serving, and evaluating large language model for tool learning.
https://openbmb.github.io/ToolBench/
Apache License 2.0
4.62k stars 397 forks source link

ModuleNotFoundError: No module named 'toolbench' #195

Closed ShubhamVerma16 closed 7 months ago

ShubhamVerma16 commented 8 months ago

Hi, I have been trying to run the inference through qa_pipeline in the repo after cloning it and it throws the following error. Command: python toolbench/inference/qa_pipeline.py --tool_root_dir data/toolenv/tools/ --backbone_model toolllama --model_path ToolBench/ToolLLaMA-7b --max_observation_length 1024 --observ_compress_method truncate --method DFS_woFilter_w2 --input_query_file data/test_instruction/G1_instruction.json --output_answer_file toolllama_dfs_inference_result --toolbench_key $toolbench_key Error: ModuleNotFoundError: No module named 'toolbench'

Can you please help me with the issue. Thanks.

pooruss commented 8 months ago

Hi, you can set the PYTHONPATH to your ToolBench path before you run the inference to solve this.