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

flax-sentence-embeddings
/
all_datasets_v4_mpnet-base

Sentence Similarity
sentence-transformers
PyTorch
English
mpnet
feature-extraction
text-embeddings-inference
Model card Files Files and versions
xet
Community
1

Instructions to use flax-sentence-embeddings/all_datasets_v4_mpnet-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use flax-sentence-embeddings/all_datasets_v4_mpnet-base with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("flax-sentence-embeddings/all_datasets_v4_mpnet-base")
    
    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]
  • Notebooks
  • Google Colab
  • Kaggle
all_datasets_v4_mpnet-base
439 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 4 commits
asi's picture
asi
:books: add documentation
9d3c8ee almost 5 years ago
  • 1_Pooling
    upload almost 5 years ago
  • .gitattributes
    737 Bytes
    initial commit almost 5 years ago
  • README.md
    7.13 kB
    :books: add documentation almost 5 years ago
  • config.json
    571 Bytes
    upload almost 5 years ago
  • config_sentence_transformers.json
    116 Bytes
    upload almost 5 years ago
  • data_config.json
    39.3 kB
    upload almost 5 years ago
  • modules.json
    349 Bytes
    up almost 5 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    What is a pickle import?

    438 MB
    xet
    upload almost 5 years ago
  • sentence_bert_config.json
    53 Bytes
    upload almost 5 years ago
  • special_tokens_map.json
    239 Bytes
    upload almost 5 years ago
  • tokenizer.json
    466 kB
    upload almost 5 years ago
  • tokenizer_config.json
    363 Bytes
    upload almost 5 years ago
  • train_script.py
    13.1 kB
    upload almost 5 years ago
  • vocab.txt
    232 kB
    upload almost 5 years ago