Instructions to use Aignostics/RudolfV-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Aignostics/RudolfV-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-feature-extraction", model="Aignostics/RudolfV-2", trust_remote_code=True)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Aignostics/RudolfV-2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
You need to agree to share your contact information to access this model
This repository is publicly accessible, but you have to accept the conditions to access its files and content.
Please complete the fields below to request access to RudolfV 2.
Log in or Sign Up to review the conditions and access this model content.
RudolfV 2
RudolfV 2 is a vision transformer based Foundation Model developed by Aignostics for computational pathology. It uses a ViT-g/8 backbone and was pretrained on 300k whole slide images (WSIs). RudolfV 2 can serve as a general-purpose tile-level feature extractor for a broad range of downstream histopathology tasks, including tissue and tumor classification, grading, biomarker prediction, and slide-level modeling via multiple instance learning.
๐ Paper: RudolfV 2: A Family of Robust and Efficient Open-Weights Pathology Foundation Models (Milbich, Eulig, Carpen-Amarie, Dippel, Muttenthaler, Tietz et al.). Refer to the paper for training details, full benchmark tables, and evaluation protocols.
Model family โ this repo hosts the flagship model RudolfV 2. Two smaller models RudolfV 2-B and RudolfV 2-S are available as well.
| Model | Backbone | Params | Relative speed |
|---|---|---|---|
| RudolfV 2 (this repo) | ViT-g | 1.1 B | 1ร |
| RudolfV 2-B | ViT-B | 86 M | 2.5ร faster |
| RudolfV 2-S | ViT-S | 22 M | 6.5ร faster |
Usage
pip install torch transformers timm pillow
trust_remote_code=True is required (custom modeling code), and timm is a hard dependency.
import torch
from PIL import Image
from transformers import AutoImageProcessor, AutoModel
REPO = "Aignostics/RudolfV-2"
processor = AutoImageProcessor.from_pretrained(REPO)
model = AutoModel.from_pretrained(REPO, trust_remote_code=True).eval()
image = Image.effect_noise((224, 224), 64).convert("RGB") # replace with a real H&E tile
inputs = processor(images=image, return_tensors="pt")
with torch.inference_mode():
out = model(**inputs)
out.pooler_output # [1, 1536] CLS token
out.last_hidden_state # [1, 793, 1536] CLS + 8 register + 784 patch tokens
Always use .eval() for inference. Embeddings are deterministic โ repeated passes over the
same tile are bit-identical.
Access
This model is gated. To request access, you must be logged into a Hugging Face account. You will be asked to provide your name and must use an academic or non-profit email address (e.g., .edu, .org). All requests are reviewed and granted at Aignostics' discretion.
License Terms
License: CC BY-NC-ND 4.0, plus the following supplementary terms, which control in case of conflict:
Field of use. Academic research use only. No diagnostic, preventive, therapeutic, clinical, or commercial use.
AI/ML training restriction. RudolfV 2 may not be used to train models designed to replicate or approximate the capabilities of RudolfV 2 or to generate training labels, pseudo-labels, or any form of supervision signal for such models, direct or indirect. RudolfV 2 may not be used to provide training signals for any foundation model or general-purpose pathology model, direct or indirect.
No warranty. RudolfV 2 is provided as-is, without warranty of any kind. Aignostics accepts no liability for results obtained through its use.
Attribution requirement. Publications and presentations using RudolfV 2 are encouraged, but must follow the Attribution Requirement below.
Attribution Requirement
@misc{rudolfv2,
title = {RudolfV 2: A Family of Robust and Efficient Open-Weights
Pathology Foundation Models},
author = {Milbich, Timo and Eulig, Elias and Carpen-Amarie, Alexandra and
Dippel, Jonas and Muttenthaler, Lukas and Tietz, Stephan and
Perez Cancer, Beatriz and L{\"u}scher, J{\'e}r{\^o}me and
Benetti, Alessandro and Hashimi, Sayed Abid and Shah, Neelay and
Kr{\"u}gener, Moritz and Jurmeister, Philipp and Horst, David and
Norgan, Andrew and Schallenberg, Simon and Ruff, Lukas and
M{\"u}ller, Klaus-Robert and Klauschen, Frederick and Alber, Maximilian},
year = {2026},
}
- Downloads last month
- 46