Instructions to use moka-ai/m3e-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- sentence-transformers
How to use moka-ai/m3e-base with sentence-transformers:
from sentence_transformers import SentenceTransformer model = SentenceTransformer("moka-ai/m3e-base") sentences = [ "The weather is lovely today.", "It's so sunny outside!", "He drove to the stadium." ] embeddings = model.encode(sentences) similarities = model.similarity(embeddings, embeddings) print(similarities.shape) # [3, 3] - Notebooks
- Google Colab
- Kaggle
小白想问下M3E模型和Bert模型之间的关系.
#50
by iceyOrange - opened
按我目前的理解: M3E是在Roberta模型(改进的Bert模型)的基础上进行训练的, 所以可以将M3E看作特殊的pretrain Bert模型.
iceyOrange changed discussion status to closed