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

knguyennguyen
/
mpnet_20k

Sentence Similarity
sentence-transformers
Safetensors
mpnet
feature-extraction
Generated from Trainer
dataset_size:20108
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Model card Files Files and versions
xet
Community

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

  • Libraries
  • sentence-transformers

    How to use knguyennguyen/mpnet_20k with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("knguyennguyen/mpnet_20k")
    
    sentences = [
        "I'm in search of a durable cover that can safeguard my cycling device while still allowing easy access to its features. It should be lightweight and available in different color options.",
        "Title: Portable Radio AM FM KAVNLON-001 Descripion: ['1']",
        "Title: GE WB27T11078 Keypanel Supt Asm Wh Descripion: ['This is an O.E.M. Authorized part . This is an authorized aftermarket product. Fits with various WB27T11078 brand models.']",
        "Title: Garmin 010-12791-00 Silicone Case, Edge 530, Black Descripion: ['Protect your Edge® 830 with this form-fitting, removable silicone case. Available in other colors (sold separately).']"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
mpnet_20k
439 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
knguyennguyen's picture
knguyennguyen
Add new SentenceTransformer model.
3475bcd verified over 1 year ago
  • 1_Pooling
    Add new SentenceTransformer model. over 1 year ago
  • .gitattributes
    1.52 kB
    initial commit over 1 year ago
  • README.md
    24.8 kB
    Add new SentenceTransformer model. over 1 year ago
  • config.json
    613 Bytes
    Add new SentenceTransformer model. over 1 year ago
  • config_sentence_transformers.json
    201 Bytes
    Add new SentenceTransformer model. over 1 year ago
  • model.safetensors
    438 MB
    xet
    Add new SentenceTransformer model. over 1 year ago
  • modules.json
    229 Bytes
    Add new SentenceTransformer model. over 1 year ago
  • sentence_bert_config.json
    53 Bytes
    Add new SentenceTransformer model. over 1 year ago
  • special_tokens_map.json
    964 Bytes
    Add new SentenceTransformer model. over 1 year ago
  • tokenizer.json
    711 kB
    Add new SentenceTransformer model. over 1 year ago
  • tokenizer_config.json
    1.59 kB
    Add new SentenceTransformer model. over 1 year ago
  • vocab.txt
    232 kB
    Add new SentenceTransformer model. over 1 year ago