Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
Generated from Trainer
dataset_size:1648104
loss:OrdinalProxyContrastiveLoss
text-embeddings-inference
Instructions to use swardiantara/bert-tiny-snli-k1-fixed-euclidean with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use swardiantara/bert-tiny-snli-k1-fixed-euclidean with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("swardiantara/bert-tiny-snli-k1-fixed-euclidean") sentences = [ "Group of young women in dresses strolling on the sidewalk. [SEP] all the women are well dressed", "A woman in a top hat is trying to get into a maroon car at night. [SEP] The woman and the car are outdoors.", "A young shirtless boy in kakhi pants is kneeling in a marsh while someone splashes nearby. [SEP] Two people are riding on a ferris wheel at the fair.", "A woman standing in front of a white car that is piled with things on top. [SEP] The woman is preparing to move." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
Welcome to the community
The community tab is the place to discuss and collaborate with the HF community!