Skip to content

Commit

Permalink
Simplified SageMaker conda create command for pytorch v1 stable (#122)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
mattmcclean authored and jph00 committed Dec 16, 2018
1 parent fcdb2a3 commit 0d82fd5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/setup/sagemaker-create
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -43,7 +43,7 @@ cat > /home/ec2-user/SageMaker/.fastai/std-start-script.sh <<EOF
echo "Install the ipython fastai kernel"
cd /home/ec2-user/SageMaker
source activate envs/fastai
ipython kernel install --name 'fastai' --display-name 'Python 3' --user
python -m ipykernel install --name 'fastai' --display-name 'Python 3' --user
echo "Install jupyter nbextension"
source /home/ec2-user/anaconda3/bin/activate JupyterSystemEnv
pip install jupyter_contrib_nbextensions
Expand Down

0 comments on commit 0d82fd5

Please sign in to comment.