Downloads · 30 days
0
Asad854/mistral-medical-qlora
mistral-medical-qlora is a machine learning model from Asad854. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Downloads · 30 days
0
Access
Public
Updated Jun 30, 2026
Repo size
54.6 MB
Likes
0
Public
Click a slice to open those files.
.safetensors54.6 MB · 94%
From the Hugging Face model README
apache-2.0
mistralai/Mistral-7B-v0.1
Tags medical,qlora,lora,peft,mistral
medmcqa
en
Fine-tuned version of Mistral-7B-v0.1 on the MedMCQA dataset using QLoRA for parameter-efficient domain adaptation to medical multiple-choice question answering.
Model Accuracy (300-question held-out eval) Base Mistral-7B 41.0% Fine-tuned (this model) 52.7% Improvement +11.7% Training Details Base model: mistralai/Mistral-7B-v0.1 Method: QLoRA (4-bit NF4 quantization + LoRA adapters) LoRA config: rank=32, alpha=64, target modules = q_proj, k_proj, v_proj, o_proj Dataset: MedMCQA (8,000 training samples, 500 validation samples) Epochs: 1 Hardware: Single NVIDIA T4 GPU Training time: ~5 hours 18 minutes Final training loss: 1.026 Final validation loss: 1.130 Mean token accuracy: 75.8%
prompt = """You are a medical expert. Answer the following multiple choice question.
Question: A 45-year-old presents with chest pain radiating to the left arm. A) Angina B) Myocardial Infarction C) GERD D) Anxiety
Answer:"""
This model is intended for research and educational purposes — demonstrating parameter-efficient fine-tuning techniques on medical multiple-choice QA. It is not intended for clinical or diagnostic use and should not be used to make real-world medical decisions.
Trained on only 8,000 of the 194,000 available MedMCQA samples due to compute constraints Single epoch of training; further epochs or full-dataset training would likely improve performance Evaluated using greedy decoding on the first generated token only, which may slightly undercount correct answers Not validated against clinical safety standards — outputs should not be used for actual medical advice
GitHub repo: mistral-medical-qlora Full report: see GitHub repo for training curves and detailed methodology
If you reference this work, please cite:
@misc{usmani2026medicalqlora, author = {Asad Usmani}, title = {Domain Adaptation of Mistral-7B for Medical Question Answering using QLoRA}, year = {2026}, publisher = {HuggingFace}, howpublished = {\url{https://huggingface.co/Asad854/mistral-medical-qlora}} }