/fastai_dev

development of the next version of fastai

Primary LanguageJupyter NotebookApache License 2.0Apache-2.0

fastai_dev

This repo is used for fastai development. fastai v2 is being developed in the dev folder. Docs are at http://dev.fast.ai . To install fastai v2:

  1. Clone this repository
git clone https://github.com/fastai/fastai_dev.git
  1. Install packages:
conda install -c fastai -c pytorch jupyter "pytorch>=1.2.0" torchvision matplotlib pandas requests pyyaml fastprogress pillow "python>=3.6" pip scikit-learn scipy spacy
pip install typeguard jupyter_nbextensions_configurator

Alternatively, install packages using conda environment:

cd fastai_dev
conda env create -f environment.yml

Tests

To run the tests in parallel, do something like this:

for i in {0,1,2}*.ipynb; do sleep 1; python run_notebook.py --fn $i & done

Contributing

After you clone this repository, please run tools/run-after-git-clone in your terminal. This sets up git hooks, which clean up the notebooks to remove the extraneous stuff stored in the notebooks (e.g. which cells you ran) which causes unnecessary merge conflicts.

There are various .py scripts in the dev directory which you should look at (and we should document!)