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

  • Log In
  • Sign Up

pavanmantha
/
embeddinggemma-pubmed

Sentence Similarity
sentence-transformers
Safetensors
gemma3_text
feature-extraction
dense
Generated from Trainer
dataset_size:33200
loss:MultipleNegativesRankingLoss
text-embeddings-inference
Model card Files Files and versions
xet
Community

Instructions to use pavanmantha/embeddinggemma-pubmed with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • sentence-transformers

    How to use pavanmantha/embeddinggemma-pubmed with sentence-transformers:

    from sentence_transformers import SentenceTransformer
    
    model = SentenceTransformer("pavanmantha/embeddinggemma-pubmed")
    
    sentences = [
        "Are stroke patients' reports of home blood pressure readings reliable?",
        "The first Whitehall study.",
        "A total of 1027 monitor and 716 booklet readings were recorded. Ninety per cent of booklet recordings were exactly the same as the BP monitor readings. Average booklet readings were 0.6 mmHg systolic [95% confidence interval (95% CI) -0.6 to 1.8] and 0.3 mmHg diastolic (95% CI -0.3 to 0.8) lower than those on the monitor.",
        "Protocol 1: a) office blood pressure measurement and Home1 were significantly higher than ambulatory blood pressure monitoring, except for systolic and diastolic office blood pressure measurement taken by the patient or a family member, systolic blood pressure taken by a nurse, and diastolic blood pressure taken by a physician. b) ambulatory blood pressure monitoring and HBPM1 were similar. Protocol 2: a) HBPM2 and Home2 were similar. b) Home2 was significantly lower than Home1, except for diastolic blood pressure taken by a nurse or the patient. There were significant relationships between: a) diastolic blood pressure measured by the patient and the thickness of the interventricular septum, posterior wall, and left ventricular mass; and b) ambulatory and HBPM2 diastolic and systolic blood pressure taken by a physician (home2) and left ventricular mass. Therefore, the data indicate that home blood pressure measurement and ambulatory blood pressure monitoring had good prognostic values relative to \"office measurement.\""
    ]
    embeddings = model.encode(sentences)
    
    similarities = model.similarity(embeddings, embeddings)
    print(similarities.shape)
    # [4, 4]
  • Notebooks
  • Google Colab
  • Kaggle
embeddinggemma-pubmed
1.26 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 2 commits
pavanmantha's picture
pavanmantha
Add new SentenceTransformer model
c2c473a verified 3 months ago
  • 1_Pooling
    Add new SentenceTransformer model 3 months ago
  • 2_Dense
    Add new SentenceTransformer model 3 months ago
  • 3_Dense
    Add new SentenceTransformer model 3 months ago
  • .gitattributes
    1.57 kB
    Add new SentenceTransformer model 3 months ago
  • README.md
    24 kB
    Add new SentenceTransformer model 3 months ago
  • config.json
    1.64 kB
    Add new SentenceTransformer model 3 months ago
  • config_sentence_transformers.json
    1 kB
    Add new SentenceTransformer model 3 months ago
  • model.safetensors
    1.21 GB
    xet
    Add new SentenceTransformer model 3 months ago
  • modules.json
    573 Bytes
    Add new SentenceTransformer model 3 months ago
  • sentence_bert_config.json
    58 Bytes
    Add new SentenceTransformer model 3 months ago
  • tokenizer.json
    33.4 MB
    xet
    Add new SentenceTransformer model 3 months ago
  • tokenizer_config.json
    676 Bytes
    Add new SentenceTransformer model 3 months ago