Modify for your pem key and IP:
ssh -i "lambda-labs-key.pem" ubuntu@<ip> -L 8888:localhost:8888
git clone https://github.com/DrChrisLevy/fast-ai-course-sd.git
cd fast-ai-course-sd
git config --global user.email [email protected]
git config --global user.name DrChrisLevy
git config credential.helper store
Grab any other notebooks or code you want to clone locally and do it here:
git clone https://github.com/fastai/diffusion-nbs.git
git clone https://github.com/fastai/course22p2.git
docker build . -t fast-ai
# Mac M1
docker build . -f DockerfileMacM1 -t fast-ai-arm64
GPU
docker run -it -p 8888:8888 --gpus all -v $PWD:/workspace fast-ai /bin/bash
# Mac M1, https://hub.docker.com/r/armswdev/pytorch-arm-neoverse
docker run -it -p 8888:8888 -v $PWD:/workspace fast-ai-arm64 /bin/bash
Now in the docker container:
huggingface-cli login
#install MiniAI Library
cd course22p2/
pip install -e .
pip install jupyter_contrib_nbextensions
jupyter contrib nbextension install --user
jupyter nbextension enable spellchecker/main
jupyter notebook --port=8888 --no-browser --ip=0.0.0.0 --allow-root