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

sentence-transformers
/
use-cmlm-multilingual

Sentence Similarity
sentence-transformers
PyTorch
google-tensorflow TensorFlow
Safetensors
Transformers
bert
feature-extraction
text-embeddings-inference
Model card Files Files and versions
xet
Community
3

Instructions to use sentence-transformers/use-cmlm-multilingual with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use sentence-transformers/use-cmlm-multilingual with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("sentence-transformers/use-cmlm-multilingual")
    
    sentences = [
        "That is a happy person",
        "That is a happy dog",
        "That is a very happy person",
        "Today is a sunny day"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Transformers

    How to use sentence-transformers/use-cmlm-multilingual with Transformers:

    # Load model directly
    from transformers import AutoTokenizer, AutoModel
    
    tokenizer = AutoTokenizer.from_pretrained("sentence-transformers/use-cmlm-multilingual")
    model = AutoModel.from_pretrained("sentence-transformers/use-cmlm-multilingual")
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
use-cmlm-multilingual
Ctrl+K
Ctrl+K
  • 3 contributors
History: 6 commits
tomaarsen's picture
tomaarsen HF Staff
Remove deprecated (SEB) evaluation results section
736a295 verified about 1 year ago
  • 1_Pooling
    upload about 4 years ago
  • .gitattributes
    1.27 kB
    Adding `safetensors` variant of this model (#2) about 2 years ago
  • README.md
    1.69 kB
    Remove deprecated (SEB) evaluation results section about 1 year ago
  • config.json
    804 Bytes
    upload about 4 years ago
  • config_sentence_transformers.json
    122 Bytes
    upload about 4 years ago
  • model.safetensors
    1.89 GB
    xet
    Adding `safetensors` variant of this model (#2) about 2 years ago
  • modules.json
    349 Bytes
    upload about 4 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    1.89 GB
    xet
    upload about 4 years ago
  • sentence_bert_config.json
    53 Bytes
    upload about 4 years ago
  • special_tokens_map.json
    112 Bytes
    upload about 4 years ago
  • tf_model.h5
    1.88 GB
    xet
    Add TF weights almost 4 years ago
  • tokenizer.json
    9.62 MB
    upload about 4 years ago
  • tokenizer_config.json
    411 Bytes
    upload about 4 years ago
  • vocab.txt
    5.22 MB
    upload about 4 years ago