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

  • Log In
  • Sign Up

onecd2000
/
modernbert-embed-test

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

Instructions to use onecd2000/modernbert-embed-test with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use onecd2000/modernbert-embed-test with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("onecd2000/modernbert-embed-test")
    
    sentences = [
        "What do the packets contain that is essential for their travel?",
        "Packet switching breaks data into small packets, each containing a destination address. These packets travel independently across the network, taking different paths if necessary, and reassemble at the destination. This method proved to be more efficient and resilient, making it the backbone of modern internet communication.\n\nThe Birth of ARPANET",
        "Early Concepts of Networking",
        ". Researchers such as Paul Baran at RAND Corporation and Donald Davies at the National Physical Laboratory in the UK independently developed the concept of packet switching."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
modernbert-embed-test
600 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
onecd2000's picture
onecd2000
Add new SentenceTransformer model
424faaa verified about 1 year ago
  • 1_Pooling
    Add new SentenceTransformer model about 1 year ago
  • .gitattributes
    1.52 kB
    initial commit about 1 year ago
  • README.md
    28.3 kB
    Add new SentenceTransformer model about 1 year ago
  • config.json
    1.29 kB
    Add new SentenceTransformer model about 1 year ago
  • config_sentence_transformers.json
    214 Bytes
    Add new SentenceTransformer model about 1 year ago
  • model.safetensors
    596 MB
    xet
    Add new SentenceTransformer model about 1 year ago
  • modules.json
    368 Bytes
    Add new SentenceTransformer model about 1 year ago
  • sentence_bert_config.json
    57 Bytes
    Add new SentenceTransformer model about 1 year ago
  • special_tokens_map.json
    731 Bytes
    Add new SentenceTransformer model about 1 year ago
  • tokenizer.json
    3.58 MB
    Add new SentenceTransformer model about 1 year ago
  • tokenizer_config.json
    21.8 kB
    Add new SentenceTransformer model about 1 year ago