Ross ROSS = Recommend OSS · open-source software intelligence for agents

lucidrains/vit-pytorch

Implementation of Vision Transformer, a simple way to achieve SOTA in vision classification with only a single transformer encoder, in Pytorch observed · 2026-08-28

github.com/lucidrains/vit-pytorch · Python · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

87/100

  • Activity 95
  • Release rhythm 70
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: 3.0
  • age_days: 2160
  • days_rel: 203
  • days_push: 31
  • n_releases_24m: 51

Full methodology

Adoption not part of the score

25488 stars · 3492 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

A PyTorch library implementing the Vision Transformer (ViT) and dozens of ViT variants (NaViT, MaxViT, MobileViT, Dino, masked autoencoders, and more) for image classification and vision research. It provides clean, minimal model definitions without pretrained weights.

Use cases

  • implement vision transformer in pytorch
  • train an image classifier with a transformer encoder
  • experiment with ViT variants like NaViT or MaxViT
  • research attention mechanisms for images
  • build a masked autoencoder for images
  • apply transformers to video classification

When to choose

  • you want readable, hackable PyTorch ViT implementations for research or experimentation
  • you need many transformer vision architectures in one pip-installable package
  • you are learning how vision transformers work from clean code

When to avoid

  • you need pretrained weights for production use - use timm instead
  • you need a full training pipeline, data loading, or deployment tooling
  • you work in TensorFlow, JAX, or a non-PyTorch stack

Facets

library · maturity active

machine-learning deep-learning image-processing computer-vision deep-learning machine-learning artificial-intelligence python vision-transformer pytorch image-classification attention transformer-architectures research-code

1 source

Member repositories

RepositoryRoleHealth v2
lucidrains/vit-pytorchmain87

For agents

markdown · JSON · MCP: product_card(name="lucidrains/vit-pytorch")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem