Sentence Similarity
sentence-transformers
Safetensors
xlm-roberta
feature-extraction
Generated from Trainer
dataset_size:94156
loss:Matryoshka2dLoss
loss:MatryoshkaLoss
loss:GISTEmbedLoss
Eval Results (legacy)
text-embeddings-inference
Instructions to use bobox/XLMRoBERTaM3-CustomPoolin-v1.06-1024conc1024-MLP-s1-adaptivelayersReg-s2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use bobox/XLMRoBERTaM3-CustomPoolin-v1.06-1024conc1024-MLP-s1-adaptivelayersReg-s2 with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("bobox/XLMRoBERTaM3-CustomPoolin-v1.06-1024conc1024-MLP-s1-adaptivelayersReg-s2") sentences = [ "The final section of the Royal Navy's second flagship aircraft carrier has left BAE System's yard in Glasgow.", "It is an International Olympic Committee (IOC) Top Partner, paying a reported $100m for each two-games deal of one winter and one summer Games.\nThe new deal covers the 2014 winter Games in Sochi, Russia, and 2016 summer Games in Rio de Janeiro, Brazil.\nThe 2018 winter Games will be held in Pyeongchang, South Korea, and the 2020 summer venue is yet to be decided.\nThe company has been an Olympics sponsor since 1976.\nIt is the seventh of the 11 top-tier sponsors to renew its partnership with the IOC until 2020.\nThe others are Coca-Cola, Dow Chemicals, General Electric, Omega, Procter & Gamble and Visa.\nA further three firms have extended their sponsorship until 2016.\nIt is estimated that the IOC has garnered about $1bn in sponsorship revenue in the current four-year cycle which ends this year 2012.\nLondon 2012: Latest Olympic news, sport, features and programmes from the BBC\nMcDonald's said the restaurant chain would use the extended partnership to introduce several new programmes \"focused on balanced eating and fun play for children\".\n\"We are delighted that McDonald's, our long-time and valued Olympic Partner for more than 35 years, is continuing its ongoing commitment not only to help fund the Olympic Games, but also to support the Olympic Movement around the world and ultimately the athletes themselves,\" IOC President Jacques Rogge said in a statement.", "The 750-tonne section, known as the Aft Island, will be taken on a 1,335-mile journey around the south of England and up the east coast to Rosyth.\nOnce assembled it will be the control centre for all aircraft operations on the new HMS Prince of Wales carrier.\nHMS Prince of Wales is the second Queen Elizabeth Class carrier after the 65,000-tonne HMS Queen Elizabeth.\nThey are the largest British warships ever constructed and can be used for a range of military activity from fighting in conflicts to providing humanitarian aid and disaster relief.\nThe ships have been constructed in blocks at yards across the UK and are being put together in Rosyth.\nBAE's project director, Iain Stevenson, described the carrier leaving the River Clyde as a \"proud day\" for everyone involved.\n\"To see the final section delivered to Rosyth, ahead of schedule and to an incredible standard of engineering is testament to the dedication, skill and ingenuity of all those working on the programme.\"\nDefence Procurement Minister Philip Dunne said: \"Our aircraft carriers, the largest ships ever built in Scotland for the Royal Navy, will help to secure the UK's interests both at home and abroad.\n\"Our new F-35 Lightning II aircraft will fly from the decks of HMS Queen Elizabeth in 2018.\"", "Contractor Bear Scotland said the slip happened at about midday on Sunday at Butterbridge, close to the Rest and Be Thankful.\nBear said an emergency diversion using the Old Military Road was not possible because of where the slip happened.\nDiversions in both directions have been put in place via the A82.\nBear Scotland said specialist engineers examined the site and found that the slope remained unstable and a large boulder needed to be removed.\nIt is the eighth time in five years that the road has been closed by a landslip.\nThe Old Military Road, which runs parallel to the main carriageway through Glen Croe, was reopened last year as an emergency diversion route to be used if the A83 was blocked." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4] - Notebooks
- Google Colab
- Kaggle
File too large to display, you can check the raw version instead.