Medical & Healthcare AI
Collection
Models and datasets for medical AI research. Includes CardioEmbed embeddings for cardiology, medical LLMs, and synthetic patient datasets. • 9 items • Updated
How to use richardyoung/CardioEmbed-Qwen3-4B with PEFT:
Task type is invalid.
How to use richardyoung/CardioEmbed-Qwen3-4B with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("richardyoung/CardioEmbed-Qwen3-4B")
sentences = [
"That is a happy person",
"That is a happy dog",
"That is a very happy person",
"Today is a sunny day"
]
embeddings = model.encode(sentences)
similarities = model.similarity(embeddings, embeddings)
print(similarities.shape)
# [4, 4]Domain-specialized cardiology text embeddings using LoRA-adapted Qwen3-4B
Part of a comparative study of 10 embedding architectures for clinical cardiology.
| Metric | Score |
|---|---|
| Separation Score | 0.446 |
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")
@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}
}