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

bbmb
/
deep-learning-for-embedding-model-ssilwal-qpham6_army_doc

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

Instructions to use bbmb/deep-learning-for-embedding-model-ssilwal-qpham6_army_doc with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use bbmb/deep-learning-for-embedding-model-ssilwal-qpham6_army_doc with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("bbmb/deep-learning-for-embedding-model-ssilwal-qpham6_army_doc")
    
    sentences = [
        "Defense \n11 January 2024 ATP 3-21.8 5-57\n Reaction to enemy fires (for example, artillery and/or aviation) and CBRN\nattacks.\n Reports to higher, monitoring stockage levels, and cross leveling or resupply.\n CASEVAC and MEDEVAC procedures.\n Criteria to commitment the reserve.\nFigure 5-13. Main battle area (platoon engagements), example \nFOLLOW THROUGH \n5-167. During the planning for the defensive operation, the platoon leader must discern \nfrom the company OPORD what the potential follow-on missions are and begin to plan\nhow to achieve them. During this planning , the leader determines the possible timeline\nand location for defeat in detail , consolidate, reorganize, and transition which best\nf\nacilitates future operations and provides adequate protection.",
        "What are some methods for distributing fires effectively in a platoon?",
        "What should I consider when selecting battle positions for my unit?",
        "What key factors are involved in planning for a defense scenario?"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
deep-learning-for-embedding-model-ssilwal-qpham6_army_doc
91.9 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
bbmb's picture
bbmb
Add new SentenceTransformer model
7bc0867 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
    46.8 kB
    Add new SentenceTransformer model over 1 year ago
  • config.json
    678 Bytes
    Add new SentenceTransformer model over 1 year ago
  • config_sentence_transformers.json
    205 Bytes
    Add new SentenceTransformer model over 1 year ago
  • model.safetensors
    90.9 MB
    xet
    Add new SentenceTransformer model over 1 year ago
  • modules.json
    349 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
    695 Bytes
    Add new SentenceTransformer model over 1 year ago
  • tokenizer.json
    712 kB
    Add new SentenceTransformer model over 1 year ago
  • tokenizer_config.json
    1.43 kB
    Add new SentenceTransformer model over 1 year ago
  • vocab.txt
    232 kB
    Add new SentenceTransformer model over 1 year ago