Cancer3.AIAI in OncologyAI Models › Prov-GigaPath
Foundation model Gated weights (licence click-through) Research use only pathology

Prov-GigaPath

Whole-slide foundation model with 1.3 billion parameters, pretrained on 1.3 billion tiles from 171,189 slides of real-world clinical data; pairs a DINOv2 tile encoder with a LongNet slide encoder that reasons over an entire slide.

45 031 downloads / month ♥ 189 updated 2026-08-07 gated

At a glance

DeveloperMicrosoft Research / Providence Health / University of Washington
Released2024-05-22
Licenceapache-2.0
AvailabilityGated weights (licence click-through)
KindFoundation model
Regulatory statusResearch use only
Parameters1.3B

What it does

Two stages: a tile encoder produces embeddings, then a slide encoder built on LongNet (dilated attention) aggregates tens of thousands of tile embeddings into a slide representation. That slide vector feeds cancer subtyping, mutation prediction and vision-language tasks.

Notable uses in oncology

State of the art on 25 of 26 tasks at publication, including pan-cancer subtyping and prediction of common driver mutations from H&E; the first pathology model to be trained end-to-end at slide scale on a health-system archive.

Tasks, data types and cancers

CancerPan-cancer
Input256×256 tiles at 20×; slide-level sequence of all tile embeddings with coordinates
Output1,536-dimensional tile embeddings; slide-level embedding

Architecture

FamilyViT tile encoder + LongNet slide encoder
BackboneViT-g/14 (tile) + LongNet (slide)
Parameters1.3B
Pre-trainingDINOv2 (tile) + masked autoencoder objective over tile embeddings (slide)

The slide encoder is the distinctive part: dilated attention keeps memory manageable for sequences of 10,000+ tiles, so context from across the slide informs each token.

Training data

Providence health system archive: 171,189 H&E and IHC whole-slide images from more than 30,000 patients across 31 tissue types, covering 28 cancer centres in the US; 1.3 billion tiles at 256×256.

Training set size171,189 WSIs / 1.3B tiles
InstitutionsProvidence Health & Services (28 cancer centres, USA)
Populations / geographyUS community and academic oncology population; real-world case mix
Consent / provenance notesDe-identified institutional data; the archive is not released — only the weights.

Linked datasets

Evaluation

Benchmark / datasetMetricValueExternal validationSource
pan-cancer subtyping (9 cancer types, Providence + TCGA) AUROC / balanced accuracy best in 25/26 tasks vs. HIPT, CtransPath, REMEDIS yes Source
driver-mutation prediction from H&E (18 genes, pan-cancer) AUROC reported per gene in paper yes 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:prov-gigapath/prov-gigapath', 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
Librarytimm + repo code (slide encoder)
Hardwaretile encoder: 1 GPU; slide encoder over a full slide: ≥24 GB GPU memory recommended

Weights are Apache-2.0 but gated (accept terms on Hugging Face). The repo ships the tile→slide pipeline; keep tile coordinates, the slide encoder needs them.

Regulatory status and intended use

Regulatory statusResearch use only
Intended useResearch; explicitly not for clinical use per the repository.

Source →

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 health system: scanner and staining conventions of Providence dominate the pretraining distribution.
  • Slide-level encoder is memory-hungry; small labs may only use the tile encoder.
  • Mutation predictions from H&E are associative, not a substitute for sequencing.

Sources

  1. Xu H et al. A whole-slide foundation model for digital pathology from real-world data. Nature 2024
  2. Hugging Face — prov-gigapath/prov-gigapath

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.