Sentence Similarity
sentence-transformers
Safetensors
English
bert
feature-extraction
dense
Generated from Trainer
dataset_size:3924
loss:MatryoshkaLoss
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Run this model with HF Jobs
Run DannieAI/bge-base-Apple-matryoshka on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/DannieAI/bge-base-Apple-matryoshka. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/DannieAI/bge-base-Apple-matryoshka on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use DannieAI/bge-base-Apple-matryoshka with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use DannieAI/bge-base-Apple-matryoshka with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("DannieAI/bge-base-Apple-matryoshka") sentences = [ "approaches that connect suppliers to external \nfunding for energy efficiency projects while scaling \nthe program and accelerating reductions.\nIn 2023, more than 100 supplier facilities participated \nin our energy efficiency program, achieving more \nthan 2 billion kilowatt-hours of electricity savings and \nmore than 2,200,000 MMBtu in additional energy \nsavings. Together, we estimate that this avoided \nnearly 1.7 million metric tons of CO2e, representing \na 25 percent increase since 2022.\nTo address gaps in our renewable energy needs \nbeyond what’s provided by Apple-created projects, \nwe directly purchase renewable electricity through \navailable utility green energy programs — about \n5 percent of our total corporate load in 2023. \nColocation and distribution facility vendors supply \nabout 3 percent of our total load of renewable energy. \nAnd in certain situations, we purchase renewable \nenergy certificates (RECs).58 These RECs, which \naccount for about 2 percent of our total load, share \nthe same power grid as the Apple facility they \nsupport, where available. These purchases are \nsubject to the same standards as our Apple‑created \nrenewable energy projects. Appendix A \nprovides additional details on Apple’s renewable \nenergy solutions.\n91%\nApple-created renewable \nsources account for \nabout 91 percent of the \nrenewable electricity that \nour facilities use.\nSupporting social impact\nOur Power for Impact program, which launched in \n2019, continues to help provide local communities \nwith needed energy resources. With funding from \nApple, local communities and organizations benefit \nfrom access to cost‑effective renewable energy. \nApple is currently supporting more than 20 renewable \nelectricity projects around the world, including in the \nPhilippines, Thailand, and South Africa. Read more \nabout Power for Impact on page 31.\n2024 Environmental Progress Report\b\n26\nEngagement and Advocacy\nData\nAppendix\nIntroduction \nContents\nEnvironmental Initiatives\nApple 2030\nResources\nSmarter ChemistryTransitioning our suppliers \nto renewable electricity\nThe electricity that our manufacturing suppliers use \nrepresents the largest single source of greenhouse \ngas emissions throughout our manufacturing supply \nchain. That’s why our efforts to facilitate our entire \nsupply chain’s transition to 100 percent renewable \nelectricity are essential to reaching our 2030 carbon \nneutrality goal.\nOur Supplier Clean Energy Program (CEP) helps \nenable suppliers’ transition to renewable electricity by \nadvocating for policy changes, providing information \nand access to renewable energy procurement \noptions, and creating engagement opportunities \nwith renewable energy experts. By engaging in this \nprogram, our suppliers can implement best practices \nin advocating for and procuring renewable energy \nacross their corporate operations, including those \nassociated with Apple production. The program also \nequips them to share lessons learned with other \npartners throughout their value chains, extending \nbenefits beyond the scope of Apple.\nPROCUREMENT MECHANISMS\nSupplier renewable energy procurement \nmechanisms\nOur suppliers are implementing clean energy solutions using a variety of contracting \nmechanisms. In 2023, suppliers relied mostly on renewable energy certificates (RECs) \nto meet their CEP commitments, largely due to the expansion of China’s Green Energy \nCertificate (GEC) and the recognition of GECs as a primary instrument for tracking \nrenewable energy consumption. Apple views the strategic use of well-designed REC", "How much power savings have been achieved across primary device lines since 2008?", "what types of projects are targeted by carbon offset funds for unavoidable business emissions?", "how many metric tons of co2e were avoided by supplier energy efficiency 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!