Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

moka-ai
/
m3e-small

sentence-transformers
PyTorch
Chinese
bert
embedding
text-embedding
Model card Files Files and versions
xet
Community
4

Instructions to use moka-ai/m3e-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use moka-ai/m3e-small with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("moka-ai/m3e-small")
    
    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-small
96.3 MB
Ctrl+K
Ctrl+K
  • 3 contributors
History: 16 commits
wangyuxin
add modules.json
44c6966 almost 3 years ago
  • 1_Pooling
    add modules.json almost 3 years ago
  • .gitattributes
    1.53 kB
    add model almost 3 years ago
  • README.md
    26.6 kB
    add modules.json almost 3 years ago
  • config.json
    711 Bytes
    add model almost 3 years ago
  • modules.json
    229 Bytes
    add modules.json almost 3 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

    • "torch._utils._rebuild_tensor_v2",
    • "torch.LongStorage",
    • "collections.OrderedDict",
    • "torch.FloatStorage"

    What is a pickle import?

    95.8 MB
    xet
    add model almost 3 years ago
  • sentence_bert_config.json
    53 Bytes
    add modules.json almost 3 years ago
  • special_tokens_map.json
    125 Bytes
    add model almost 3 years ago
  • tokenizer.json
    439 kB
    add model almost 3 years ago
  • tokenizer_config.json
    367 Bytes
    add model almost 3 years ago