Run this model with HF Jobs

Run Tenbatsu2424/Manekko_PanCancerCT on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/Tenbatsu2424/Manekko_PanCancerCT. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/Tenbatsu2424/Manekko_PanCancerCT on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

PC-Manekko

Paper · Training code · Model collection

PC-Manekko is a 3D encoder pretrained on 21,802 multi-anatomy CT volumes from PanCancerCT. It uses a Primus-S backbone with 68.4 million parameters, 12 transformer blocks, 6 attention heads, and 384-dimensional features. During pretraining, a frozen NeCo reference on DINOv2-R (ViT-S/14) processes axial, coronal, and sagittal slices. The student learns to match the fused patch features and global-to-local affinities.

Extract features

Install the dependencies from requirements.txt using the PyTorch build for your hardware. Load the encoder with Transformers and pass a preprocessed, intensity-normalized volume. For pretraining-style CT inputs, use the anatomy-specific clipping and standardization described in the paper supplement.

import numpy as np
import torch
from transformers import AutoModel

model = AutoModel.from_pretrained(
    "Tenbatsu2424/Manekko_PanCancerCT", trust_remote_code=True
).eval()

volume = np.load("preprocessed_volume.npy", allow_pickle=False)  # [D, H, W]
x = torch.from_numpy(volume).float()[None, None]  # [B, 1, D, H, W]

with torch.inference_mode():
    features = model.forward_features(x)

global_features = features["latent"]
spatial_features = features["patch_latent"]
patch_tokens = features["patch_tokens"]

Use a single input channel. Each spatial dimension must be divisible by 8, with at least two patches overall. Rectangular volumes are supported. The encoder preserves the input axis order and leaves resampling and intensity normalization to the caller.

Output Shape Description
latent [B, 384] Global volume embedding
patch_latent [B, 384, D/8, H/8, W/8] Spatial feature grid
patch_tokens [B, N, 384] Flattened grid with the last spatial axis varying fastest, where N = (D/8) × (H/8) × (W/8)

Evaluation

Regime Mean foreground DSC
Frozen encoder 66.3%
Full fine-tuning 71.9%

Scores average 15 brain MRI, body MRI, and CT segmentation datasets. The study used a UNETR decoder with nnU-Net preprocessing and trained for 150 epochs in both regimes. The released checkpoint contains the pretrained encoder. A segmentation task requires training a task-specific decoder. Paper, Table 2

Citation

@article{vaish2026manekko,
  title   = {Manekko: Training Small but Foundational 3D Medical Models by Mimicking Natural Vision Model Features},
  author  = {Vaish, Puru and Baumgartner, Michael and Heimann, Tobias and Wolterink, Jelmer M. and Brune, Christoph},
  journal = {arXiv preprint arXiv:2611.37538},
  year    = {2026},
  doi     = {10.48550/arXiv.2611.37538}
}
Downloads last month
112
Safetensors
Model size
0.1B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for Tenbatsu2424/Manekko_PanCancerCT

Finetuned
FunAILab/NeCo
Finetuned
(2)
this model

Dataset used to train Tenbatsu2424/Manekko_PanCancerCT

Collection including Tenbatsu2424/Manekko_PanCancerCT

Paper for Tenbatsu2424/Manekko_PanCancerCT