Downloads · 30 days
52
17% of all-time downloads
xixi899415/autotrain-z1d87-ogfby
autotrain-z1d87-ogfby is a sentence similarity model from xixi899415. Use it when you need a score for how close two texts are. It is set up for sentence-transformers.
Downloads · 30 days
52
17% of all-time downloads
All-time downloads
303
Public
Parameters
118M
1.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors941 MB · 48%
From the Hugging Face model README
loss: 0.6942040920257568
runtime: 24.4771
samples_per_second: 359.601
steps_per_second: 22.511
: 3.0
First install the Sentence Transformers library:
pip install -U sentence-transformers
Then you can load this model and run inference.
from sentence_transformers import SentenceTransformer
# Download from the Hugging Face Hub
model = SentenceTransformer("sentence_transformers_model_id")
# Run inference
sentences = [
'search_query: autotrain',
'search_query: auto train',
'search_query: i love autotrain',
]
embeddings = model.encode(sentences)
print(embeddings.shape)
# Get the similarity scores for the embeddings
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)