Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing

  • Log In
  • Sign Up

flax-sentence-embeddings
/
stackoverflow_mpnet-base

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

Instructions to use flax-sentence-embeddings/stackoverflow_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/stackoverflow_mpnet-base with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("flax-sentence-embeddings/stackoverflow_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
stackoverflow_mpnet-base
439 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 4 commits
Trent Oh
Update README.md
50529c3 almost 5 years ago
  • 1_Pooling
    upload almost 5 years ago
  • .gitattributes
    737 Bytes
    initial commit almost 5 years ago
  • README.md
    3.66 kB
    Update README.md 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
    133 Bytes
    upload almost 5 years ago
  • modules.json
    349 Bytes
    upload almost 5 years ago
  • pytorch_model.bin

    Detected Pickle imports (4)

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

    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
    8.11 kB
    upload almost 5 years ago
  • vocab.txt
    232 kB
    upload almost 5 years ago