FastAI setting up and development guide
Uninstalls
- OneDrive
Install WSL
Install Git
sudo apt -y install git
- generate ssh key
- add it to github SSH keys in settings
Run Fastsetup in linux file
git clone git@github.com:fastai/fastsetup.git
Read README.txt
cd fastsetup
give files permission to run
chmod +x *
sudo ./ubuntu-wsl.sh
source dotfiles.sh
source setup-conda.sh
. ~/.bashrc
conda install -yq mamba
Resource monitoring
sudo add-apt-repository ppa:bashtop-monitor/bashtop
sudo apt update
sudo apt install bashtop
bashtop
GPU monitoring
sudo add-apt-repository ppa:flexiondotorg/nvtop
sudo apt install nvtop
Nvtop
sudo add-apt-repository ppa:flexiondotorg/nvtop
sudo apt install nvtop
Bash terminal customisation
parse_git_branch() { b=$(git branch --show-current 2> /dev/null); echo ${b:+" ($b)"}; }
PS1='\[\e[38;5;214m\]\A\[\e[0m\] \[\e[38;5;108;1m\]\u\[\e[0;38;5;114;2m\]@\[\e[0;38;5;119m\]\h\[\e[0m\] \[\e[38;5;117m\]\w'
PS1='${debian_chroot:+($debian_chroot)}'$PS1'\[\e[38;5;204;1m\]$(parse_git_branch)\[\033[00m\]\$ '
PS2='${debian_chroot:+($debian_chroot)}\[\e[38;5;214m\]\A \[\033[00m\]\$ '
Font customisation
- Add firacode to windows settings
In powershell
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
iwr -useb get.scoop.sh | iex
scoop bucket add nerd-fonts
scoop install firacode
iwr -useb get.scoop.sh | iex
Step for git push
- nbdev_prepare
nbdev_prepare
- Git stuff
git add .
git commit -m "update"
git push
After changing dependencies
pip install newAI
pip install -e '.[dev]'