qwen2.5-1.5b-medqa-qlora
A LoRA adapter for Qwen2.5-1.5B-Instruct, fine-tuned with QLoRA (4-bit) on 2,500 MedQuAD question-answer pairs. Educational project, not a medical tool.
Educational use only. This is not medical advice. The model can be wrong, can invent details or numbers, and sometimes repeats itself. For personal medical concerns, consult a qualified healthcare professional.
Training
- Base model: Qwen/Qwen2.5-1.5B-Instruct, 4-bit NF4
- Data: 2,500 MedQuAD examples with exact duplicates removed (answers of 50 to 1,500 characters), seed 42
- LoRA: r=16, alpha=32, dropout 0.05, all attention and MLP projections (18,464,768 trainable parameters)
- 1 epoch, effective batch 16, learning rate 2e-4, fp16, one Kaggle T4 (13.29 min)
Evaluation (200 held-out examples, greedy decoding, no repetition penalty)
Limitations
- Fine-tuning changed the answer style toward MedQuAD. This evaluation does not show added medical knowledge or better accuracy (accuracy was not measured).
- It produces repetition loops more often than the base model (25 vs 8 flagged answers by a rough heuristic).
- It starts 20% of held-out answers with the boilerplate "These resources address..." (base model: 0%).
- ROUGE-L can reward a wrong answer whose wording is close to the reference.
- It may state invented figures. One run, one seed, same-source held-out set.
Data: MedQuAD (Ben Abacha and Demner-Fushman, BMC Bioinformatics, 2019), CC BY 4.0, via a Hugging Face copy. Modified: deduplicated, cleaned, filtered and subsampled. Not endorsed by the authors or the NIH.
Base model: Qwen/Qwen2.5-1.5B-Instruct (Apache 2.0, Alibaba Cloud). This adapter is a modification of it and is not endorsed by Qwen or Alibaba Cloud.