Skip to content

Commit

Permalink
DOC fix wrong import in p-tuning docs (#1049)
Browse files Browse the repository at this point in the history
  • Loading branch information
ehcalabres authored Oct 25, 2023
1 parent 894e68a commit 8b21a4e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/task_guides/ptuning-seq-classification.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ Once the model has been uploaded to the Hub, anyone can easily use it for infere
```py
import torch
from peft import PeftModel, PeftConfig
from transformers import AutoModelForCausalLM, AutoTokenizer
from transformers import AutoModelForSequenceClassification, AutoTokenizer

peft_model_id = "smangrul/roberta-large-peft-p-tuning"
config = PeftConfig.from_pretrained(peft_model_id)
Expand Down

0 comments on commit 8b21a4e

Please sign in to comment.