Model reference · open weights
rad-dino-maira-2 is an open-weight embedding model from microsoft. rad-dino-maira-2 (FP32) weighs 173 MB; the smallest configuration that runs it is RTX 3060 12 GB.
For self-hosting, compare this build's requirements below with the GPU you plan to rent.
Summary of the microsoft/rad-dino-maira-2 model card, 2026-10-01
What it is
| Released by | microsoft |
|---|---|
| Released | 2024-07-26 |
| Parameters | 87M |
| VRAM | 173 MB for the weights |
What it runs on
| Card | Runs | Memory |
|---|---|---|
| RTX 3060 12 GB | fits | 11.6 GB |
| RTX 4060 Ti 16 GB | fits | 15.4 GB |
| RTX 3090 24 GB | fits | 23.4 GB |
| RTX 4090 24 GB | fits | 23.4 GB |
| RTX 5090 32 GB | fits | 31.0 GB |
| L40S 48 GB | fits | 44.0 GB |
| A100 80 GB | fits | 78.2 GB |
| H100 80 GB | fits | 78.1 GB |
| RTX PRO 6000 Blackwell 96 GB | fits | 93.8 GB |
| DGX Spark (GB10) 128 GB unified | fits | 107 GB |
| H200 141 GB | fits | 138 GB |
| B200 180 GB | fits | 176 GB |
From the model card
RAD-DINO-MAIRA-2 is a vision transformer model trained to encode chest X-rays using the self-supervised learning method DINOv2. RAD-DINO-MAIRA-2 is a variant of RAD-DINO, which is described in detail in RAD-DINO: Exploring Scalable Medical Image Encoders Beyond Text Supervision (F. Pérez-García, H. Sharma, S. Bond-Taylor, et al., 2024).
RAD-DINO-MAIRA-2 is the version of RAD-DINO used in MAIRA-2: Grounded Radiology Report Generation (S. Bannur, K. Bouzid, et al., 2024). Relative to RAD-DINO, it was trained on more data.
dinov2-baseRAD-DINO-MAIRA-2 is shared for research purposes only. It is not meant to be used for clinical practice.
The model is a vision backbone that can be plugged to other models for downstream tasks. Some potential uses are:
CLS tokenFine-tuning RAD-DINO-MAIRA-2 is typically not necessary to obtain good performance in downstream tasks.
RAD-DINO-MAIRA-2 was trained with data from three countries, therefore it might be biased towards population in the training data. Underlying biases of the training datasets may not be well characterized.
from transformers import pipeline
pipe = pipeline(task="image-feature-extraction", model="microsoft/rad-dino-maira-2", pool=False)
patch_features = pipe("https://www.bhf.org.uk/-/media/images/information-support/tests/chest-x-ray/normal-chest-x-ray-620x400.jpg")
Refer to RAD-DINO for a more detailed example.
We used images from five public and one private deidentified chest X-ray datasets to train RAD-DINO-MAIRA-2.
| Dataset | Num. images |
|---|---|
| MIMIC-CXR | 368 960 |
| CheXpert | 223 648 |
| NIH-CXR | 112 120 |
| PadChest | 136 787 |
| BRAX | 41 260 |
| USMix (Private) | 521 608 |
| TOTAL | 1 404 383 |
Images in the validation and test sets used to train MAIRA-2 were excluded from the training set of RAD-DINO-MAIRA-2.
We used 8 nodes with 4 A100 GPUs each, and a batch size of 40 images per GPU. We share the last checkpoint, trained for 105 000 steps.
We refer to the manuscript for a detailed description of the training procedure.
All DICOM files were resized using B-spline interpolation so that their shorter size was 518, min-max scaled to [0, 255], and stored as PNG files.
Our evaluation is best described in the manuscript.
RAD-DINO-MAIRA-2 was trained on Azure Machine Learning.
We used 8 Standard_NC96ads_A100_v4 nodes with four NVIDIA A100 (80 GB) GPUs each.
We leveraged the code in DINOv2 for training. We used SimpleITK and Pydicom for processing of DICOM files.
BibTeX:
@misc{perezgarcia2024raddino,
title={{RAD-DINO}: Exploring Scalable Medical Image Encoders Beyond Text Supervision},
author={Fernando Pérez-García and Harshita Sharma and Sam Bond-Taylor and Kenza Bouzid and Valentina Salvatelli and Maximilian Ilse and Shruthi Bannur and Daniel C. Castro and Anton Schwaighofer and Matthew P. Lungren and Maria Wetscherek and Noel Codella and Stephanie L. Hyland and Javier Alvarez-Valle and Ozan Oktay},
year={2024},
eprint={2401.10815},
archivePrefix={arXiv},
primaryClass={cs.CV}
}
APA:
Pérez-García, F., Sharma, H., Bond-Taylor, S., Bouzid, K., Salvatelli, V., Ilse, M., Bannur, S., Castro, D.C., Schwaighofer, A., Lungren, M.P., Wetscherek, M.T., Codella, N., Hyland, S.L., Alvarez-Valle, J., & Oktay, O. (2024). RAD-DINO: Exploring Scalable Medical Image Encoders Beyond Text Supervision. ArXiv, abs/2401.10815.
Fernando Pérez-García (fperezgarcia@microsoft.com).
Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.