CardioEmbed-Gemma-2-2B

Domain-specialized cardiology text embeddings using LoRA-adapted Gemma-2-2B

Part of a comparative study of 10 embedding architectures for clinical cardiology.

Performance

Metric Score
Separation Score 0.455

Usage

from transformers import AutoModel, AutoTokenizer
from peft import PeftModel

base_model = AutoModel.from_pretrained("google/gemma-2-2b-it")
tokenizer = AutoTokenizer.from_pretrained("google/gemma-2-2b-it")
model = PeftModel.from_pretrained(base_model, "richardyoung/CardioEmbed-Gemma-2-2B")

Training

  • Training Data: 106,535 cardiology text pairs from medical textbooks
  • Method: LoRA fine-tuning (r=16, alpha=32)
  • Loss: Multiple Negatives Ranking Loss (InfoNCE)

Citation

@article{young2024comparative,
  title={Comparative Analysis of LoRA-Adapted Embedding Models for Clinical Cardiology Text Representation},
  author={Young, Richard J and Matthews, Alice M},
  journal={arXiv preprint},
  year={2024}
}
Downloads last month
13
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for richardyoung/CardioEmbed-Gemma-2-2B

Base model

google/gemma-2-2b
Adapter
(297)
this model