Fabian-David Schmidt commited on
Commit
767b6d1
·
1 Parent(s): 9fcef4c

fix(README): AutoModelForSequenceClassification example

Browse files
Files changed (1) hide show
  1. README.md +2 -2
README.md CHANGED
@@ -88,7 +88,7 @@ You should fine-tune the model on labelled data unless you are using the model f
88
 
89
  ```python
90
  import torch
91
- from transformers import AutoModelForSequenceClassification, AutoModelForTokenClassification
92
  from peft import get_peft_model
93
  from peft.tuners.lora.config import LoraConfig
94
 
@@ -99,7 +99,7 @@ lora_config = LoraConfig(
99
  bias = "none",
100
  task_type = "SEQ_CLS"
101
  )
102
- model = AutoModel.from_pretrained(
103
  "fdschmidt93/NLLB-LLM2Vec-Meta-Llama-31-8B-Instruct-mntp-unsup-simcse",
104
  trust_remote_code=True,
105
  torch_dtype=torch.bfloat16,
 
88
 
89
  ```python
90
  import torch
91
+ from transformers import AutoModelForSequenceClassification
92
  from peft import get_peft_model
93
  from peft.tuners.lora.config import LoraConfig
94
 
 
99
  bias = "none",
100
  task_type = "SEQ_CLS"
101
  )
102
+ model = AutoModelForSequenceClassification.from_pretrained(
103
  "fdschmidt93/NLLB-LLM2Vec-Meta-Llama-31-8B-Instruct-mntp-unsup-simcse",
104
  trust_remote_code=True,
105
  torch_dtype=torch.bfloat16,