google-research/vision_transformer

Vision Transformer is a reference implementation of transformer-based and MLP-based architectures for image recognition, released by Google Research.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 47 minutes ago
Added to GitGenius on September 4th, 2026
Created on October 21st, 2020
Open Issues & Pull Requests: 139 (+0)
GitHub issues: Enabled
Number of forks: 1,474
Total Stargazers: 12,704 (+0)
Total Subscribers: 111 (+0)

Repository Insights (GitGenius)

Most active contributors

Sign in to see contributor activity.

Related repositories by overlapping contributors

No overlapping-contributor repos identified yet.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Issue API getrepoissuespagesummary failed: 429 Rate limit exceeded. Please try again later.

Detailed Description

Vision Transformer is a reference implementation of transformer-based and MLP-based architectures for image recognition, released by Google Research.

The repository addresses the question of whether transformers can effectively replace convolutional neural networks for vision tasks. It implements Vision Transformers, which divide images into patches and process them as sequences, alongside MLP-Mixer, an alternative architecture that uses only multi-layer perceptrons. The codebase provides pre-trained models on ImageNet and ImageNet-21k datasets, with code for fine-tuning these models using JAX and Flax. The repository also includes implementations from papers exploring training strategies for vision transformers, zero-shot transfer via locked-image text tuning, and sharpness-aware training improvements.

Developers should adopt this repository if they want to experiment with transformer-based vision models or compare them against traditional convolutional approaches. It suits research projects and applications requiring transfer learning from large-scale pre-trained models. The codebase is particularly valuable for those working in JAX or considering it, as it provides well-documented implementations. The repository includes interactive Colab notebooks that allow exploration of over fifty thousand pre-trained checkpoints and enable fine-tuning on custom datasets. Notably, the checkpoints are compatible with the popular timm PyTorch library, allowing developers to load and use the models outside the JAX ecosystem if preferred.

Development activity shows consistent engagement with the research literature, as the repository serves as the official release mechanism for multiple peer-reviewed papers on vision transformers and related architectures. The codebase acknowledges that more advanced training code, including multi-host training scripts, is maintained in a separate repository for those requiring production-scale training capabilities. The project maintains comprehensive documentation through Colab notebooks that provide both educational walkthroughs of the implementation and practical guides for checkpoint exploration and fine-tuning workflows.