#153153rd of 433 in ML frameworks and libraries
vit-pytorch
PyTorch implementations of Vision Transformer and many of its variants
Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.
Watch puts vit-pytorch on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.vit-pytorch is on your watch list. Its new releases and problems show there.
- Stars
- 25.6k
- License
- MIT
- Last commit
- Nov 2026
- Last release
- Feb 2026
- Language
- Python
24,766 on 25 Mar 202625,597 on 25 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
Overview
A pip-installable Python library with compact PyTorch implementations of ViT and dozens of variants, including SimpleViT, NaViT, CaiT, CrossViT, LeViT, CvT, MaxViT and MobileViT. It also includes a distillation wrapper and self-supervised modules such as MAE, Dino and masked patch prediction. Each model is a plain nn.Module with a short usage snippet.
Who it is for: ML researchers and engineers prototyping vision transformers in PyTorch
Strengths
- Covers about 30 ViT variants behind similar constructor-style APIs
- Includes a distillation wrapper and self-supervised options (MAE, Dino, EsViT, masked patch prediction)
- Single pip package; models are plain PyTorch modules
- NaViT handles mixed-resolution batches, with a nested-tensor variant for PyTorch 2.5
Weaknesses
- No pretrained weights; README points to timm for pretrained ViTs
- Examples use random tensors; no training scripts or benchmarks in the README
- ViT requires more than 16 patches per image
- NaViT needs manual image grouping unless group_images is set
What it needs
- GPU optional
- Needs PyTorch, torchvision
- Models: ViT, SimpleViT, NaViT, CaiT, CrossViT
What changed
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Also in ML frameworks and libraries
See all 433| Rank | Project | Score |
|---|---|---|
| #151 | minariPython library for creating and loading offline reinforcement learning datasets | 65 out of 100 |
| #152 | nnsightPython library for reading and editing PyTorch model internals during a forward pass | 65 out of 100 |
| #154 | catboostGradient boosting library over decision trees with categorical feature support | 64 out of 100 |
| #155 | elixir-nx/nxTensors and numerical definitions for Elixir, with XLA and LibTorch backends | 64 out of 100 |
| #156 | pyhealthPyTorch toolkit for clinical ML on EHR, biosignal and medical imaging data | 64 out of 100 |