RuntimeError: shape '[-1, 0]' is invalid for input of size 881

#3
by Maverick17 - opened

Hello,

when I try to run the code you have provided, then I get the following error:

position_ids = position_ids.view(-1, seq_length).long()
RuntimeError: shape '[-1, 0]' is invalid for input of size 881

OS-Copilot org

Based on the issue mentioned in this link, it seems that the problem might be related to the version of the transformers library. I am using transformers 4.37.2 and have not encountered this issue.

Sign up or log in to comment