HKUDS / GraphGPT

[SIGIR'2024] "GraphGPT: Graph Instruction Tuning for Large Language Models"
https://arxiv.org/abs/2310.13023
Apache License 2.0
493 stars 36 forks source link

ValueError: error in the number of list #69

Open wlw-wlw opened 2 months ago

wlw-wlw commented 2 months ago

你好,我在使用[Jiabin99]发布的GraphGPT-7B-mix-all用作eval时遇到了报错,报错内容如下

root@autodl-container-8cee4dbe08-5999a9bc:~/autodl-tmp/GraphGPT# bash graphgpt_eval.sh
2024-05-13 17:19:24,186 WARNING utils.py:585 -- Detecting docker specified CPUs. In previous versions of Ray, CPU detection in containers was incorrect. Please ensure that Ray has enough CPUs allocated. As a temporary workaround to revert to the prior behavior, set `RAY_USE_MULTIPROCESSING_CPU_COUNT=1` as an env var before starting Ray. Set the env var: `RAY_DISABLE_DOCKER_CPU_WARNING=1` to mute this warning.
2024-05-13 17:19:24,257 INFO worker.py:1621 -- Started a local Ray instance.
Not shuffle the prompt file!
Traceback (most recent call last):
  File "/root/autodl-tmp/GraphGPT/./graphgpt/eval/run_graphgpt_LP.py", line 317, in <module>
    run_eval(args, args.num_gpus)
  File "/root/autodl-tmp/GraphGPT/./graphgpt/eval/run_graphgpt_LP.py", line 112, in run_eval
    raise ValueError('error in the number of list')
ValueError: error in the number of list

以下时我的graphgpt_eval.sh的内容

output_model=graphgpt/GraphGPT-7B-mix-all
datapath=./graphgpt/data/eval/pubmed_test_instruct_LP.json
graph_data_path=./graphgpt/graph_data/graph_data_all.pt
res_path=./output_stage_2_arxiv_nc
start_id=0
end_id=20567
num_gpus=2
python3 ./graphgpt/eval/run_graphgpt_LP.py --model-name ${output_model}  --prompting_file ${datapath} --graph_data_path ${graph_data_path} --output_res_path ${res_path} --start_id ${start_id} --end_id ${end_id} --num_gpus ${num_gpus}

请问是我的参数设置导致的吗