Sentence Similarity
Transformers
Safetensors
multilingual
nllb-llm2vec
feature-extraction
text-embedding
embeddings
information-retrieval
beir
text-classification
language-model
text-clustering
text-semantic-similarity
text-evaluation
text-reranking
Sentence Similarity
natural_questions
ms_marco
fever
hotpot_qa
mteb
custom_code
Fabian-David Schmidt
commited on
Commit
·
767b6d1
1
Parent(s):
9fcef4c
fix(README): AutoModelForSequenceClassification example
Browse files
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
|
| 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 =
|
| 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,
|