fastai layers approachable training APIs on PyTorch for vision, text, tabular, and recommendation tasks. Install locally with pip or run notebooks in Colab with GPU runtime.
Overview
fastai packages common deep-learning workflows into high-level components while still exposing lower-level pieces researchers can mix. It targets practitioners who want short scripts for standard domains and tinkerers who need callbacks, data blocks, and custom training hooks.
Built on PyTorch, the library includes a typed dispatch system for tensors, a GPU-oriented vision stack extensible in Python, streamlined optimizers, a two-way callback system that can alter data or models during training, and a data block API for assembling datasets. Quick-start examples cover classifiers, segmentation, sentiment, recommendations, and tabular models with similar code shapes.
Training can run on your own hardware after installing PyTorch and fastai, or through hosted notebook environments when you enable GPU backends. Documentation ships as interactive notebooks, and migration notes explain how to combine or move from plain PyTorch and related trainers.
Official Docker images are published for containerized setups. On Windows, Jupyter users may see dataloader worker limits unless they run from scripts or use WSL with the Linux install path.
Key features
- High-level PyTorch training APIs
- Data block pipeline API
- Two-way training callbacks
- GPU computer vision utilities
- Compact optimizer implementations
- Tensor type dispatch system
- Vision, NLP, and tabular presets
- Notebook-first documentation
Use cases
- Image classification prototypes
- Text sentiment models
- Tabular prediction experiments
- Teaching deep learning courses
- Research with customizable hooks