Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

update_sagemaker.md 2.5 KB

You have to be logged in to leave a comment. Sign In
title keywords sidebar
Returning to Sagemaker <nil> home_sidebar

To return to your notebook, the basic steps will be:

  1. Start your instance
  2. Update the course repo
  3. Update the fastai library
  4. When done, shut down your instance

Step by step guide

Start your instance

Log in to the AWS console then click on the Sagemaker link (it should be in your history, otherwise find it in the 'Services' on the left or type sagemaker in the search bar). Once on this page, select 'Notebook instances' on the left menu.

Tick the box of the notebook you want to start, then click on 'Start'.

You will have to wait a little bit for your instance to be ready while the light under instance state is orange.

pending

When it turns green, just click on 'Open' and you'll be back to your notebooks.

ready

Update the course repo

To update the course repo, launch a new terminal from the jupyter notebook menu.

This will open a new window, in which you should run those two instructions:

cd SageMaker/course-v3
git pull

This should give you the latest of the course notebooks. If you modified some of the notebooks in course-v3/nbs directly, GitHub will probably throw you an error. You should type git stash to remove your local changes. Remember you should always work on a copy of the lesson notebooks.

Update the fastai library

To update the fastai library, open the terminal like before and type

source activate SageMaker/envs/fastai
conda install -c fastai fastai

Note that you have to be in the home directory (the one the terminal puts you in when you create it) for this to work.

Stop your instance

When you finish working you must go back to your AWS console and stop your instance manually to avoid getting extra charges. Just pick the notebook you want to stop and click on the 'Stop' button next to its name.

stop

NOTE: you will be charged for the time that your instance is running.

Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...