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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

NickyNicky
/
StaticEmbedding-MatryoshkaLoss-gemma-2-2b-en-es

Sentence Similarity
sentence-transformers
Safetensors
feature-extraction
Generated from Trainer
dataset_size:4322286
loss:MatryoshkaLoss
loss:MultipleNegativesRankingLoss
Model card Files Files and versions
xet
Community

Instructions to use NickyNicky/StaticEmbedding-MatryoshkaLoss-gemma-2-2b-en-es with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use NickyNicky/StaticEmbedding-MatryoshkaLoss-gemma-2-2b-en-es with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("NickyNicky/StaticEmbedding-MatryoshkaLoss-gemma-2-2b-en-es")
    
    sentences = [
        "how to sign legal documents as power of attorney?",
        "After the principal's name, write “by” and then sign your own name. Under or after the signature line, indicate your status as POA by including any of the following identifiers: as POA, as Agent, as Attorney in Fact or as Power of Attorney.",
        "['From the Home screen, swipe left to Apps.', 'Tap Transfer my Data.', 'Tap Menu (...).', 'Tap Export to SD card.']",
        "Ginger Dank Nugs (Grape) - 350mg. Feast your eyes on these unique and striking gourmet chocolates; Coco Nugs created by Ginger Dank. Crafted to resemble perfect nugs of cannabis, each of the 10 buds contains 35mg of THC. ... This is a perfect product for both cannabis and chocolate lovers, who appreciate a little twist."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
StaticEmbedding-MatryoshkaLoss-gemma-2-2b-en-es
1.08 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 7 commits
NickyNicky's picture
NickyNicky
Update README.md
75c7b40 verified over 1 year ago
  • 0_StaticEmbedding
    Add new SentenceTransformer model over 1 year ago
  • .gitattributes
    1.59 kB
    Add new SentenceTransformer model over 1 year ago
  • README.md
    33.4 kB
    Update README.md over 1 year ago
  • config_sentence_transformers.json
    205 Bytes
    Add new SentenceTransformer model over 1 year ago
  • modules.json
    134 Bytes
    Add new SentenceTransformer model over 1 year ago