ruc-datalab / ZeroNL2SQL

MIT License
20 stars 5 forks source link

buggy code in src/utils/prompt_generator.py:121 #2

Open 1hiler opened 8 months ago

1hiler commented 8 months ago

82b95198-8058-43e4-9480-bd440c5ea449

the element of label_ids = [f["labels"] for f in features] comes in different length, it cannot be converted to np.array and therefore raising the *** ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (555,) + inhomogeneous part.

command to run: env CUDA_VISIBLE_DEVICE=0 bash scripts/infer_LLM_with_template.sh kaggledbqa $MY_API_KEY

I assume you want to replace every single numerics in the List[List[int]] to 0 is that right?

thatmee commented 7 months ago

got same problem here.