Virchow Virchow (v1)
632-million-parameter vision transformer pretrained on 1.5 million whole-slide images from about 100,000 patients — the largest pathology pretraining set at its release — and used to build a pan-cancer detection model covering 17 cancer types, including rare ones.
🤗 7 616 downloads / month ♥ 76 updated 2024-09-03 gatedAt a glance
What it does
Tile-level embeddings (class token plus mean of patch tokens) for slide-level aggregation; Paige used them for a clinical-grade pan-cancer detector and for biomarker prediction.
Notable uses in oncology
Pan-cancer detection AUC 0.95 overall in the paper, with strong performance on rare cancers where task-specific models lack data.
Tasks, data types and cancers
Architecture
Training data
1.5 million H&E whole-slide images from about 100,000 patients at Memorial Sloan Kettering Cancer Center, spanning 17 tissue types.
Evaluation
| Benchmark / dataset | Metric | Value | External validation | Source |
|---|---|---|---|---|
| Pan-cancer detection — 17 cancer types (9 common, 8 rare), specimen level, trained on Virchow tile embeddings | AUROC | 0.95 (Vorontsov E et al., Nat Med 2024; PMID 39039250) | no | Source |
How to run
# generic timm loader — check the model card for the exact init args and image normalisation
import timm, torch
from huggingface_hub import login
login() # gated repos: accept the licence on huggingface.co first
model = timm.create_model('hf-hub:paige-ai/Virchow', pretrained=True)
model.eval()
cfg = timm.data.resolve_data_config({}, model=model)
transform = timm.data.create_transform(**cfg)
# emb = model(transform(tile).unsqueeze(0)) # 1 x D tile embedding
Gated on Hugging Face under a non-commercial licence; Virchow2 (mixed magnification, 3.1M slides) is the successor and usually the better default.
Regulatory status and intended use
Regulatory status is quoted from the source linked above and can change. Research-use-only models must not be used for clinical decisions.
Limitations and bias
- Single-institution pretraining; scanner (Leica Aperio) dominance.
- Non-commercial licence.
- Superseded by Virchow2 for most uses.
Sources
This page is educational — it is not medical advice and does not replace consultation with an oncologist. Diagnostic and treatment decisions are made solely by specialist physicians.