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

dboyker-code
/
all-MiniLM-L6-v2-nfcorpus

Sentence Similarity
sentence-transformers
Safetensors
bert
feature-extraction
dense
Generated from Trainer
dataset_size:110575
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use dboyker-code/all-MiniLM-L6-v2-nfcorpus with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use dboyker-code/all-MiniLM-L6-v2-nfcorpus with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("dboyker-code/all-MiniLM-L6-v2-nfcorpus")
    
    sentences = [
        "colon health because of the fiber content , plant-based diets may produce healthier stools and lead to larger bowel movements , which is important for the prevention of a number of medical conditions . interestingly , antioxidant-rich fruits and vegetables appear to increase stool size independent of fiber . furthermore",
        "Abstract BACKGROUND: The aging process can lead to a decline in cellular immunity. Therefore, the elderly could benefit from safe and effective interventions that restore cellular immune functions. OBJECTIVE: We determined whether dietary supplementation",
        "Abstract OBJECTIVES: Standard therapies for antibiotic-associated diarrhea (AAD) and Clostridium difficile-associated diarrhea (CDAD) have limited efficacy. Probiotic prophylaxis is a promising alternative for reduction of AAD and CDAD incidence.",
        "Abstract BACKGROUND: Heterocyclic amines, mutagens formed in meats cooked at high temperatures, have been demonstrated as mammary carcinogens in animals. We conducted a nested, case-control study among 41836 cohort members of the Iowa"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
all-MiniLM-L6-v2-nfcorpus
91.9 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
dboyker-code's picture
dboyker-code
Update README.md
08c9927 verified 5 months ago
  • 1_Pooling
    Upload folder using huggingface_hub 5 months ago
  • .gitattributes
    1.52 kB
    initial commit 5 months ago
  • README.md
    54.7 kB
    Update README.md 5 months ago
  • config.json
    611 Bytes
    Upload folder using huggingface_hub 5 months ago
  • config_sentence_transformers.json
    283 Bytes
    Upload folder using huggingface_hub 5 months ago
  • model.safetensors
    90.9 MB
    xet
    Upload folder using huggingface_hub 5 months ago
  • modules.json
    349 Bytes
    Upload folder using huggingface_hub 5 months ago
  • sentence_bert_config.json
    57 Bytes
    Upload folder using huggingface_hub 5 months ago
  • special_tokens_map.json
    695 Bytes
    Upload folder using huggingface_hub 5 months ago
  • tokenizer.json
    712 kB
    Upload folder using huggingface_hub 5 months ago
  • tokenizer_config.json
    1.46 kB
    Upload folder using huggingface_hub 5 months ago
  • vocab.txt
    232 kB
    Upload folder using huggingface_hub 5 months ago