Skip to content

Instantly share code, notes, and snippets.

@jph00
Last active May 13, 2022 19:57
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jph00/d9ccd5b13f662a801ba4d1c8bd1885b3 to your computer and use it in GitHub Desktop.
Save jph00/d9ccd5b13f662a801ba4d1c8bd1885b3 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Install miniconda - skip if you've already got conda
cd ~
mkdir -p downloads
cd downloads
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
bash Miniconda3-latest-Linux-x86_64.sh -b
conda init bash
cd ..
### You may need to restart your shell before running the rest of this
conda config --set channel_priority strict
# Install fastai and nbdev
conda install -c defaults -c conda-forge mamba
mamba install -c fastai -c pytorch -c nvidia fastai nbdev
pip install sentencepiece
# Clone fastai repo
mkdir -p git
cd git
git clone git@github.com:fastai/fastai.git
cd fastai
nbdev_install_git_hooks
# Install stuff needed for docs
sudo apt install ruby-bundler ruby-dev
make docs
cd docs
bundle i
cd ..
make docs_serve
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment