🩺 Doctor AI — Qwen 2.5 1.5B Clinical Super Co-Pilot (Bengali & English)
Doctor AI is a specialized, fine-tuned clinical foundation model based on Qwen 2.5 1.5B Instruct, optimized specifically for real-time doctor-patient consultation dialogues, clinical entity extraction, differential diagnosis with probabilities, BMDC-standard digital prescription generation, and healthcare assistance in Bengali, English, and Banglish.
Developed by the Doctor AI Core Team, this model serves as the core intelligence behind the Doctor AI Ambient Clinical Scribe and Clinical Co-Pilot system.
🌟 Key Features
-
4-Step Clinical Consultation Workflow:
- 🧬 Clinical Entity & Symptom Extraction: Automatically extracts chief complaints, duration, and reviews of systems while filtering non-medical chit-chat.
- 🩺 Differential Diagnoses: Formulates prioritized differential diagnoses with percentage probabilities and ICD-11 coding.
- 📋 Doctor Verification Checklist: Generates critical diagnostic questions and bedside physical examination signs to confirm diagnoses.
- 🧪 Recommended Laboratory Investigations & SOAP Prescription: Formulates standard investigative panels and comprehensive SOAP Notes (Subjective, Objective, Assessment, Plan).
-
Bilingual Medical Mastery (বাংলা ও English):
- Native comprehension of Bengali colloquial medical complaints (যেমন: "পেট মোচড় দিয়ে ব্যথা", "চোখ বসে গেছে", "বুক চেপে ধরা", "মাথা ঘোরানো").
- Fluent English clinical medical terminology and pharmacology.
-
Multi-Domain Medical Expertise:
- Cardiology: STEMI/NSTEMI triage, angina, hypertension protocols.
- Sexual & Reproductive Health / Urology: STIs, hormonal assessments, contraindication safety (e.g. Sildenafil + Nitrate fatal interaction avoidance).
- Gastroenterology: Acute gastroenteritis, dehydration, food poisoning, peptic ulcers.
- Pediatrics & Infectious Diseases: Weight-based dosing, Dengue warning signs, dehydration monitoring.
-
Multiple Deployment Formats:
- Full FP16/Safetensors: Native HuggingFace Transformers support (
merged_qwen25_clinical/). - Quantized 4-bit GGUF (
q4_k_m): Runs locally on CPU/Edge devices viallama.cpp, Ollama, or LM Studio taking <1 GB RAM!
- Full FP16/Safetensors: Native HuggingFace Transformers support (
🚀 Quickstart Usage
Using Hugging Face transformers
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "mrrobot2259/doctor-ai-v0.1"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.float16 if torch.cuda.is_available() else torch.float32,
device_map="auto" if torch.cuda.is_available() else None
)
messages = [
{"role": "system", "content": "আপনি একজন বিশ্বমানের সিনিয়র মেডিকেল কনসালট্যান্ট ও কৃত্রিম বুদ্ধিমত্তা চালিত ভার্চুয়াল চিকিৎসক সহকারী (Doctor AI Super Co-Pilot)।"},
{"role": "user", "content": "গতকাল বাইরের খাবার খাওয়ার পর থেকে পেট মোচড় দিয়ে তীব্র ব্যথা করছে, ঘন ঘন পাতলা পায়খানা আর সাথে ৩-৪ বার বমি হয়েছে। খুব দুর্বল লাগছে। করণীয় কী ডাক্তার সাহেব?"}
]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer([prompt], return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=300, temperature=0.2)
response = tokenizer.decode(outputs[0][len(inputs.input_ids[0]):], skip_special_tokens=True)
print(response)
Using with llama.cpp or Ollama (GGUF)
# Run with llama-cli
llama-cli -m doctor_ai_qwen25_q4_k_m.gguf -p "ডাক্তার সাহেব, আমার ৩ দিন ধরে তীব্র জ্বর..."
# Or serve with llama-server on localhost:8081
llama-server -m doctor_ai_qwen25_q4_k_m.gguf --port 8081 -c 2048 -t 6
🛡️ Clinical Safety Disclaimer
Doctor AI is an artificial intelligence decision-support tool designed for certified medical practitioners, doctors, and healthcare researchers. It is not a replacement for professional clinical judgment, emergency medical services, or physical in-person examinations.
📜 Citation & Credits
- Base Model: Qwen 2.5 1.5B Instruct (Alibaba Cloud)
- Fine-Tuning & Clinical Knowledge Base: Doctor AI Core Research Team
- License: Apache 2.0