Skip to main content

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

Project description

fastai

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 https://download.pytorch.org/whl/nightly/cu92/torch_nightly.html

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 https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ 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 https://github.com/fastai/fastai
cd fastai
pip install -e .
tools/run-after-git-clone

Please refer to CONTRIBUTING.md and the developers guide for more details.

Copyright

Copyright 2017 onwards, fast.ai, 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.

History

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

1.0.2

Download files

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

Source Distribution

fastai-1.0.2.tar.gz (77.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastai-1.0.2-py3-none-any.whl (86.8 kB view details)

Uploaded Python 3

File details

Details for the file fastai-1.0.2.tar.gz.

File metadata

  • Download URL: fastai-1.0.2.tar.gz
  • Upload date:
  • Size: 77.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.6

File hashes

Hashes for fastai-1.0.2.tar.gz
Algorithm Hash digest
SHA256 7588dedaabd607849668a8283d38d74a94cd61368b73bdb4f1ed48dd61e2ddbc
MD5 04e0657435e8e52a7032dd6af68745f7
BLAKE2b-256 c6ef0fa540029fd858e8c14b8f1e76f3bac5780faf7a7223d9b7e6a86f657556

See more details on using hashes here.

File details

Details for the file fastai-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: fastai-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 86.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.6

File hashes

Hashes for fastai-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 64b0d692467f45bfe4e82223d928bfa88078b9a676b3d3453d393a90dcbda329
MD5 a3e230bc24842a10102b8593ea264900
BLAKE2b-256 afcd9d9ab4d6762d6510535b379c9ca477281614af93249b3e16bb8988975292

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page