fp32-halves-v1-r2-chexpert-expert2
a research MoE model for X-ray analysis
2 min readupdated
This model is the second round of experiments in creating a Mixture of Experts architecture (MoE, an approach that divides tasks among several submodels) based on Qwen2.5-VL-3B-Instruct. This version fine-tunes an expert for working with medical images and generating chest X-ray reports on the CheXpert dataset. The architecture combines several specialized FFN weights (feed-forward network, fully connected layers) and a hidden state router. The project is exploratory in nature and intended for scientific experiments, not for actual clinical diagnostics.
Key features
- Built on the
Flex_Qwen2_5_VLMoeForConditionalGenerationarchitecture using three active experts per token. - Fine-tuned on the second half of the CheXpert dataset containing 90,829 rows of data.
- Uses custom loading code
modeling/flex_qwen2_5_vl_moesince the architecture is not part of the standard transformers package. - Represents the second round of experiments in merging expert weights from different datasets.
What you can do
- Integrate the model into research pipelines for analyzing medical images and generating text reports.
- Combine the current weights with other models in the r2 series to create a complete multi-expert system.
Example
The model requires a specialized loading script from the FlexBagel repository to work with the custom flex_qwen2_5_vl_moe model type through the transformers library.
Read more
DetailsBenchmarks: the average training loss was 1.219 over 474 optimizer steps.
Training parameters: 1 epoch, AdamW optimizer, learning rate 2e-5, warmup 10%, effective batch size 192.
Limitations: a research model for generating chest X-ray reports, not intended for clinical use.










Comments