ValueError: expected sequence of length 25 at dim 1 (got 43)

I’m trying to run the code from this tutorial ( Prompt-based methods (huggingface.co)). My code is the exact same as tutorial. However, when I try to run it, it will always give this error. It’s always shorter or longer but not the exact same.

1 Like

Hi,

Feel free to open an issue on the PEFT repository in that case.