How to use Auto-opts/flax-TMNRLB with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("Auto-opts/flax-TMNRLB") sentences = [ "6 drinks that unclog arteries", "Endothelial Function and Its Role in Arterial Health", "Combining Mupirocin with Other Skin Regimens", "Antioxidant-Rich Diets and Neuroprotection" ] 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!