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?
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?