Practical overview
When it fits
Use HIPT when a research workflow needs a hierarchical vision-transformer approach to gigapixel whole-slide images, or when examining pretrained representations and slide-level evaluation in computational pathology.
Who it is for
- Computational pathology researchers working with gigapixel whole-slide images.
- Researchers evaluating hierarchical attention or self-supervised vision-transformer representations.
- Teams studying slide-level cancer subtyping or survival prediction tasks.
Documented uses
- Represent gigapixel whole-slide images through bottom-up aggregation of visual tokens.
- Explore or adapt hierarchical self-supervised vision-transformer methods for high-resolution histopathology imagery.
- Evaluate pretrained slide embeddings with the repository's documented k-nearest-neighbor evaluation code.
- Fine-tune the 4K stage with slide-level labels for research tasks such as cancer subtyping or survival prediction.
Requirements & limits
The repository is public on GitHub. Its README states that the code is available under the Commons Clause for non-commercial academic purposes.
- HIPT uses nested 4,096 × 4,096 regions, 256 × 256 patches and 16 × 16 tokens, with bottom-up aggregation and local-window attention.
- The README describes freezing pretrained ViT-16 and ViT-256 stages while fine-tuning the ViT-4K stage with slide-level labels.
- Git LFS is used for checkpoints, extracted embeddings and demo images; the README reports about 4.08 GiB for saved checkpoints and pre-extracted embeddings.
- Python dependencies are installed from requirements.txt; the example model code uses PyTorch.
- The stated license terms restrict the code to non-commercial academic purposes.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Install HIPT dependencies and retrieve pretrained assets
Set up the repository dependencies and selectively download the model or data assets needed for exploration.
Before you start
- Git
- Git LFS
- Python and pip, as required by the repository's requirements.txt
Steps
Clone the repository without initially downloading large files using the documented Git LFS skip-smudge option.
Use Git LFS to pull the .pth pretrained checkpoints; pull .pt slide embeddings, .pkl patch embeddings or .png demo images only if those assets are needed.
Install Python dependencies with pip using the repository's requirements.txt.
Expected outcome
The codebase and selected assets are available locally, with Python dependencies installed.
Guide limitations
- This documents setup only, not execution or successful model inference.
- The repository reports about 4.08 GiB for saved checkpoints and pre-extracted embeddings; downloading all repository files may require substantial storage.
- The code is available for non-commercial academic purposes.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 8 November 2026
- Original website title
- mahmoodlab/HIPT · Official homepage title · retained in its source language

