Literature · vmal
med-advisor-4b
A 4-billion-parameter chat model for general medical and scientific education across diverse audiences.
What med-advisor-4b is
med-advisor-4b is a 4-billion-parameter conversational language model developed by vmal for medical and scientific education.
med-advisor-4b addresses this issue by deliberately restricting its scope to general education, adjusting its explanations for laypersons, students, and clinicians, and refusing high-risk clinical requests.
How it works
The model was developed from Qwen/Qwen3-4B-Base through a three-stage training pipeline. Phase 1 applied medical instruction tuning using a curated medical dataset to establish domain-specific knowledge and baseline explanation skills. Phase 2 focused on persona refinement, enhancing explanatory depth, evidence framing, audience adaptation, and conversational tone.
In Phase 3, full-model Direct Preference Optimisation (DPO) was applied to the Phase 2 checkpoint. This alignment stage improved boundary enforcement, refusal sharpness for out-of-scope clinical prompts, emergency escalation, and redirect correctness, resulting in a 3.85% boundary violation rate compared to higher rates in earlier checkpoints and off-the-shelf base models.
Key facts
- Base model
- Qwen/Qwen3-4B-Base
- Parameter count
- 4 billion
- Training methodology
- Three-phase training: medical instruction tuning, persona refinement, and Direct Preference Optimisation (DPO)
- Primary language
- English
- Release date
- 16 April 2026
What you can use it for
- Medical Concept Explanation
- Explaining biological and health topics in plain English, such as evaluating study designs and evidence quality in nutritional research.
- Audience-Adapted Health Communication
- Adjusting the depth, vocabulary, and framing of clinical concepts for different target readers, ranging from worried relatives to medical students.
- Emergency Escalation
- Recognising urgent acute symptoms, such as severe chest pain and shortness of breath, and advising immediate contact with emergency medical services.
Run it here
We list this model but cannot run it yet: it was saved with a newer transformers release than our general image runs, so it needs an image of its own.
Everything on this page still applies. Running it needs a loader for this repository, not a bigger machine.
Strengths and limits
Good at
- Adapts explanations effectively across varied audiences, including patients, students, carers, and healthcare professionals.
- Delivers sharper refusals and redirects on high-risk medical requests following Direct Preference Optimisation.
- Frames scientific evidence and uncertainty clearly, emphasizing study design quality and confounding factors.
Watch out for
- For research use only: it is not a medical device and must not be used for diagnosis, treatment or any clinical decision.
- It can generate inaccurate, incomplete, or misleading statements that sound plausible and confident.
- It must not be used for diagnosis, treatment planning, medication dosing, or clinical interpretation of diagnostic tests.
- Emergency escalation remains a known area of relative weakness despite alignment improvements.
- Refusal responses can occasionally leak guideline-like dosing details.
- Repetitive text can occur on long refusal sequences if decoding parameters are left unconstrained.
Inputs and outputs
You provide
Prompt
The model continues from here.
You get back
The model's completion.
Licence
Check the licence before commercial use · apache-2.0
The apache-2.0 licence carries terms worth reading before you depend on it.
Questions
Can I use med-advisor-4b commercially?
Check the licence before commercial use. The apache-2.0 licence carries terms worth reading before you depend on it.
Can med-advisor-4b be used to interpret patient laboratory or imaging results?
No. Interpreting individual laboratory tests, imaging, pathology, or personal symptoms as clinical conclusions is explicitly out of scope.
What decoding configuration is recommended for running this model?
Greedy decoding (do_sample=False) combined with a repetition penalty between 1.10 and 1.15, a no_repeat_ngram_size of 6, and a system prompt defining the role as general education is recommended to maintain stability.
How does the Phase 3 model compare to the earlier Phase 2 release?
Phase 3 reduces boundary violations from 5.77% to 3.85% and incorrect operational modes from 6.84% to 4.91%, while offering better depth, audience adaptation, and evidence framing.
Can the model calculate drug dosages or titration schedules?
No. Medication dosing, prescribing, and titration are strictly outside the model's scope, and it is trained to refuse these requests.
Written from med-advisor-4b's own documentation (model card). Statements citing a figure that does not appear there are removed before publication. Licence and running details come from our registry.
