Skip to content

[BUG]: using peft to train prompts: RuntimeError: Expected 4-dimensional input for 4-dimensional weight XXX, but got 3-dimensional in #3650

@HaixHan

Description

@HaixHan

🐛 Describe the bug

when i use the train_peft_prompts.py to train the prompts, i occur this errors in this line(as shown in figure). However, i run the train_prompts.py successfully without using peft model. So who can tell me how to run train_peft_prompts.py successfully? thx a lot!!!
image
image
image
image

Environment

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions