Welcome to fastai <!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! --> Installing You can use fastai without any installation by using Google Colab. In fact, every page of…
Welcome to fastai
<!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! -->



Installing
You can use fastai without any installation by using Google
Colab. In fact, every page of this
documentation is also available as an interactive notebook - click “Open
in colab” at the top of any page to open it (be sure to change the Colab
runtime to “GPU” to have it run fast!) See the fast.ai documentation on
Using Colab for more
information.
You can install fastai on your own machines with: pip install fastai.
To ensure that you have the best available version of PyTorch on your
machine, recommend
installing that first.
If you plan to develop fastai yourself, or want to be on the cutting
edge, you can use an editable install (if you do this, you should also
use an editable install of
fastcore to go with it.) First
install PyTorch, and then:
git clone https://github.com/fastai/fastai
pip install -e "fastai[dev]"
Learning fastai
The best way to get started with fastai (and deep learning) is to read
the
book,
and complete the free course.
To see what’s possible with fastai, take a look at the Quick
Start, which shows how to use
around 5 lines of code to build an image classifier, an image
segmentation model, a text sentiment model, a recommendation system, and
a tabular model. For each of the applications, the code is much the
same.
Read through the Tutorials to
learn how to train your own models on your own datasets. Use the
navigation sidebar to look through the fastai documentation. Every
class, function, and method is documented here.
To learn about the design and motivation of the library, read the peer
reviewed paper.
About fastai
fastai is a deep learning library which provides practitioners with
high-level components that can quickly and easily provide
state-of-the-art results in standard deep learning domains, and provides
researchers with low-level components that can be mixed and matched to
build new approaches. It aims to do both things without substantial
compromises in ease of use, flexibility, or performance. This is
possible thanks to a carefully layered architecture, which expresses
common underlying patterns of many deep learning and data processing
techniques in terms of decoupled abstractions. These abstractions can be
expressed concisely and clearly by leveraging the dynamism of the
underlying Python language and the flexibility of the PyTorch library.
fastai includes:
- A new type dispatch system for Python along with a semantic type
- A GPU-optimized computer vision library which can be extended in pure
- An optimizer which refactors out the common functionality of modern
- A novel 2-way callback system that can access any part of the data,
- A new data block API
- And much more…
Migrating from other libraries
It’s very easy to migrate from plain PyTorch, Ignite, or any other
PyTorch-based library, or even to use fastai in conjunction with other
libraries. Generally, you’ll be able to use all your existing data
processing code, but will be able to reduce the amount of code you
require for training, and more easily take advantage of modern best
practices. Here are migration guides from some popular libraries to help
you on your way:
Windows Support
Due to python multiprocessing issues on Jupyter and Windows,num_workers of Dataloader is reset to 0 automatically to avoid
Jupyter hanging. This makes tasks such as computer vision in Jupyter on
Windows many times slower than on Linux. This limitation doesn’t exist
if you use fastai from a script.
See this
example
to fully leverage the fastai API on Windows.
We recommend using Windows Subsystem for Linux (WSL) instead – if you do
that, you can use the regular Linux installation approach, and you won’t
have any issues with num_workers.
Tests
To run the tests in parallel, launch:
nbdev_test
For all the tests to pass, you’ll need to install the dependencies
specified as part of dev_requirements in settings.ini
pip install -e .[dev]
Tests are written using nbdev, for example see the documentation fortest_eq.
Contributing
After you clone this repository, make sure you have runnbdev_install_hooks in your terminal. This install Jupyter and git
hooks to automatically clean, trust, and fix merge conflicts in
notebooks.
After making changes in the repo, you should run nbdev_prepare and
make additional and necessary changes in order to pass all the tests.
Docker Containers
For those interested in official docker containers for this project,
they can be found
here.
Members
-
fastai
The fastai deep learning library
Jupyter Notebook ★ 28k 1mo agoExplain → -
fastbook
The fastai book, published as Jupyter Notebooks
Jupyter Notebook ★ 25k 1y agoExplain → -
numerical-linear-algebra
Free online textbook of Jupyter notebooks for fast.ai Computational Linear Algebra course
Jupyter Notebook ★ 11k 2y agoExplain → -
courses
fast.ai Courses
Jupyter Notebook ★ 5.7k 1y agoExplain → -
course-v3
The 3rd edition of course.fast.ai
Jupyter Notebook ★ 4.9k 2y agoExplain → -
course22
The fast.ai course notebooks
Jupyter Notebook ★ 3.6k 1y agoExplain → -
fastpages ▣
An easy to use blogging platform, with enhanced support for Jupyter Notebooks.
Jupyter Notebook ★ 3.5k 3y agoExplain → -
course-nlp
A Code-First Introduction to NLP course
Jupyter Notebook ★ 3.5k 3y agoExplain → -
fastmac
Get a MacOS or Linux shell, for free, in around 2 minutes
Shell ★ 2.0k 5y agoExplain → -
lm-hackers
Hackers' Guide to Language Models
Jupyter Notebook ★ 1.9k 1y agoExplain → -
imagenette
A smaller subset of 10 easily classified classes from Imagenet, and a little more French
Jupyter Notebook ★ 1.1k 3y agoExplain → -
course20
Deep Learning for Coders, 2020, the website
Jupyter Notebook ★ 838 3y agoExplain → -
diffusion-nbs
Getting started with diffusion
Jupyter Notebook ★ 688 2y agoExplain → -
fastai2 ▣
Temporary home for fastai v2 while it's being developed
Jupyter Notebook ★ 648 5y agoExplain → -
fastai_dev
fast.ai early development experiments
Jupyter Notebook ★ 643 3y agoExplain → -
course22p2
course.fast.ai 2022 part 2
Jupyter Notebook ★ 523 2y agoExplain → -
swiftai
Swift for TensorFlow's high-level API, modeled after fastai
Jupyter Notebook ★ 457 5y agoExplain → -
course-v4
Please use fastbook's /clean folder instead of this
★ 442 5y agoExplain → -
nbdev_template
Template for nbdev projects
Python ★ 326 3y agoExplain → -
timmdocs
Documentation for Ross Wightman's timm image model library
Jupyter Notebook ★ 323 2y agoExplain → -
imagenet-fast
No description.
Python ★ 305 5y agoExplain → -
numerical-linear-algebra-v2
Jupyter Notebooks for Computational Linear Algebra course, taught summer 2018 in USF MSDS program
Jupyter Notebook ★ 282 8y agoExplain → -
fast_template
A template for really easy blogging with GitHub Pages
HTML ★ 270 2y agoExplain → -
fastdoc
Create publication-quality books from Jupyter notebooks
Jupyter Notebook ★ 242 3y agoExplain → -
fastdiffusion
Notes and plans for fastdiffusion course
Jupyter Notebook ★ 208 3y agoExplain → -
docker-containers
Docker images for fastai
Shell ★ 181 4y agoExplain → -
fastai_old
OLD REPO - PLEASE USE fastai/fastai
Jupyter Notebook ★ 179 3y agoExplain → -
fastscript ▣
A fast way to turn your python function into a script
CSS ★ 165 4y agoExplain → -
book_nbs
Notebooks for upcoming fastai book (draft / incomplete)
Jupyter Notebook ★ 164 6y agoExplain → -
word-embeddings-workshop
This contains materials for the word embeddings workshop
HTML ★ 127 9y agoExplain → -
fastec2
AWS EC2 computer management for regular folks
Python ★ 122 3y agoExplain → -
fastai1
v1 of the fastai library. v2 is the current version. v1 is still supported for bug fixes, but will not receive new features.
Jupyter Notebook ★ 114 3y agoExplain → -
course22-web
Website for Practical Deep Learning for Coders 2022
Jupyter Notebook ★ 96 2y agoExplain → -
tf-fit
Fit your tensorflow model using fastai and PyTorch
Python ★ 90 6y agoExplain → -
fastgpu
A queue service for quickly developing scripts that use all your GPUs efficiently
Jupyter Notebook ★ 88 3y agoExplain → -
fastsql1
A bit of extra usability for sqlalchemy v2.
Jupyter Notebook ★ 78 2y agoExplain → -
book.fast.ai
Information for readers of the fastai book
Jupyter Notebook ★ 68 5y agoExplain → -
fastdot
A simple wrapper over `pydot` and `graphviz` which fixes some sharp edges
Jupyter Notebook ★ 63 3y agoExplain → -
fastbook2e
The fastai book, 2nd edition (in progress)
Jupyter Notebook ★ 58 1y agoExplain → -
fastkaggle
Kaggling for fast kagglers!
Jupyter Notebook ★ 55 2y agoExplain → -
nbprocess-old
Process and export Jupyter Notebooks fast (Jupyter not required)
Jupyter Notebook ★ 52 3y agoExplain → -
randomized-SVD
demos for PyBay talk: Using Randomness to make code faster
Jupyter Notebook ★ 51 8y agoExplain → -
fastai3
Research repo for code that may or may not end up in fastai3
Jupyter Notebook ★ 50 5y agoExplain → -
pypi_template
A minimal template for creating a pypi package
Python ★ 49 5y agoExplain → -
fastdownload
Easily download, verify, and extract archives
Jupyter Notebook ★ 47 4y agoExplain → -
tinypets
Minimal JS interface to an image classifer
HTML ★ 44 3y agoExplain → -
dotfiles
No description.
Vim Script ★ 43 5mo agoExplain → -
nbdev-vscode
No description.
TypeScript ★ 42 3y agoExplain → -
fastforest
A forest that is fast
C++ ★ 42 7y agoExplain → -
tinykernel
A minimal Python kernel so you can run Python in your Python
Python ★ 40 4y agoExplain → -
wireguard-fast
Simplified installation of WireGuard server for Ubuntu
Shell ★ 40 5y agoExplain → -
bear_voila
Demo bear classifier with fastai and Voila
Jupyter Notebook ★ 39 2y agoExplain → -
fastai-docs
Documentation for fastai
HTML ★ 34 3y agoExplain → -
fastai-nbstripout
much faster nbstripout and autotrust notebooks local git configuration
Python ★ 32 7y agoExplain → -
pagegraph
Draw, modify, and execute graphs using a simple python dict interface
Jupyter Notebook ★ 30 3y agoExplain → -
apl-study
fast.ai APL study group notes
Jupyter Notebook ★ 29 3y agoExplain → -
masks4all
Make your own mask. My mask protects you. Your mask protects me.
Jupyter Notebook ★ 27 3y agoExplain → -
fastconda
Get packages onto your conda channel faster
Jupyter Notebook ★ 26 1y agoExplain → -
sklearn-pandas ⑂
Pandas integration with sklearn
Python ★ 21 9y agoExplain → -
fastcgi
A fastcgi handler for Python's `socketserver` classes
Jupyter Notebook ★ 20 4y agoExplain → -
git-tools
Tools to make git easier to use and to avoid the learning curve
Python ★ 20 7y agoExplain → -
tweetrel
Use GitHub Actions to send a tweet when you make a new release
Jupyter Notebook ★ 18 5y agoExplain → -
ethics.fast.ai
The fast.ai data ethics course
Jupyter Notebook ★ 17 3y agoExplain → -
paperspace-setup
Setup a paperspace instance for fastai
Shell ★ 15 3y agoExplain → -
fastpy
An easy way to start a python programming environment using GitHub Codespaces.
★ 15 5y agoExplain → -
jupytercon-2023
Materials for "Write, Document, Test and Distribute Python Packages With Jupyter & Quarto", JupyterCon 2023.
Jupyter Notebook ★ 15 3y agoExplain → -
fastrelease
DEPRECATED--all functionality moved to nbdev
Jupyter Notebook ★ 15 3y agoExplain → -
k-diffusion ⑂
Karras et al. (2022) diffusion models for PyTorch
Jupyter Notebook ★ 14 3y agoExplain → -
fastcups
No description.
HTML ★ 14 4y agoExplain → -
fastlinkcheck
Check local static links and online links fast and in parallel
Jupyter Notebook ★ 13 5y agoExplain → -
ghtop ⑂
See what's happening on GitHub in real time
Python ★ 13 5y agoExplain → -
dlcert2
Web site source for Practical Deep Learning for Coders (2018)
Jupyter Notebook ★ 12 6y agoExplain → -
cards_deck
A minimal example of nbdev based on Allen Downey's Think Python 2nd Ed
Jupyter Notebook ★ 11 3y agoExplain → -
Str8Pix
find the optimal rotation to correct skewed photos
Jupyter Notebook ★ 11 9y agoExplain → -
docments
Document parameters using comments
★ 10 4y agoExplain → -
dlcert1
Deep learning certificate part 1
★ 10 4y agoExplain → -
AleaTK ⑂
Library for general purpose numerical computing and Machine Learning based on tensors and tensor expressions.
C# ★ 9 9y agoExplain → -
spacy_conda
conda packages for spacy and deps
★ 7 6y agoExplain → -
getcaddy
Simple approach to getting the Caddy web server
Shell ★ 6 9mo agoExplain → -
fastwebhook
A simple GitHub webhook server
Jupyter Notebook ★ 6 4y agoExplain → -
hugo-mathjax
Hugo with goldmark-mathjax
Jupyter Notebook ★ 6 5y agoExplain → -
GloVe ⑂
GloVe model for distributed word representation
C ★ 5 8y agoExplain → -
nbdev_cards
A sample of how to create a deck of cards lib using nbdev
Jupyter Notebook ★ 5 3y agoExplain → -
wandbfastai
No description.
Jupyter Notebook ★ 5 5y agoExplain → -
nbeverything
No description.
★ 5 6y agoExplain → -
nbdev-spaces-demo
A demo of how to create a Hugging Face Space with gradio within a nbdev project.
Jupyter Notebook ★ 4 3y agoExplain → -
hugo ⑂
The world’s fastest framework for building websites.
Go ★ 4 5y agoExplain → -
nbdev-demo
No description.
★ 4 4y agoExplain → -
nbdev-jekyll-theme
No description.
CSS ★ 4 4y agoExplain → -
nbdev-hello-world
Hello world from nbdev
Python ★ 3 3y agoExplain → -
fastdispatch
Wrapper for plum dispatch to make it more compatible with fastcore's typedispatch
Jupyter Notebook ★ 3 3y agoExplain → -
ghtop-demo
A CLI tool for showing GitHub events, written with Rich
Jupyter Notebook ★ 3 3y agoExplain → -
tanishq_blog
No description.
CSS ★ 3 3y agoExplain → -
docs
No description.
★ 3 9y agoExplain → -
fastsql
Please see answerdotai/fastsql
★ 2 1y agoExplain → -
jkernel ⑂
Jupyter Notebook / J Integration
Jupyter Notebook ★ 2 5y agoExplain → -
uvws ⑂
A simple uv workspace
Python ★ 2 1y agoExplain → -
setuptools-conda ⑂
Build a conda package from a setuptools project
Python ★ 2 4y agoExplain → -
jb-nbdev
Exploring how nbdev may integrate with JupyterBook
Jupyter Notebook ★ 2 5y agoExplain → -
getapt
Get tweets for a single user
Jupyter Notebook ★ 2 4y agoExplain → -
nbdev_export_demo
How to export to multiple modules with nbdev
Jupyter Notebook ★ 2 3y agoExplain → -
wandb-nbdev
Demo of Weights & Biases documentation using nbdev
★ 2 3y agoExplain → -
nbdev2-docusaurus
Docusaurus site generation for nbdev
Jupyter Notebook ★ 2 4y agoExplain → -
logos
Logos for fastai for use in websites, icons, etc.
★ 2 3y agoExplain → -
conda-recipes
Recipes for non-fastai projects that fastai provides packages for.
Python ★ 2 5y agoExplain → -
latest
latest.fast.ai server
Jupyter Notebook ★ 1 9mo agoExplain → -
pynapl ⑂
Dyalog APL ←→ Python interface
Python ★ 1 1y agoExplain → -
.github
Org level Actions workflows to greet new contributors who open an issue or PR for the first time automatically
★ 1 5y agoExplain → -
quarto-web ⑂
Quarto website
JavaScript ★ 1 3y agoExplain → -
showdoc
Documentation lookup from nbdev index
Jupyter Notebook ★ 1 5y agoExplain → -
nbdev1
nbdev v1 (old version)
Jupyter Notebook ★ 1 3y agoExplain → -
nbpages
No description.
Jupyter Notebook ★ 1 4y agoExplain → -
ghapi-test
Testing repo for ghapi
★ 0 5mo agoExplain → -
anaconda-client ⑂
Anaconda Server Client
Python ★ 0 5y agoExplain → -
nb-thumb
Extract thumbnails from Jupyter notebooks
Jupyter Notebook ★ 0 2y agoExplain → -
docusaurus-html
No description.
★ 0 3y agoExplain → -
quarto-blog
No description.
Jupyter Notebook ★ 0 3y agoExplain → -
nb2req
No description.
★ 0 4y agoExplain → -
doesitwork
No description.
★ 0 4y agoExplain → -
tk-debug
No description.
★ 0 4y agoExplain → -
quarto-debug
No description.
Jupyter Notebook ★ 0 4y agoExplain → -
fastai-quarto-debug
No description.
★ 0 4y agoExplain → -
quarto-nb
No description.
JavaScript ★ 0 4y agoExplain → -
http2fcgi ⑂
A quick & tiny HTTP to FastCGI reverse proxy.
Go ★ 0 5y agoExplain →
No repos match these filters.