Sentence Similarity
sentence-transformers
Safetensors
English
modernbert
feature-extraction
dense
Generated from Trainer
dataset_size:402
loss:MatryoshkaLoss
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use Akryl/modernbert-embed-base-akryl-matryoshka with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use Akryl/modernbert-embed-base-akryl-matryoshka with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Akryl/modernbert-embed-base-akryl-matryoshka") sentences = [ "<1-hop>\n\nOpinion\nI have audited the financial statements of the Ministry of Defence and Veteran Affairs (MoDVA), which comprise the Statement of Financial Position as at 30 th June 2023, the Statement of Financial Performance, Statement of Changes in Equity and Statement of Cash Flows, together with other accompanying statements for the year then ended, and notes to the financial statements, including a summary of significant accounting policies.\nIn my opinion, the accompanying financial statements of the Ministry of Defence and Veteran Affairs for the financial year ended 30 th June 2023 are prepared, in all material respects, in accordance with Section 51 of the Public Finance Management Act (PFMA), 2015 and the Financial Reporting Guide, 2018 (as amended).", "How does the audit process for Kalungu District Local Government and Pader District Local Government follow the Constitution of the Republic of Uganda and what standards are used to ensure compliance with ethical and legal requirements?", "What financial statements were audited for MoDVA and KCCA?", "How were the water grant funds utilized in the rehabilitation of existing water sources and the drilling of boreholes, and what were the outcomes of these projects?" ] 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!