This file contains hidden or 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
| export IMAGE_FAMILY="pytorch-latest-cu92" | |
| export ZONE="us-west1-b" | |
| export INSTANCE_NAME="my-instance" | |
| gcloud compute instances create $INSTANCE_NAME \ | |
| --zone=$ZONE \ | |
| --image-family=$IMAGE_FAMILY \ | |
| --image-project=deeplearning-platform-release \ | |
| --maintenance-policy=TERMINATE \ | |
| --accelerator='type=nvidia-tesla-v100,count=1' \ | |
| --metadata='install-nvidia-driver=True' |
This file contains hidden or 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
| export IMAGE_FAMILY="pytorch-latest-gpu" | |
| export ZONE="us-west1-b" | |
| export INSTANCE_NAME="pytorch-colab-backend" | |
| gcloud compute instances create $INSTANCE_NAME \ | |
| --zone=$ZONE \ | |
| --image-family=$IMAGE_FAMILY \ | |
| --image-project=deeplearning-platform-release \ | |
| --maintenance-policy=TERMINATE \ | |
| --accelerator='type=nvidia-tesla-v100,count=1' \ | |
| --metadata='install-nvidia-driver=True' |
This file contains hidden or 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
| gssh pytorch-colab-backend -- -L 8080:localhost:8080 |
This file contains hidden or 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
| gssh () { | |
| gcloud compute ssh $@ | |
| } |
This file contains hidden or 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
| ginstance_delete pytorch-colab-backend |
This file contains hidden or 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
| ginstance_delete () { | |
| gcloud compute instances delete --quiet $@ | |
| } |
This file contains hidden or 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
| export IMAGE_FAMILY="tf-latest-cu92" | |
| export ZONE="us-west1-b" | |
| export INSTANCE_NAME="tf-with-anaconda" | |
| gcloud compute instances create $INSTANCE_NAME \ | |
| --zone=$ZONE \ | |
| --image-family=$IMAGE_FAMILY \ | |
| --image-project=deeplearning-platform-release \ | |
| --maintenance-policy=TERMINATE \ | |
| --accelerator='type=nvidia-tesla-v100,count=1' \ | |
| --metadata='install-nvidia-driver=True' |
This file contains hidden or 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
| export ANACONDA_URL=https://repo.anaconda.com/archive/Anaconda3-5.2.0-Linux-x86_64.sh | |
| export ANACONDA_INSTALLER=anaconda_installer.sh | |
| wget $ANACONDA_URL -O $ANACONDA_INSTALLER | |
| chmod +x $ANACONDA_INSTALLER | |
| ./$ANACONDA_INSTALLER -b | |
| echo "export PATH=$PATH:$HOME/anaconda3/bin" >> $HOME/.bashrc | |
| source $HOME/.bashrc |
This file contains hidden or 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
| conda create -n tf_p35 -y python=3.5 |
This file contains hidden or 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
| BINARY_NAME=`ls /opt/deeplearning/binaries/tensorflow/ | grep cp35 | grep gpu` | |
| # OR FOR CPU IMAGES: | |
| # BINARY_NAME=`ls /opt/deeplearning/binaries/tensorflow/ | grep cp35 | grep -v gpu` | |
| pip install /opt/deeplearning/binaries/tensorflow/$BINARY_NAME |