ChatGLM-RLHF icon indicating copy to clipboard operation
ChatGLM-RLHF copied to clipboard

numpy error

Open neophack opened this issue 1 year ago • 0 comments

When I use numpy 1.24.x, I got error in jaccards = torch.tensor(np.vectorize(jaccard_s1)(ids[-len(examples):]), dtype=coses.dtype, device=coses.device) error as follwing: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (4,) + inhomogeneous part.

but I use 1.22.2, I got no error.

neophack avatar Jun 05 '23 06:06 neophack