Downloads · 30 days
28
10% of all-time downloads
AliMurtaza-096/qwen2.5-7b-medical-instruct
qwen2.5-7b-medical-instruct is a machine learning model from AliMurtaza-096. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Fine-tuned version of Qwen2.5-7B-Instruct for medical front desk conversations, trained on 130 examples of clinic administrative tasks.
Downloads · 30 days
28
10% of all-time downloads
All-time downloads
277
Public
Parameters
7.6B
19.9 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors15.2 GB · 76%
From the Hugging Face model README
Fine-tuned version of Qwen2.5-7B-Instruct for medical front desk conversations, trained on 130 examples of clinic administrative tasks.
The model was fine-tuned on 130 conversations covering:
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("AliMurtaza-096/qwen2.5-7b-medical-instruct")
tokenizer = AutoTokenizer.from_pretrained("AliMurtaza-096/qwen2.5-7b-medical-instruct")
messages = [
{"role": "system", "content": "You are a friendly, professional front-desk assistant for Northview Medical Associates."},
{"role": "user", "content": "I need to reschedule my appointment."}
]
inputs = tokenizer.apply_chat_template(messages, tokenize=True, add_generation_prompt=True, return_tensors="pt")
outputs = model.generate(inputs, max_new_tokens=128)
print(tokenizer.decode(outputs[0]))
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:
ollama create qwen2.5-medical -f Modelfile
ollama run qwen2.5-medical "What are your office hours?"
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."
model-00001-of-00004.safetensorsmodel-00002-of-00004.safetensorsmodel-00003-of-00004.safetensorsmodel-00004-of-00004.safetensorsqwen2.5-7b-medical-q4_k_m.ggufThis model inherits the license from the base Qwen2.5-7B-Instruct model.
If you use this model, please cite:
@misc{qwen2.5-7b-medical-instruct,
author = {Ali Murtaza},
title = {Qwen 2.5 7B Medical Front Desk Assistant},
year = {2025},
publisher = {HuggingFace},
howpublished = {\\url{https://huggingface.co/AliMurtaza-096/qwen2.5-7b-medical-instruct}},
}
⚠️ 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.