- Official website: https://www.fast.ai/
- Github: https://github.com/fastai/fastai
For fastai courses, use fastai 0.7.0
- Google Colab set up: https://colab.research.google.com/drive/1pYYddH90hdOKPdhVeC69xoz8AszrpYbz
- Windows 10 set up: https://forums.fast.ai/t/howto-installation-on-windows/10439
- Fix "Error: No module named 'bcolz'": https://forums.fast.ai/t/error-no-module-named-bcolz-but-bcolz-is-already-installed/9504/11
cd ~/fastai
source activate fastai (conda activate fastai)
conda install jupyter
conda env update
source deactivate (conda deactivate)
source activate fastai (condata activate fastai)
jupyter notebook
- Fix "Found GPU0 GeForce GTX 950M which is of cuda capability 5.0. PyTorch no longer supports this GPU because it is too old. warnings.warn(old_gpu_warn % (d, name, major, capability[1]))" error: https://forums.fast.ai/t/unable-install-pytorch-from-source-for-older-gpu-card/15436/14 (The key is to update PyTorch version to later than 0.4.0.)
conda activate fastai
conda uninstall pytorch
git clone --recursive https://github.com/pytorch/pytorch
cd pytorch
conda install -c pytorch pytorch
Use the following code to check versions.
import torch
print("PyTorch version: ", torch.__version__)
print("CUDA Version: ", torch.version.cuda)
print("cuDNN version is: ", torch.backends.cudnn.version())
print('Device:', torch.device('cuda:0'))
- After seting up fastai for Windows 10, two "Jupyter Notebook" options can be found in the Start Menu.
- To start the non-fastai environment, you can choose "Jupyter Notebook" in the Windows Start Menu, or simply type
jupyter notebook
in Anaconda. e.g. I got the following version information.
- To start the fastai environment, you can choose "Jupyter Notebook (fastai)" in the Start Menu, or run the following code in Anaconda.
conda activate fastai
jupyter notebook
e.g. I got the following version information.
- If you ran into error similar to "Found GPU0 GeForce GTX 950M which is of cuda capability 5.0.", update PyTorch version to later than 0.4.0 in the fastai environment with the method mentioned before.