From 0d82fd5c160af55c26436e8202d0f2d7536d0edf Mon Sep 17 00:00:00 2001 From: Matt McClean Date: Sun, 16 Dec 2018 13:51:03 +0000 Subject: [PATCH] Simplified SageMaker conda create command for pytorch v1 stable (#122) * modified sagemaker docs to use CFN template with lifecycle config instead of manual steps * modified alt tags * added tab to img * added tab to img * added another number * indended table correctly * changed imgs path for sagemaker screenshots * rolled back sagemaker docs * added sagemaker create and start scripts * updated update sagemaker docs page * removed note about not saving models or data * merged * modified docs to create LC and IAM role with CFN * updated cfn filename * changed cfn stack name * updated sagemaker scripts * fixed bug in the sagemaker create script * updated sagemaker scripts to install jupyter nbextensions * start script now kills jupyter notebook server rather than server reboot * changed order of start scripts * updated to install stable pytorch * added fix to setup fastai kernel correctly --- docs/setup/sagemaker-create | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/setup/sagemaker-create b/docs/setup/sagemaker-create index f720e25e8e..b264f5d3cc 100644 --- a/docs/setup/sagemaker-create +++ b/docs/setup/sagemaker-create @@ -10,7 +10,7 @@ mkdir /home/ec2-user/SageMaker/.fastai && ln -s /home/ec2-user/SageMaker/.fastai # install the fastai library and dependencies echo "Install the fastai library and dependencies in new conda enviornment" cd /home/ec2-user/SageMaker -conda create -mqyp envs/fastai -c pytorch -c fastai python=3.6 jupyter pytorch-nightly fastai cuda92 torchvision-nightly +conda create -mqyp envs/fastai -c pytorch -c fastai fastai ipykernel echo "Finished installing environment" # clone the course notebooks @@ -27,7 +27,7 @@ if [ ! "$CONDA_DEFAULT_ENV" = "fastai" ]; then source activate envs/fastai fi echo "Updating fastai library" -conda update -y -c fastai fastai +conda install -y -c fastai fastai echo "Getting latest version of course" cd /home/ec2-user/SageMaker/course-v3 git pull @@ -43,7 +43,7 @@ cat > /home/ec2-user/SageMaker/.fastai/std-start-script.sh <