#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.

Stars
25.6k
License
MIT
Last commit
Nov 2026
Last release
Feb 2026
Language
Python
Stars, last 35 weeks+831
25 Mar 2026: 24,766 stars1 Apr 2026: 24,802 stars8 Apr 2026: 24,837 stars15 Apr 2026: 24,875 stars22 Apr 2026: 24,906 stars29 Apr 2026: 24,962 stars6 May 2026: 24,983 stars13 May 2026: 25,009 stars20 May 2026: 25,041 stars27 May 2026: 25,065 stars3 Jun 2026: 25,142 stars10 Jun 2026: 25,172 stars17 Jun 2026: 25,204 stars24 Jun 2026: 25,240 stars1 Jul 2026: 25,273 stars8 Jul 2026: 25,298 stars15 Jul 2026: 25,312 stars22 Jul 2026: 25,333 stars29 Jul 2026: 25,358 stars5 Aug 2026: 25,370 stars12 Aug 2026: 25,393 stars19 Aug 2026: 25,409 stars26 Aug 2026: 25,420 stars2 Sept 2026: 25,439 stars9 Sept 2026: 25,445 stars16 Sept 2026: 25,455 stars23 Sept 2026: 25,473 stars30 Sept 2026: 25,484 stars7 Oct 2026: 25,497 stars14 Oct 2026: 25,514 stars21 Oct 2026: 25,523 stars28 Oct 2026: 25,534 stars4 Nov 2026: 25,544 stars11 Nov 2026: 25,560 stars18 Nov 2026: 25,579 stars25 Nov 2026: 25,597 stars

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
Also in ML frameworks and libraries
RankProjectScore
#151minariPython library for creating and loading offline reinforcement learning datasets1.7k starscustom license65 out of 100
#152nnsightPython library for reading and editing PyTorch model internals during a forward pass1.2k starsMIT65 out of 100
#154catboostGradient boosting library over decision trees with categorical feature support9.2k starsApache-2.064 out of 100
#155elixir-nx/nxTensors and numerical definitions for Elixir, with XLA and LibTorch backends2.9k starsno license64 out of 100
#156pyhealthPyTorch toolkit for clinical ML on EHR, biosignal and medical imaging data1.7k starsMIT64 out of 100