Sentence Similarity
sentence-transformers
TensorBoard
Safetensors
mpnet
feature-extraction
Generated from Trainer
dataset_size:33174
loss:TripletLoss
text-embeddings-inference
Instructions to use ishandotsh/logembed_a2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use ishandotsh/logembed_a2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("ishandotsh/logembed_a2") sentences = [ "writeBlock blk_-2025444374149014902 received exception java.io.IOException: Could not read from stream", "PAM 5 more authentication failures; logname= uid=0 euid=0 tty=ssh ruser= rhost=218.65.30.30 user=root", "writeBlock blk_5718472814394212827 received exception java.io.IOException: Could not read from stream", "Adding an already existing block blk_5697572983288390847" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
File size: 349 Bytes
9482b50 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | [
{
"idx": 0,
"name": "0",
"path": "",
"type": "sentence_transformers.models.Transformer"
},
{
"idx": 1,
"name": "1",
"path": "1_Pooling",
"type": "sentence_transformers.models.Pooling"
},
{
"idx": 2,
"name": "2",
"path": "2_Normalize",
"type": "sentence_transformers.models.Normalize"
}
] |