Skip to main content

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

Project description

fastai

The fastai deep learning library.

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.

Current Status

This is a ground-up rewrite of fastai. Everything should work, although docs are still in progress. If you're interested in contributing, join the discussion at: http://forums.fast.ai/c/fastai-dev.

Install

To use the notebooks or the beta version of the fastai modules you will need:

  • to use python 3.7 or python 3.6 with dataclasses: pip install dataclasses
  • to use the pytorch-nightly conda package, or the master branch of pytorch master
  • to install fastprogress: pip install fastprogress

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.

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

pip install --index-url https://test.pypi.org/simple/ --extra-index-url  https://pypi.org/simple/ fastai==1.0.0b6

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 --index-url https://test.pypi.org/simple/ --extra-index-url  https://pypi.org/simple/ fastai==1.0.0b6

Conda Install

To install fastai with CUDA 9.2 simply run (read the paragraph after this for other GPU and CPU options):

conda install -c pytorch -c fastai/label/test fastai cuda92

If your setup doesn't have CUDA support remove the cuda92 above.

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).

Note, that this is a beta test version at the moment, please report any issues. We are currently using a re-packaged torchvision in order to support pytorch-nightly, which is required for using 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_pytorch
cd fastai_pytorch
pip install -e .
tools/run-after-git-clone

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

History

1.0.0.beta1 (2018-09-22)

  • First release on PyPI.

Project details


Release history Release notifications | RSS feed

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.0b7.tar.gz (80.7 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.0b7-py3-none-any.whl (85.7 kB view details)

Uploaded Python 3

File details

Details for the file fastai-1.0.0b7.tar.gz.

File metadata

  • Download URL: fastai-1.0.0b7.tar.gz
  • Upload date:
  • Size: 80.7 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.0b7.tar.gz
Algorithm Hash digest
SHA256 f29b5bce12b7a9ccfe68c5bd8adace36254f34f3f76506caf3ca38d1f2cf8f85
MD5 cc30c60fb5457d135738335b6ad98794
BLAKE2b-256 e637d2526255f06fbe8fca3db3e2c4e52d5868f3fbf40c1bf211232d3fc78054

See more details on using hashes here.

File details

Details for the file fastai-1.0.0b7-py3-none-any.whl.

File metadata

  • Download URL: fastai-1.0.0b7-py3-none-any.whl
  • Upload date:
  • Size: 85.7 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.0b7-py3-none-any.whl
Algorithm Hash digest
SHA256 cc11218fd4359137644cf734743344d1cae9d8e691b05fd91669ac3a019741d0
MD5 13f07b7fdf6b727a07b17810c349fcf1
BLAKE2b-256 c5cb64b91c06a4e4bbd941ad4f2068aa2091af2dc0dac4da68699c03251dda29

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