Last active
May 13, 2022 19:57
-
-
Save jph00/d9ccd5b13f662a801ba4d1c8bd1885b3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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