An Indian clinical assistant SLM: full SFT of Qwen/Qwen3-1.7B on two skills — (a) summarising real Indian lab reports (flag abnormal values vs reference ranges, plain-language summary, referral line) and (b) answering medical MCQA in the Indian exam/pharmacology idiom.
This is a research artifact, not a medical device. Its lab summaries are template-generated, not clinician-written. Its outputs are not medical advice.
saurabhb2412/eka-clinical-sft-train — 219,662 train / 1,103 val conversations (~259M packed tokens, 4096-token BFD packing):
(letter) + source explanation.TRL 1.18 SFTTrainer, 1 epoch, packed 4096, effective batch 16 (8×2), lr 2e-5 cosine, 50 warmup steps, bf16, kernels-community/flash-attn2. Run on 1× H200: 4,341 steps at 2.45 s/step, 25.9k tokens/s. Final train loss 0.3297, eval loss 0.3162, eval token accuracy 0.914. Live curves: Trackio dashboard.
| Set | n | accuracy |
|---|---|---|
| ekacare/indian_drug_mcqa | 1,512 | 0.397 |
| ekacare/Eka_NFI_MCQA | 921 | 0.455 |
| ekacare/MedMCQA-Indic en | 4,183 | 0.438 |
| ekacare/MedMCQA-Indic hi | 4,183 | 0.348 |
| mmlu-medical (8 configs: anatomy, clinical-knowledge, college-biology/medicine, medical-genetics, nutrition, professional-medicine, virology) | 1,553 | 0.466–0.671 |
Parse rate ≥ 0.98 on every set. eval_results.json is in this repo. Honest read: the base Qwen3-1.7B already scores mid-50s on MedMCQA-style MCQA, so SFT on this mix traded general MCQA accuracy for lab-report skill — the drug-MCQA drop below the base model is expected and noted, not hidden. Hindi MCQA degrades most (0.348).
from transformers import pipeline
report = """Patient: 45-year-old male
Lab report:
- Hemoglobin: 9.8 g/dL (reference: 13.0 - 17.0) - LOW
- Total Leucocyte Count: 7.8 10^3/uL (reference: 4.0 - 10.0) - NORMAL
Summarise this lab report: list any abnormal values with their reference ranges, note the normal results in one line, and state what the patient should do next."""
generator = pipeline("text-generation", model="saurabhb2412/qwen3-1.7b-eka-clinical-sft", device_map="auto")
out = generator([{"role": "user", "content": report}], max_new_tokens=256, return_full_text=False)[0]
print(out["generated_text"])
model.safetensors 3.4 GBtraining_args.bin 6 kBQwen/Qwen3-1.7B