Run this model with HF Jobs

Run richardyoung/CardioEmbed-MPNet-base 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:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/richardyoung/CardioEmbed-MPNet-base. 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.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/richardyoung/CardioEmbed-MPNet-base 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 from the
Use from the
sentence-transformers library
from sentence_transformers import SentenceTransformer

model = SentenceTransformer("richardyoung/CardioEmbed-MPNet-base")

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]

CardioEmbed-MPNet-base

Domain-specialized cardiology text embeddings using LoRA-adapted MPNet-base

Part of a comparative study of 10 embedding architectures for clinical cardiology (arXiv:2511.19739).

Performance

Metric Score
Separation Score 0.386

Usage

from transformers import AutoModel, AutoTokenizer
from peft import PeftModel

base_model = AutoModel.from_pretrained("sentence-transformers/all-mpnet-base-v2")
tokenizer = AutoTokenizer.from_pretrained("sentence-transformers/all-mpnet-base-v2")
model = PeftModel.from_pretrained(base_model, "richardyoung/CardioEmbed-MPNet-base")

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 arXiv:2511.19739},
  year={2025},
  url={https://arxiv.org/abs/2511.19739}
}

Built & maintained by Richard Young ยท DeepNeuro

Downloads last month
32
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for richardyoung/CardioEmbed-MPNet-base

Adapter
(1)
this model

Paper for richardyoung/CardioEmbed-MPNet-base