Sentence Similarity
sentence-transformers
Safetensors
feature-extraction
Generated from Trainer
dataset_size:245133
loss:MultipleNegativesRankingLoss
loss:MultipleNegativesSymmetricRankingLoss
loss:CoSENTLoss
Instructions to use FINGU-AI/FinguEm7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use FINGU-AI/FinguEm7b with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("FINGU-AI/FinguEm7b") sentences = [ "Awbere (woreda)", "Counterfeit Son is a 2000 novel by Elaine Marie Alphin and was written for young adults . It received a 2001 Edgar Award from the Mystery Writers of America for Best Young Adult Mystery . It is a psychological thriller .", "Awbere ( Awbarre ) , ( also known as Teferi Ber ) , is one of the woredas in the Somali Region of Ethiopia . Part of the Jijiga Zone , Awbere is bordered on the southwest by Jijiga , on the west by the Shinile Zone , on the east by Somalia , and on the southeast by Kebri Beyah . Towns in Awbere include Āwuberē , Derwonaji , Lefe Isa , and Sheed Dheer . High points in this woreda include Sau ( 1863 meters ) , near the international border .", "Aleksandra Delcheva (Bulgarian: Александра Делчева) (born April 11, 1987) is a Bulgarian volleyball player. She currently plays for Union Stade Français-Saint-Cloud Paris in France." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
File size: 349 Bytes
90fc0d7 | 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"
}
] |