How to use carnival13/all-mpnet-base-v2-modulepred with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("carnival13/all-mpnet-base-v2-modulepred") sentences = [ "module: stationery & printed material & services group: stationery & printed material & services supergroup: stationery & printed material & services example descriptions: munchkin crayons hween printedsheet mask 2 pk printed tape tour os silver butterfly relax with art m ab hardbacknotebook stickers p val youmeyou text heat w mandalorian a 5 nbook nediun bubble envelopes 6 pk whs pastel expan org p poll decoration 1 airtricity payasyoug", "retailer: groveify description: rainbow magicbooks", "retailer: crispcorner description: glazed k kreme", "retailer: vitalveg description: may held aop fl" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [4, 4]
The community tab is the place to discuss and collaborate with the HF community!