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

  • Log In
  • Sign Up

CarloSgara
/
mpnet_model

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

Instructions to use CarloSgara/mpnet_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use CarloSgara/mpnet_model with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("CarloSgara/mpnet_model")
    
    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
mpnet_model
439 MB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 2 commits
Carlo Sgaravatti
Initial commit
0c1fe4a almost 2 years ago
  • 1_Pooling
    Initial commit almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 2 years ago
  • README.md
    2.49 kB
    Initial commit almost 2 years ago
  • config.json
    613 Bytes
    Initial commit almost 2 years ago
  • config_sentence_transformers.json
    164 Bytes
    Initial commit almost 2 years ago
  • model.safetensors
    438 MB
    xet
    Initial commit almost 2 years ago
  • modules.json
    349 Bytes
    Initial commit almost 2 years ago
  • sentence_bert_config.json
    53 Bytes
    Initial commit almost 2 years ago
  • special_tokens_map.json
    964 Bytes
    Initial commit almost 2 years ago
  • tokenizer.json
    711 kB
    Initial commit almost 2 years ago
  • tokenizer_config.json
    1.58 kB
    Initial commit almost 2 years ago
  • vocab.txt
    232 kB
    Initial commit almost 2 years ago