CardioEmbed-Qwen3-4B

Domain-specialized cardiology text embeddings using LoRA-adapted Qwen3-4B

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

Performance

Metric Score
Separation Score 0.446

Usage

from transformers import AutoModel, AutoTokenizer
from peft import PeftModel

base_model = AutoModel.from_pretrained("Qwen/Qwen3-Embedding-4B")
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-Embedding-4B")
model = PeftModel.from_pretrained(base_model, "richardyoung/CardioEmbed-Qwen3-4B")

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
9
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for richardyoung/CardioEmbed-Qwen3-4B

Base model

Qwen/Qwen3-4B-Base
Adapter
(14)
this model

Collection including richardyoung/CardioEmbed-Qwen3-4B