| What it is | PyTorch implementations of the Vision Transformer and dozens of its variants | Large collection of PyTorch image models and backbones with pretrained weights and training scripts | Hugging Face's Python library of model definitions for text, vision, audio and multimodal models |
| Features | - Vision Transformer (ViT) in PyTorch
- many ViT variants (NaViT, CaiT, CvT, MaxViT, MobileViT and more)
- distillation from a convolutional teacher
- masked autoencoder and simple masked image modelling pretraining
| - a wide range of image model architectures, nearly all with pretrained weights
- multi-scale feature map extraction for using models as backbones
- reference training, validation and inference scripts
- optimizers, schedulers and augmentations for image training
| - model definitions for text, vision, audio, video and multimodal models
- loads 1M+ checkpoints from the Hugging Face Hub
- Pipeline API for inference
- Trainer for training and fine-tuning
- transformers serve and transformers chat commands
- works with training frameworks and inference engines that reuse its model definitions
|