fastai is a deep learning library built on PyTorch that provides high-level components for practitioners to quickly achieve state-of-the-art results in standard domains, and low-level composable building blocks for researchers to develop new approaches. Its layered architecture expresses common patterns through decoupled abstractions, leveraging Python's dynamism and PyTorch's flexibility. The library aims to be both approachable and deeply hackable without compromising performance.
Install & use
Install
pip install fastai
Usage
# open fastai/fastai and follow its README
fastai/fastai is a third-party open-source project, listed here from public GitHub data. ImuTechz did not write it and has not reviewed or security-audited its code. Read the source and its permissions before you install or run it.
Features
Type dispatch system with semantic tensor hierarchy
GPU-optimized computer vision library extensible in pure Python
Optimizer refactored into two basic pieces for 4-5 line algorithm implementations
Two-way callback system accessing data, model, or optimizer at any training point
Data block API for flexible data pipeline construction
Layered API with composable high-level, mid-level, and low-level components
Best for
Building image classifiers, segmentation, text sentiment, recommendation, and tabular models
Practitioners seeking rapid prototyping with modern best practices
Researchers needing low-level components for novel architectures
Migrating from plain PyTorch, Ignite, Lightning, or Catalyst
Pros
Approachable and rapidly productive for beginners
Deeply hackable and configurable for advanced users
Reduces training code while adopting modern best practices
Easy migration from other PyTorch-based libraries
Cons
Windows Jupyter limitation: num workers reset to 0, slowing computer vision tasks (not an issue in scripts)
Requires PyTorch installed first for optimal performance
Development setup requires editable installs of both fastai and fastcore
State-of-the-Art Deep Learning scripts organized by models - easy to train and deploy with reproducible accuracy and performance on enterprise-grade infrastructure