Med-Qwen-3.5-4B-Instruct
Med-Qwen-3.5-4B-Instruct is a specialized 4.2B parameter clinical reasoning foundation model developed via a two-stage alignment pipeline:
- Domain-Adaptive Pre-Training (DAPT): Multi-stream biomedical continual pretraining over
Qwen/Qwen3.5-4B-Base. - Calibrated Supervised Fine-Tuning (SFT-v2): 2,700-step DoRA ($r=64, \alpha=128$) optimization on an 11-stream interleaved clinical reasoning mixture (~276M tokens) balancing long-CoT medical deduction, board vignettes, evidence grounding, and STEM replay.
Benchmark Evaluation Matrix (4B Class)
All models evaluated strictly under zero-shot / few-shot standard greedy inference and normalized choice log-probabilities:
| Benchmark / Task | Qwen-3.5-4B-Base | MedGemma-1.5-4B-it | Gemma-4-E4B-it | Med-Qwen-3.5-4B-Instruct (Ours) |
|---|---|---|---|---|
| PubMedQA | 45.60% | 52.80% | 54.40% | 66.20% |
| MedQA (USMLE 4-Option) | 68.34% | 32.60% | 40.14% | 67.95% |
| GPQA Diamond | 36.87% | 36.36% | 57.58% | 50.51% |
| MedMCQA | 26.50% | 30.60% | 33.00% | 33.20% |
| MMLU Med Aggregate | 82.88% | 50.59% | 31.65% | 80.72% |
| • MMLU Clinical Knowledge | 83.40% | 58.87% | 24.91% | 80.38% |
| • MMLU College Medicine | 78.03% | 46.24% | 30.64% | 76.88% |
| • MMLU Medical Genetics | 87.00% | 59.00% | 31.00% | 84.00% |
| • MMLU Professional Medicine | 83.09% | 38.24% | 40.07% | 81.62% |
| AfriMed-QA | 67.00% | 38.20% | 27.00% | 64.80% |
Inference Example
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "adi274903/Med-Qwen-3.5-4B-Instruct"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
torch_dtype=torch.bfloat16,
device_map="auto"
)
prompt = [
{"role": "user", "content": "A 52-year-old male presents with worsening dyspnea on exertion, bilateral lower extremity pitting edema, and an S3 gallop. What is the most appropriate initial diagnostic investigation, and why?"}
]
inputs = tokenizer.apply_chat_template(prompt, tokenize=True, add_generation_prompt=True, return_tensors="pt").to(model.device)
outputs = model.generate(inputs, max_new_tokens=512, do_sample=False)
print(tokenizer.decode(outputs[0][inputs.shape[1]:], skip_special_tokens=True))