mas178 / terraform-dl

Script to make play ground on AWS for deep learning

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Terraform Script to make playground for Deep Learning with GPU on AWS

Prerequisite

  • IAM (Access key and Secret access key)
  • Key pair (download *.pem file)

Procedure

git clone https://github.com/mas178/terraform-dl.git
cd https://github.com/mas178/terraform-dl.git
cp sample_terraform.tfvars terraform.tfvars
vi terraform.tfvars # aws_access_key, aws_secret_key, ssh_key_file, github_password を記載する
terraform apply

Frequent used commands

terraform
# make environment
terraform apply

# confirm current situation
terraform show
terraform show | grep public_dns

# destroy environment
terraform destroy
Login via SSH
ssh -i "~/.ssh/dl.pem" ubuntu@ec2-99-99-999-999.ap-northeast-1.compute.amazonaws.com
jupyter notebook
jupyter notebook --ip=0.0.0.0
Run data analysis
cd ~/Kaggle-Carvana-Image-Masking-Challenge
vi params.py
nohup python3 train.py && python3 test_submit.py kg submit submit/submission.csv.gz &

About

Script to make play ground on AWS for deep learning


Languages

Language:Shell 53.9%Language:HCL 46.1%