MDA2-V23: Vietnamese Medical History-Taking Model

Fine-tuned Qwen3-4B-Instruct for Vietnamese medical history-taking (khai thac benh su).

Architecture

Python Orchestrator (Master) + LLM (Executor) - The model handles 6 NLP tasks while Python controls clinical logic.

Training

Parameter Value
Base model Qwen/Qwen3-4B-Instruct-2507
Method QLoRA (r=64, alpha=128, NF4)
Training data 52,000 examples (6 tasks)
Epochs 3
Batch size 8 (grad_accum=12, effective=96)
Learning rate 2e-4
Seq length 1536
Hardware H100 80GB MIG (4g.40gb)
Duration 7h
Final avg loss 0.187

6 Tasks

Task Count Description
T1 NLG 12,000 Generate natural Vietnamese doctor questions
T2 Diagnosis 4,000 Clinical reasoning + differential diagnosis
T3 Extraction 8,000 Extract symptoms from patient speech
T4 Characterization 10,000 Extract OPQRST field values
T5 Summary 10,000 Medical history summarization
T6 Safety 8,000 Red flag detection + urgency assessment

Key Features (V23 improvements)

  • Think blocks: All tasks output for chain-of-thought
  • KB-driven data: Real OPQRST from 1,227 edges, 870 red flags from 357 symptoms
  • 8 clinical frameworks: OLDCARTS, DYSPNEA, GI, EDEMA, CONSTITUTIONAL, URINARY, SKIN, SIMPLE
  • Claude API generation: T2 diagnosis uses Haiku for realistic clinical reasoning

Usage

Downloads last month
5
Safetensors
Model size
4B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for nghiaump/mda2-v23

Finetuned
(1842)
this model