Model reference · open weights

vit_base_patch16_224.owkin_pancancer

Available as managed deployment Licence fee Embeddings 1aurent · community Embeddings 1 variants 851 dl/mo

vit_base_patch16_224.owkin_pancancer is an open-weight embedding model from 1aurent. AxForge deploys and operates it for you on dedicated EU-owned hardware — with the licence handled where one is required.

Available as managed deployment — configured and operated for you on dedicated EU hardware, quoted per deployment.

What it is

Released by1aurent
TypeEmbedding models
TaskEmbeddings
Parameters (lead)86M
Runs withtimm
Released2023-10-22
Popularity851 downloads / month
LicenceCommercial licence needed

About

What vit_base_patch16_224.owkin_pancancer is

A Vision Transformer (ViT) image classification model.
Trained by Owkin on 40 million pan-cancer histology tiles from TCGA-COAD.

A version using the transformers library is also available here: https://huggingface.co/owkin/phikon

Read the full model card

Model Details

Model Usage

Image Embeddings

from urllib.request import urlopen
from PIL import Image
import timm

# get example histology image
img = Image.open(
  urlopen(
    "https://github.com/owkin/HistoSSLscaling/raw/main/assets/example.tif"
  )
)

# load model from the hub
model = timm.create_model(
  model_name="hf-hub:1aurent/vit_base_patch16_224.owkin_pancancer",
  pretrained=True,
).eval()

# get model specific transforms (normalization, resize)
data_config = timm.data.resolve_model_data_config(model)
transforms = timm.data.create_transform(**data_config, is_training=False)

data = transforms(img).unsqueeze(0) # input is a (batch_size, num_channels, img_size, img_size) shaped tensor
output = model(data)  # output is a (batch_size, num_features) shaped tensor

Citation

@article{Filiot2023.07.21.23292757,
  author       = {Alexandre Filiot and Ridouane Ghermi and Antoine Olivier and Paul Jacob and Lucas Fidon and Alice Mac Kain and Charlie Saillard and Jean-Baptiste Schiratti},
  title        = {Scaling Self-Supervised Learning for Histopathology with Masked Image Modeling},
  elocation-id = {2023.07.21.23292757},
  year         = {2023},
  doi          = {10.1101/2023.07.21.23292757},
  publisher    = {Cold Spring Harbor Laboratory Press},
  url          = {https://www.medrxiv.org/content/early/2023/09/14/2023.07.21.23292757},
  eprint       = {https://www.medrxiv.org/content/early/2023/09/14/2023.07.21.23292757.full.pdf},
  journal      = {medRxiv}
}

From the published model card. Full card on the HuggingFace links in the sidebar.

How it works

How embedding models work

Your textsentence / documentEncodermaps meaningVectorlist of numbersAn embedding model turns text into a vector, so similar meanings sit close together — the basis of search and RAG.

Benchmarks

Reported results

As published on the model card — the maker's own numbers, not measured by AxForge.

TaskDatasetMetricScore
Image ClassificationCamelyon16[Meta]ROC AUC
Image ClassificationTCGA-BRCA[Hist]ROC AUC
Image ClassificationTCGA-BRCA[HRD]ROC AUC
Image ClassificationTCGA-BRCA[Mol]ROC AUC
Image ClassificationTCGA-BRCA[OS]ROC AUC
Image ClassificationTCGA-CRC[MSI]ROC AUC
Image ClassificationTCGA-COAD[OS]ROC AUC
Image ClassificationTCGA-NSCLC[CType]ROC AUC
Image ClassificationTCGA-LUAD[OS]ROC AUC
Image ClassificationTCGA-LUSC[OS]ROC AUC
Image ClassificationTCGA-OV[HRD]ROC AUC
Image ClassificationTCGA-RCC[CType]ROC AUC
Image ClassificationTCGA-STAD[MSI]ROC AUC
Image ClassificationTCGA-PAAD[OS]ROC AUC

Using it via the API

Call it like any OpenAI endpoint

Once AxForge deploys vit-base-patch16-224-owkin-pancancer for you, it answers on the OpenAI-compatible API — the same base URL and keys as every other model. (vit-base-patch16-224-owkin-pancancer below is illustrative; you get the exact model name on deployment.)

$ curl -sS https://api.axforge.ai/v1/embeddings \
  -H "Authorization: Bearer $AXFORGE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"vit-base-patch16-224-owkin-pancancer","input":"text to embed"}'

Create an account — your API key is available in the console. 3M free tokens every 30 days with every new account.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms