Downloads · 30 days
9
15% of all-time downloads
Udit013/qwen2.5-7b-medmcqa-qlora-5k
qwen2.5-7b-medmcqa-qlora-5k is a machine learning model from Udit013. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
A 4-bit QLoRA adapter for Qwen/Qwen2.5-7B-Instruct, fine-tuned on MedMCQA as one point of a data-scaling study of when parameter-efficient domain fine-tuning helps an already-strong instruction-tuned LLM. Powers the R…
Downloads · 30 days
9
15% of all-time downloads
All-time downloads
59
Public
Repo size
173 MB
Likes
0
Public
Click a slice to open those files.
.safetensors162 MB · 91%
From the Hugging Face model README
A 4-bit QLoRA adapter for Qwen/Qwen2.5-7B-Instruct, fine-tuned on MedMCQA as
one point of a data-scaling study of when parameter-efficient domain
fine-tuning helps an already-strong instruction-tuned LLM. Powers the RAG
assistant at https://github.com/Udit013/biomed-llm-peft
(live demo: https://huggingface.co/spaces/Udit013/biomed-assistant).
Research and education only. Must NOT be used for real clinical decisions, diagnosis, or treatment. Outputs are uncalibrated and may be confidently wrong.
| Model | MedMCQA (in-domain) | PubMedQA (out-of-domain) |
|---|---|---|
| Base 0-shot | 47.5 | 48.0 |
| QLoRA 5K | 50.0 | 64.5 |
In-domain is flat (within noise) — strong instruction tuning already near-saturates MedMCQA; the OOD gain is likely an answer-selection/format effect, not new knowledge. See the repo for the full methodology and honest write-up.
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-7B-Instruct", device_map="auto", load_in_4bit=True)
model = PeftModel.from_pretrained(base, "Udit013/qwen2.5-7b-medmcqa-qlora-5k")
tok = AutoTokenizer.from_pretrained("Qwen/Qwen2.5-7B-Instruct")