How to use LamaDiab/MiniLM-v2-v28-SemanticEngine with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("LamaDiab/MiniLM-v2-v28-SemanticEngine") sentences = [ "chillax fluffy beanbag", "living room furniture", "lined orange", "home_garden", "home and garden", "beanbag" ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [6, 6]
The community tab is the place to discuss and collaborate with the HF community!