huggingface/peft

Example for Prompt-based methods fails with `expected sequence of length` mismatch

jpodivin opened this issue · 0 comments

System Info

peft-0.10.0, datasets-2.19.0, transformers-4.40.1, Python 3.11.9

Who can help?

No response

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder
  • My own task or dataset (give details below)

Reproduction

The file was originally .ipynb, but github wouldn't let me upload it. It is pretty much 1:1 reproduction of code from https://huggingface.co/docs/peft/v0.10.0/en/task_guides/prompt_based_methods

peft_training.txt

Expected behavior

The tutorial example should be functioning.