Sentence Similarity
sentence-transformers
PyTorch
Transformers
bert
feature-extraction
text-embeddings-inference
Instructions to use rithwik-db/gpl-e5-base-unsupervised-curated with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use rithwik-db/gpl-e5-base-unsupervised-curated with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("rithwik-db/gpl-e5-base-unsupervised-curated") sentences = [ "That is a happy person", "That is a happy dog", "That is a very happy person", "Today is a sunny day" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Transformers
How to use rithwik-db/gpl-e5-base-unsupervised-curated with Transformers:
# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("rithwik-db/gpl-e5-base-unsupervised-curated") model = AutoModel.from_pretrained("rithwik-db/gpl-e5-base-unsupervised-curated") - Notebooks
- Google Colab
- Kaggle
Adding `safetensors` variant of this model
#1
by SFconvertbot - opened
- model.safetensors +3 -0
model.safetensors
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f57e738ef2faa12025955c0125e5db6a4fcc672f33816787c9ae7799c4a0abf9
|
| 3 |
+
size 437955512
|