Update README.md
Browse files
README.md
CHANGED
|
@@ -52,8 +52,8 @@ import torch
|
|
| 52 |
import torch.nn.functional as F
|
| 53 |
|
| 54 |
# Load model and tokenizer
|
| 55 |
-
model = AutoModel.from_pretrained("dmedhi/
|
| 56 |
-
tokenizer = AutoTokenizer.from_pretrained("dmedhi/
|
| 57 |
|
| 58 |
# Encode sentences
|
| 59 |
sentences = ["This is an example sentence", "Each sentence is converted to a vector"]
|
|
@@ -76,7 +76,7 @@ print(f"Similarity: {similarity.item():.4f}")
|
|
| 76 |
from sentence_transformers import SentenceTransformer
|
| 77 |
from sentence_transformers.util import cos_sim
|
| 78 |
|
| 79 |
-
model = SentenceTransformer("dmedhi/
|
| 80 |
|
| 81 |
sentences = ["This is an example sentence", "Each sentence is converted to a vector"]
|
| 82 |
embeddings = model.encode(sentences)
|
|
|
|
| 52 |
import torch.nn.functional as F
|
| 53 |
|
| 54 |
# Load model and tokenizer
|
| 55 |
+
model = AutoModel.from_pretrained("dmedhi/PawanEmbd-68M")
|
| 56 |
+
tokenizer = AutoTokenizer.from_pretrained("dmedhi/PawanEmbd-68M")
|
| 57 |
|
| 58 |
# Encode sentences
|
| 59 |
sentences = ["This is an example sentence", "Each sentence is converted to a vector"]
|
|
|
|
| 76 |
from sentence_transformers import SentenceTransformer
|
| 77 |
from sentence_transformers.util import cos_sim
|
| 78 |
|
| 79 |
+
model = SentenceTransformer("dmedhi/PawanEmbd-68M")
|
| 80 |
|
| 81 |
sentences = ["This is an example sentence", "Each sentence is converted to a vector"]
|
| 82 |
embeddings = model.encode(sentences)
|