Scroll AI Now

Open source repo

vit-pytorch

Implementation of Vision Transformer, a simple way to achieve SOTA in vision classification with only a single transformer encoder, in Pytorch

By lucidrains · MIT · Python · ★ 25,602

View on GitHubMore repos in the app

What it is

vit‑pytorch is an open source image and video AI project, published on GitHub by lucidrains and written mainly in Python. Its maintainers file it under artificial‑intelligence, attention‑mechanism, computer‑vision, image‑classification.

In its own words on GitHub: “Implementation of Vision Transformer, a simple way to achieve SOTA in vision classification with only a single transformer encoder, in Pytorch.”

Who it is for

Creators, marketers and developers who make images or video with AI models, or who build tools that do.

How to start

  1. Open the repo and read the README from the top, then the license file.
  2. It is written in Python, so you will usually install it with pip or uv inside a virtual environment.
  3. Pin a release or a commit, so an update does not change how it behaves without you noticing.

Why it is on our list

The facts

LicenseMIT
What the license allowsYou can use, change and ship it, including in paid products. Keep the copyright notice.
Main languagePython
Stars25,602
Topicsartificial‑intelligence, attention‑mechanism, computer‑vision, image‑classification, transformers
CreatedOctober 3, 2020
Last checkedDecember 2, 2026

Before you use it

Are you the author?

This repo has its own page on Scroll AI Now.
Show it in your README with the badge below.
It links readers back to this page. How the badge works

Featured on Scroll AI Now

Markdown
[![Featured on Scroll AI Now](https://scrollainow.com/badge/featured.svg)](https://scrollainow.com/repos/lucidrains-vit-pytorch/)
HTML
<a href="https://scrollainow.com/repos/lucidrains-vit-pytorch/"><img src="https://scrollainow.com/badge/featured.svg" alt="Featured on Scroll AI Now" height="28"></a>

Related repos

All curated AI repos · Agent skills

Try it in your browser

Today's AI news, one card per swipe.
Free to start.

Open the web app