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
/
LaBSE

Sentence Similarity
sentence-transformers
PyTorch
google-tensorflow TensorFlow
JAX
ONNX
Safetensors
bert
feature-extraction
Eval Results
text-embeddings-inference
Model card Files Files and versions
xet
Community
24

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

  • Libraries
  • sentence-transformers

    How to use sentence-transformers/LaBSE with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("sentence-transformers/LaBSE")
    
    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]
  • Inference
  • Notebooks
  • Google Colab
  • Kaggle
LaBSE
5.67 GB
Ctrl+K
Ctrl+K
  • 11 contributors
History: 15 commits
lbourdois's picture
lbourdois
Update README.md
cb81c03 over 2 years ago
  • 1_Pooling
    Add new SentenceTransformer model. almost 5 years ago
  • 2_Dense
    Add new SentenceTransformer model. almost 5 years ago
  • .gitattributes
    391 Bytes
    allow flax about 5 years ago
  • README.md
    2.2 kB
    Update README.md over 2 years ago
  • config.json
    804 Bytes
    Add new SentenceTransformer model. almost 5 years ago
  • config_sentence_transformers.json
    122 Bytes
    Add new SentenceTransformer model. almost 5 years ago
  • flax_model.msgpack
    1.88 GB
    xet
    upload flax model about 5 years ago
  • modules.json
    461 Bytes
    Add new SentenceTransformer model. almost 5 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    1.88 GB
    xet
    Add new SentenceTransformer model. almost 5 years ago
  • sentence_bert_config.json
    53 Bytes
    Add new SentenceTransformer model. almost 5 years ago
  • special_tokens_map.json
    112 Bytes
    Update special_tokens_map.json over 5 years ago
  • tf_model.h5
    1.88 GB
    xet
    Add TF weights almost 4 years ago
  • tokenizer.json
    9.62 MB
    Add new SentenceTransformer model. almost 5 years ago
  • tokenizer_config.json
    411 Bytes
    Add new SentenceTransformer model. almost 5 years ago
  • vocab.txt
    5.22 MB
    Update vocab.txt over 5 years ago