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

mrm8488
/
distilbert-base-matryoshka-sts

Sentence Similarity
sentence-transformers
Safetensors
English
distilbert
feature-extraction
dataset_size:1K<n<10K
loss:MatryoshkaLoss
loss:CoSENTLoss
Eval Results (legacy)
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use mrm8488/distilbert-base-matryoshka-sts with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use mrm8488/distilbert-base-matryoshka-sts with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("mrm8488/distilbert-base-matryoshka-sts")
    
    sentences = [
        "A woman is dancing.",
        "Women are dancing.",
        "A toddler walks down a hallway.",
        "Shinzo Abe is Japan's prime minister"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
distilbert-base-matryoshka-sts
266 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
mrm8488's picture
mrm8488
Add new SentenceTransformer model.
a900b52 verified almost 2 years ago
  • 1_Pooling
    Add new SentenceTransformer model. almost 2 years ago
  • .gitattributes
    1.52 kB
    initial commit almost 2 years ago
  • README.md
    42.8 kB
    Add new SentenceTransformer model. almost 2 years ago
  • config.json
    546 Bytes
    Add new SentenceTransformer model. almost 2 years ago
  • config_sentence_transformers.json
    201 Bytes
    Add new SentenceTransformer model. almost 2 years ago
  • model.safetensors
    265 MB
    xet
    Add new SentenceTransformer model. almost 2 years ago
  • modules.json
    229 Bytes
    Add new SentenceTransformer model. almost 2 years ago
  • sentence_bert_config.json
    53 Bytes
    Add new SentenceTransformer model. almost 2 years ago
  • special_tokens_map.json
    125 Bytes
    Add new SentenceTransformer model. almost 2 years ago
  • tokenizer.json
    712 kB
    Add new SentenceTransformer model. almost 2 years ago
  • tokenizer_config.json
    1.2 kB
    Add new SentenceTransformer model. almost 2 years ago
  • vocab.txt
    232 kB
    Add new SentenceTransformer model. almost 2 years ago