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

lion-ai
/
embeddinggemma-300m-medembed-triplets2

Sentence Similarity
sentence-transformers
Safetensors
feature-extraction
dense
Generated from Trainer
dataset_size:230357
loss:MultipleNegativesRankingLoss
Eval Results (legacy)
Model card Files Files and versions
xet
Community

Instructions to use lion-ai/embeddinggemma-300m-medembed-triplets2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use lion-ai/embeddinggemma-300m-medembed-triplets2 with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("lion-ai/embeddinggemma-300m-medembed-triplets2")
    
    sentences = [
        "What were the results of the functional study using RNA and cDNA derivatives of the BRCA1 c.5074+3A>C variant?",
        "The patient was discharged on [date of discharge] and his most recent HbA1c level was 7.1% with a few episodes of hypoglycemia.",
        "The patient was diagnosed with stage IV NSCLC (malignant pleural effusion) in December 2014. Adenocarcinoma cells from pleural effusion were found, and immunohistochemistry analysis demonstrated positivity in TTF-1 and negativity in CK 5/6 and P63.",
        "Based on the results of the functional study using RNA and cDNA derivatives of the BRCA1 c.5074+3A>C variant, it is a likely pathogenic variant."
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
embeddinggemma-300m-medembed-triplets2
73.9 MB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
AleksanderObuchowski's picture
AleksanderObuchowski
Add new SentenceTransformer model
8630bf8 verified 11 months ago
  • 1_Pooling
    Add new SentenceTransformer model 11 months ago
  • 2_Dense
    Add new SentenceTransformer model 11 months ago
  • 3_Dense
    Add new SentenceTransformer model 11 months ago
  • .gitattributes
    1.57 kB
    Add new SentenceTransformer model 11 months ago
  • README.md
    33.3 kB
    Add new SentenceTransformer model 11 months ago
  • adapter_config.json
    842 Bytes
    Add new SentenceTransformer model 11 months ago
  • adapter_model.safetensors
    15.7 MB
    xet
    Add new SentenceTransformer model 11 months ago
  • added_tokens.json
    35 Bytes
    Add new SentenceTransformer model 11 months ago
  • config_sentence_transformers.json
    992 Bytes
    Add new SentenceTransformer model 11 months ago
  • modules.json
    573 Bytes
    Add new SentenceTransformer model 11 months ago
  • sentence_bert_config.json
    57 Bytes
    Add new SentenceTransformer model 11 months ago
  • special_tokens_map.json
    662 Bytes
    Add new SentenceTransformer model 11 months ago
  • tokenizer.json
    33.4 MB
    xet
    Add new SentenceTransformer model 11 months ago
  • tokenizer.model
    4.69 MB
    xet
    Add new SentenceTransformer model 11 months ago
  • tokenizer_config.json
    1.16 MB
    Add new SentenceTransformer model 11 months ago