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

ndsanjana
/
embedgemma_ns

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

Instructions to use ndsanjana/embedgemma_ns with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use ndsanjana/embedgemma_ns with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("ndsanjana/embedgemma_ns")
    
    sentences = [
        "Theme: Dystopian surveillance and control, Ethical implications of autonomous warfare, Human agency versus machine dominance, Resistance against dehumanization, Unintended consequences of technological advancement, Manipulation and hidden agendas, Redemption and moral choice",
        "Theme: Discovery of ancient mysteries, Conflict between community values and greed, Sacrifice for the greater good, Renewal and hope through art, The power of collective action",
        "unknown",
        "Theme: AI-driven warfare and its ethical implications, Human agency versus technological determinism, Surveillance and the hunt for dissent, Rebellion against oppressive systems, The moral dilemma of dismantling versus repurposing destructive technology, Hidden sabotage and the foresight of architects, The fragility of global security in a tech‑centric world",
        "96_theme_cross"
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [5, 5]
  • Notebooks
  • Google Colab
  • Kaggle
embedgemma_ns
1.26 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
ndsanjana's picture
ndsanjana
Add new SentenceTransformer model
3dc2670 verified 6 months ago
  • 1_Pooling
    Add new SentenceTransformer model 6 months ago
  • 2_Dense
    Add new SentenceTransformer model 6 months ago
  • 3_Dense
    Add new SentenceTransformer model 6 months ago
  • .gitattributes
    1.57 kB
    Add new SentenceTransformer model 6 months ago
  • README.md
    32.1 kB
    Add new SentenceTransformer model 6 months ago
  • config.json
    1.48 kB
    Add new SentenceTransformer model 6 months ago
  • config_sentence_transformers.json
    992 Bytes
    Add new SentenceTransformer model 6 months ago
  • model.safetensors
    1.21 GB
    xet
    Add new SentenceTransformer model 6 months ago
  • modules.json
    573 Bytes
    Add new SentenceTransformer model 6 months ago
  • sentence_bert_config.json
    58 Bytes
    Add new SentenceTransformer model 6 months ago
  • special_tokens_map.json
    662 Bytes
    Add new SentenceTransformer model 6 months ago
  • tokenizer.json
    33.4 MB
    xet
    Add new SentenceTransformer model 6 months ago
  • tokenizer_config.json
    1.16 MB
    Add new SentenceTransformer model 6 months ago