Sentence Similarity
sentence-transformers
Safetensors
English
feature-extraction
dense
Generated from Trainer
dataset_size:80184
loss:CachedMultipleNegativesRankingLoss
Eval Results (legacy)
Instructions to use DannyAI/embedding_fine_tuning_with_peft_bge_large_en_v1.5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use DannyAI/embedding_fine_tuning_with_peft_bge_large_en_v1.5 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("DannyAI/embedding_fine_tuning_with_peft_bge_large_en_v1.5") sentences = [ "who does lennie choose in the sky is everywhere", "Bank of England £1 note The Bank of England £1 note was a banknote of the pound sterling. After the ten shilling note was withdrawn in 1970 it became the smallest denomination note issued by the Bank of England. The one pound note was issued by the Bank of England for the first time in 1797 and continued to be printed until 1984. The note was withdrawn in 1988 in favour of the one pound coin.", "The Sky Is Everywhere Lennie tries to make up with Joe by taking him some of Gram's roses, but doesn't succeed. Gram becomes furious with Lennie for cutting her roses and criticizes her for being selfish. Lennie realizes that she needs to change, apologizes to her grandmother, and tells her about the situation with Joe. Gram reassures Lennie that Joe is in love with her. Lennie writes Joe a letter expressing her feelings, and Joe ultimately forgives her and they reconcile. Toby and Lennie become good friends and visit Bailey's grave together to apologize to her. Lennie walks away from the grave with a smile, knowing that her sister would have forgiven her and that the only way to deal with grief is to accept that it is a part of you and to look ahead to the future.", "Senate of the Philippines The Senate of the Philippines (Filipino: Senado ng Pilipinas, also Mataas na Kapulungan ng Pilipinas or \"upper chamber\") is the upper house of the bicameral legislature of the Philippines, the Congress; the House of Representatives is the lower house. The Senate is composed of 24 senators who are elected at-large with the country as one district under plurality-at-large voting." ] 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!