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
Run richardyoung/CardioEmbed-BGE-M3 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Use HF Jobs to fine-tune https://huggingface.co/richardyoung/CardioEmbed-BGE-M3. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Use HF Jobs to run batch inference with https://huggingface.co/richardyoung/CardioEmbed-BGE-M3 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use richardyoung/CardioEmbed-BGE-M3 with PEFT:
from peft import PeftModel
from transformers import AutoModel
base_model = AutoModel.from_pretrained("BAAI/bge-m3")
model = PeftModel.from_pretrained(base_model, "richardyoung/CardioEmbed-BGE-M3")How to use richardyoung/CardioEmbed-BGE-M3 with sentence-transformers:
from sentence_transformers import SentenceTransformer
model = SentenceTransformer("richardyoung/CardioEmbed-BGE-M3")
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 BGE-M3
Part of a comparative study of 10 embedding architectures for clinical cardiology (arXiv:2511.19739).
| Metric | Score |
|---|---|
| Separation Score | 0.209 |
from transformers import AutoModel, AutoTokenizer
from peft import PeftModel
base_model = AutoModel.from_pretrained("BAAI/bge-m3")
tokenizer = AutoTokenizer.from_pretrained("BAAI/bge-m3")
model = PeftModel.from_pretrained(base_model, "richardyoung/CardioEmbed-BGE-M3")
@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 arXiv:2511.19739},
year={2025},
url={https://arxiv.org/abs/2511.19739}
}
Built & maintained by Richard Young · DeepNeuro
Base model
BAAI/bge-m3