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
A LoRA fine-tuned version of Qwen/Qwen3-Embedding-8B optimized for cardiology and medical text embeddings.
This model is part of the CardioEmbed series, which includes embeddings models of various sizes optimized for cardiology text:
from peft import PeftModel
from transformers import AutoModel, AutoTokenizer
base_model = AutoModel.from_pretrained("Qwen/Qwen3-Embedding-8B")
model = PeftModel.from_pretrained(base_model, "richardyoung/CardioEmbed-Qwen3-8B")
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-Embedding-8B")
text = "Patient presents with chest pain and shortness of breath"
inputs = tokenizer(text, return_tensors="pt", padding=True, truncation=True)
outputs = model(**inputs)
embeddings = outputs.last_hidden_state.mean(dim=1)