Skip to main content

fastai makes deep learning with PyTorch faster, more accurate, and easier

Project description


The fastai deep learning library. See the fastai website to get started.

Conda Install

To install fastai with pytorch-nightly + CUDA 9.2 simply run:

conda install -c pytorch -c fastai fastai pytorch-nightly cuda92

If your setup doesn't have CUDA support remove the cuda92 above (in which case you'll only be able to train on CPU, not GPU, which will be much slower). For different versions of the CUDA toolkit, you'll need to install the appropriate CUDA conda package based on what you've got installed on your system (i.e. instead of cuda92 in the above, pick the appropriate option for whichever toolkit version you have installed; to see a list of options type: conda search "cuda*" -c pytorch).

NB: We are currently using a re-packaged torchvision in order to support pytorch-nightly, which is required for using fastai.

PyPI Install

First install the nightly pytorch build, e.g. for CUDA 9.2:

pip install torch_nightly -f

If you have a different CUDA version find the right build here. Choose Preview/Linux/Pip/python3.6|python3.7 and your CUDA version and it will give you the correct install instruction.

Next, install a custom torchvision build, that is built against torch_nightly.

pip install --index-url --extra-index-url torchvision==0.2.1.post1

Now you can install fastai. Note, that this is a beta test version at the moment, please report any issues:

pip install fastai

Sometimes, the last pip command still tries to get torch-0.4.1. If that happens to you, do:

pip uninstall torchvision fastai
pip install --no-deps torchvision
pip install fastai

Developer Install

First, follow the instructions above for either PyPi or Conda. Then remove the fastai package (pip uninstall fastai or conda uninstall fastai) and replace it with a pip editable install:

git clone
cd fastai
pip install -e .

Please refer to and the developers guide for more details.


Copyright 2017 onwards,, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. A copy of the License is provided in the LICENSE file in this repository.


1.0.0 (2018-10-01)

  • Released on Conda and Pypi

1.0.0.beta1 (2018-09-22)

  • First release on PyPI.

Project details

Release history Release notifications | RSS feed

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for fastai, version 1.0.2
Filename, size File type Python version Upload date Hashes
Filename, size fastai-1.0.2-py3-none-any.whl (86.8 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size fastai-1.0.2.tar.gz (77.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page