Downloads · 30 days
7
13% of all-time downloads
Hriday75/qwen2.5-3b-cardio-chat
qwen2.5-3b-cardio-chat is a text generation model from Hriday75. Use it when you need the model to write or continue text. It is set up for peft.
This is a highly specialized, supervised fine-tuned (SFT) LoRA adapter for the Qwen2.5-3B model. While the Phase 1 model learned dense medical science, this Phase 2 model was specifically instruction-tuned to communic…
Downloads · 30 days
7
13% of all-time downloads
All-time downloads
52
Public
Repo size
251 MB
Likes
0
Public
Click a slice to open those files.
.safetensors240 MB · 95%
From the Hugging Face model README
This is a highly specialized, supervised fine-tuned (SFT) LoRA adapter for the Qwen2.5-3B model. While the Phase 1 model learned dense medical science, this Phase 2 model was specifically instruction-tuned to communicate those facts with excellent bedside manner. It is designed to act as an empathetic, conversational cardiology expert.
unsloth/Qwen2.5-3B-bnb-4bit (via Phase 1 Cardiology LoRA)This model is intended to be used in a conversational interface (like a chat app). It is designed to answer patient questions about heart conditions, explain cardiology reports simply, and maintain an empathetic, helpful tone.
This adapter was trained on structured conversational datasets featuring thousands of back-and-forth patient/doctor interactions. The primary dataset used was ruslanmv/ai-medical-chatbot, which was formatted into the standard ChatML structure (System, User, Assistant).
Trained using unsloth and the TRL (Transformer Reinforcement Learning) SFTTrainer for high-efficiency instruction tuning.
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
# 1. Load the base model and tokenizer
base_model = AutoModelForCausalLM.from_pretrained("unsloth/Qwen2.5-3B-bnb-4bit")
tokenizer = AutoTokenizer.from_pretrained("unsloth/Qwen2.5-3B-bnb-4bit")
# 2. Attach this Cardiology Chat Adapter
model = PeftModel.from_pretrained(base_model, "Hriday75/qwen2.5-3b-cardio-chat")
# 3. Format your chat prompt
messages = [
{"role": "system", "content": "You are a helpful, empathetic cardiology expert."},
{"role": "user", "content": "Doctor, what does it mean if my ECG shows a prolonged QT interval?"}
]
inputs = tokenizer.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_tensors="pt"
)