Downloads · 30 days
3
10% of all-time downloads
coffeine/qwen3-4b-medquad-qlora-v2
qwen3-4b-medquad-qlora-v2 is a question answering model from coffeine. Use it when the input is a question plus a passage. It is set up for peft.
This repository contains the v2 QLoRA adapter fine-tuned from Qwen/Qwen3-4B for medical question answering using the MedQuAD dataset.
Downloads · 30 days
3
10% of all-time downloads
All-time downloads
31
Public
Repo size
77.5 MB
Likes
0
Public
Click a slice to open those files.
.safetensors66.1 MB · 85%
From the Hugging Face model README
This repository contains the v2 QLoRA adapter fine-tuned from Qwen/Qwen3-4B for medical question answering using the MedQuAD dataset.
This version expands the training set from 96 examples in v1 to 2,000 examples and evaluates the resulting model on 98 held-out examples.
Research/educational model only. This model is not intended for clinical use, diagnosis, or treatment decisions.
Qwen/Qwen3-4BHmehdi515/MedQuadThis repository contains a LoRA adapter, not a fully merged copy of Qwen3-4B.
The first experiment used only 96 training examples.
v2 increases the training data while keeping the core QLoRA configuration largely unchanged.
| Version | Training Examples | Evaluation Examples | Training Loss | Token-F1 |
|---|---|---|---|---|
| v1 | 96 | 8 | ~1.72 | 28.20 |
| v2 | 2,000 | 98 | 0.8522 | 41.93 |
Important: The v1 and v2 Token-F1 scores were calculated on evaluation sets of different sizes, so they should not be interpreted as a strict head-to-head benchmark.
A future evaluation should compare the base model, v1, and v2 on the exact same held-out examples.
The experiment uses:
Hmehdi515/MedQuad
The original dataset contains medical questions and reference answers.
For v2, the training split was shuffled with a fixed seed before selecting examples.
Examples were retained when:
After filtering and sampling:
Training examples were converted to the Qwen3 chat format:
SYSTEM:
Answer the medical question accurately and directly.
Focus specifically on what the question asks.
Do not invent facts, statistics, symptoms, treatments,
or inheritance patterns.
If you are uncertain, say that you are uncertain rather
than guessing.
USER:
<medical question>
ASSISTANT:
<reference answer>