Joint chest X-ray Qwen2.5-VL
chest X-ray analysis
2 min read
This multimodal model answers text queries based on chest X-ray images. It was created by author alrope based on the compact VLM (multimodal vision-language model) Qwen2.5-VL-3B-Instruct with 3.75B parameters. The model underwent fine-tuning on a combined medical instruction dataset from three large datasets: PadChest, ReXGradient, and CheXpert. It is suitable for researchers and prototype developers in the field of medical image analysis.
Key features
- Trained on 419,176 records: 101,301 from PadChest, 136,217 from ReXGradient, and 181,658 from CheXpert.
- Full fine-tuning (dense fine-tune) based on Qwen2.5-VL-3B-Instruct for one epoch (2,184 optimizer steps).
- Final weights exported in BF16 format, despite the fp32 tag in the repository name (which refers only to optimizer parameters during training).
- Compatible with the standard Transformers library interface (AutoProcessor and Qwen2_5_VLForConditionalGeneration classes).
What you can do
- Use in research pipelines to generate text descriptions and answers to questions on chest radiographs.
- Integrate via the Transformers library into local prototype assistants for preliminary analysis of medical images in English.
Example
from transformers import AutoProcessor, Qwen2_5_VLForConditionalGeneration
model_id = "alrope/chest_xray_joint_qwen2_5-3b-vl-fp32"
processor = AutoProcessor.from_pretrained(model_id)
model = Qwen2_5_VLForConditionalGeneration.from_pretrained(model_id, torch_dtype="bfloat16")
Read more
DetailsTraining: 1 epoch, global batch size 192, learning rate 2e-5 (warmup + linear decay), DeepSpeed ZeRO-1.
Final training loss: 0.9508 (training metric, not a quality evaluation).
Limitations: the repository lacks benchmark results and clinical validation.
License: Qwen Research License (from the base model).










Comments