/ Модель

Характеристики

Лицензия
Своя лицензия
Библиотека
timm
Опубликована
14 авг 2026

DistillPath-KS16-Virchow2

Эмбеддинги изображенийИзображение → embedding3 профессии

Компактный энкодер гистологических изображений извлекает признаки из тайлов тканей для задач вычислительной патологии.

197скачиваний за 30 дней0лайковвеса обновлены23 авг 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

DistillPath-KS16-Virchow2 — компактный энкодер изображений гистологических препаратов, разработанный Рамоном Каспаром, Андреем Игнатовым и Валентиной Боевой из ETH Zurich. Модель ViT-S/16 содержит 21,7 млн параметров и выдаёт признаки размерности 384. Её обучили методом дистилляции на основе токенов из Virchow2 (632 млн параметров), используя 6 000 открытых слайдов TCGA; веса доступны в формате safetensors, модель работает через timm.

Энкодер предназначен для извлечения признаков из изображений патологических тканевых тайлов и последующего использования в задачах вычислительной патологии. В README приведены результаты на бенчмарках EVA, HEST и PLISM, где модель приближается к показателям крупной модели-учителя. Лицензия указана как other, поэтому перед использованием следует проверить её условия в репозитории. Конкретные ограничения применения в карточке не описаны.

Сценарии применения

  • извлечение признаков из тайлов гистологических слайдов
  • построение эмбеддингов изображений тканей для последующей классификации
  • подготовка признаков для бенчмарков вычислительной патологии
  • сравнение тканевых изображений по визуальным представлениям

Ограничения

Модель извлекает признаки и сама по себе не является готовым классификатором или диагностической системой. Условия лицензии типа other требуют проверки в репозитории перед использованием.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

DistillPath-KS16-Virchow2

A 22M ViT-S/16 pathology tile encoder distilled from Virchow2 (632M ViT-H/14) into the kaiko ViT-S/16 student using backbone-token distillation on 6,000 public TCGA slides.

For the ImageNet-initialized variant, see DistillPath-IS16-Virchow2.

Paper: DistillPath: An Efficient 22M Distilled Pathology Encoder Approaching Large Foundation Model Performance Ramon Kaspar, Andrey Ignatov, Valentina Boeva. ETH Zurich. Published at the ECCV 2026 Workshop on Medical Foundation Models and Benchmarks (MedFM-Bench).

Model details

PropertyValue
ArchitectureViT-S/16 (vit_small_patch16_224 in timm)
Parameters21.7M
Feature dimension384
Input size224 x 224
Normalizationmean=(0.5, 0.5, 0.5), std=(0.5, 0.5, 0.5)
Student initializationkaiko ViT-S/16 (pathology-pretrained)
TeacherVirchow2 (632M, ViT-H/14, CC BY-NC-ND 4.0)
Training data6,000 TCGA H&E whole-slide images, 32 cohorts
Training steps50,000 (batch size 256, approx. 24-29 GPU-hours on 1x RTX 4090)

Benchmark results

BenchmarkDistillPath-KS16-Virchow2kaiko baselineVirchow2 teacher
EVA mean (7 tasks)0.7950.7640.810
HEST mean (9 tasks)0.3710.3490.398
PLISM score0.4470.3070.447

See the paper for per-task results and comparisons with all four DistillPath variants.

Usage

Load directly from the Hub with timm:

import timm

model = timm.create_model(
    "hf_hub:RamonK/DistillPath-KS16-Virchow2",
    pretrained=True,
    num_classes=0,
)
model.eval()

Or load manually:

import timm
from huggingface_hub import hf_hub_download
from safetensors.torch import load_file

model = timm.create_model("vit_small_patch16_224", pretrained=False, num_classes=0)
path = hf_hub_download("RamonK/DistillPath-KS16-Virchow2", "model.safetensors")
state_dict = load_file(path)
model.load_state_dict(state_dict, strict=True)
model.eval()

This model uses normalization mean=(0.5, 0.5, 0.5) and std=(0.5, 0.5, 0.5), inherited from the kaiko student. Apply this normalization to input tiles before inference:

from torchvision import transforms

transform = transforms.Compose([
    transforms.Resize(224),
    transforms.CenterCrop(224),
    transforms.ToTensor(),
    transforms.Normalize(mean=[0.5, 0.5, 0.5], std=[0.5, 0.5, 0.5]),
])

Distillation recipe

The recipe reads only the teacher's final class and patch tokens (no teacher pretraining heads required):

  • Class-token loss: cosine distance + RKD (relational knowledge distillation)
  • Patch-token loss: cosine distance after bicubic grid resizing (teacher 16x16 to student 14x14)
  • Optimizer: AdamW, lr=1e-4, weight decay 0.05, cosine decay, 500 warmup steps
  • Projector: DINO-style MLP (384 to 2048 to 2048 to 256 to d_t), discarded after training

Full details in the paper and the DistillPath repository.

License

This model is released under the Kaiko Non-Commercial Public License, inherited from the kaiko ViT-S/16 student weights. The Virchow2 teacher is released under CC BY-NC-ND 4.0. The distillation process used Virchow2 only to generate supervisory outputs; the released student contains no Virchow2 weights. This model is intended solely for non-commercial academic research.

Citation

@inproceedings{kaspar2026distillpath,
  title     = {DistillPath: An Efficient 22M Distilled Pathology Encoder Approaching Large Foundation Model Performance},
  author    = {Kaspar, Ramon and Ignatov, Andrey and Boeva, Valentina},
  booktitle = {Medical Foundation Models and Benchmarks (MedFM-Bench), ECCV 2026},
  year      = {2026}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · timm · image-feature-extraction

Можно запустить

Подбираем GPU…

Ревизия весов
c4b319f

0 моделей