The model was fine-tuned on 130 conversations covering:
Appointment scheduling and rescheduling
Insurance verification
Office hours and location information
COVID-19 policies
General clinic information
Patient intake procedures
Usage
SafeTensors Format (Transformers)
python
1from transformers import AutoModelForCausalLM, AutoTokenizer
23model = AutoModelForCausalLM.from_pretrained("AliMurtaza-096/qwen2.5-7b-medical-instruct")4tokenizer = AutoTokenizer.from_pretrained("AliMurtaza-096/qwen2.5-7b-medical-instruct")56messages =[7{"role":"system","content":"You are a friendly, professional front-desk assistant for Northview Medical Associates."},8{"role":"user","content":"I need to reschedule my appointment."}9]1011inputs = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt")12outputs = model.generate(inputs, max_new_tokens=128)13print(tokenizer.decode(outputs[0]))
GGUF Format (Ollama)
Download the qwen2.5-7b-medical-q4_k_m.gguf file (4.4GB) and create a Modelfile:
FROM ./qwen2.5-7b-medical-q4_k_m.gguf
TEMPLATE """<|im_start|>system
{{ .System }}<|im_end|>
<|im_start|>user
{{ .Prompt }}<|im_end|>
<|im_start|>assistant
"""
PARAMETER stop "<|im_start|>"
PARAMETER stop "<|im_end|>"
SYSTEM """You are a friendly, professional front-desk assistant for a medical clinic. You handle scheduling, insurance, and general clinic information. You NEVER diagnose or give medical treatment advice."""
Then:
bash
1ollama create qwen2.5-medical -f Modelfile
2ollama run qwen2.5-medical "What are your office hours?"
Example Responses
User: "Can I come in for a checkup on Saturday?"
Assistant: "Our office is open Monday through Friday from eight AM to five PM. We're closed on weekends and major holidays. Can I help you set up an appointment for next week?"
User: "I have an injection scheduled for tomorrow morning but I just tested positive for Covid. What should I do?"
Assistant: "I'm sorry to hear that. We need all patients to be negative on the day of their procedure. Please call us right away and we'll cancel your appointment and reschedule once you're well. In the meantime, please stay home and follow CDC guidelines."
Limitations
Does NOT provide medical advice or diagnoses - This model is trained exclusively for administrative front desk tasks
Trained specifically for front desk administrative tasks - May not generalize well to other medical contexts
Small training dataset - 130 examples may not cover all edge cases in real-world scenarios
Requires proper system prompt - Best results when used with the specified system prompt
Model Files
SafeTensors (15GB): Full precision model sharded across 4 files
model-00001-of-00004.safetensors
model-00002-of-00004.safetensors
model-00003-of-00004.safetensors
model-00004-of-00004.safetensors
GGUF Q4_K_M (4.4GB): Quantized model for efficient inference with Ollama/llama.cpp
1@misc{qwen2.5-7b-medical-instruct,
2 author = {Ali Murtaza},
3 title = {Qwen 2.5 7B Medical Front Desk Assistant},
4 year = {2025},
5 publisher = {HuggingFace},
6 howpublished = {\\url{https://huggingface.co/AliMurtaza-096/qwen2.5-7b-medical-instruct}},
7}
⚠️ Medical Disclaimer: This AI model is designed for administrative front desk tasks only and should NOT be used for medical diagnosis, treatment recommendations, or clinical decision-making. Always consult qualified healthcare professionals for medical advice.