juanluisdb
commited on
Commit
•
ef545c8
1
Parent(s):
9822383
Update README.md
Browse files
README.md
CHANGED
@@ -24,7 +24,7 @@ using [bge-reranker-v2-m3](https://huggingface.co/BAAI/bge-reranker-v2-m3) as te
|
|
24 |
```python
|
25 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
26 |
import torch
|
27 |
-
model = AutoModelForSequenceClassification.from_pretrained("juanluisdb/MiniLM-L-6-rerank-
|
28 |
tokenizer = AutoTokenizer.from_pretrained("juanluisdb/MiniLM-L-6-rerank-m3")
|
29 |
features = tokenizer(['How many people live in Berlin?', 'How many people live in Berlin?'], ['Berlin has a population of 3,520,031 registered inhabitants in an area of 891.82 square kilometers.', 'New York City is famous for the Metropolitan Museum of Art.'], padding=True, truncation=True, return_tensors="pt")
|
30 |
model.eval()
|
|
|
24 |
```python
|
25 |
from transformers import AutoTokenizer, AutoModelForSequenceClassification
|
26 |
import torch
|
27 |
+
model = AutoModelForSequenceClassification.from_pretrained("juanluisdb/MiniLM-L-6-rerank-m3")
|
28 |
tokenizer = AutoTokenizer.from_pretrained("juanluisdb/MiniLM-L-6-rerank-m3")
|
29 |
features = tokenizer(['How many people live in Berlin?', 'How many people live in Berlin?'], ['Berlin has a population of 3,520,031 registered inhabitants in an area of 891.82 square kilometers.', 'New York City is famous for the Metropolitan Museum of Art.'], padding=True, truncation=True, return_tensors="pt")
|
30 |
model.eval()
|