Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

Gaurav30
/
mpnet-finetuned

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

Instructions to use Gaurav30/mpnet-finetuned with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use Gaurav30/mpnet-finetuned with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("Gaurav30/mpnet-finetuned")
    
    sentences = [
        "The rules established in Section 70 were repealed as of January 1, 1957.",
        "Section 70:\n Rules of Procedure.\n Rep. by s. 7 ibid, (w.e.f. 1-1-1957).",
        "Section ORDER V - Rule 2:\n Copy of plaint annexed to summons.\n Every summon shall be accompanied by a copy of the plaint.",
        "Section ORDER XLV - Rule 6:\n Effect of refusal of certificate.\n Where such certificate is refused, the petition shall be dismissed."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
mpnet-finetuned
439 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
Gaurav30's picture
Gaurav30
Upload folder using huggingface_hub
fa7abfb verified about 1 month ago
  • 1_Pooling
    Upload folder using huggingface_hub about 1 month ago
  • 2_Normalize
    Upload folder using huggingface_hub about 1 month ago
  • .gitattributes
    1.52 kB
    initial commit about 1 month ago
  • README.md
    16.6 kB
    Upload folder using huggingface_hub about 1 month ago
  • config.json
    623 Bytes
    Upload folder using huggingface_hub about 1 month ago
  • config_sentence_transformers.json
    297 Bytes
    Upload folder using huggingface_hub about 1 month ago
  • model.safetensors
    438 MB
    xet
    Upload folder using huggingface_hub about 1 month ago
  • modules.json
    432 Bytes
    Upload folder using huggingface_hub about 1 month ago
  • sentence_bert_config.json
    250 Bytes
    Upload folder using huggingface_hub about 1 month ago
  • tokenizer.json
    742 kB
    Upload folder using huggingface_hub about 1 month ago
  • tokenizer_config.json
    609 Bytes
    Upload folder using huggingface_hub about 1 month ago