Ideally, you set up your AWS account 3-4 days before the hackathon and increase SageMaker Instance Limits as described below. This is specifically important if you want to leverage a larger number of GPU-based cloud instances to run your training jobs.
- How to Create an S3 Bucket
- Review the Regions supported by Amazon SageMaker.
Step 4: Manage/Increase SageMaker Instance Limits (see detailed instructions here)
- Review the Default Limits for Amazon SageMaker Service Limits
- Request a Limit Increase if needed via the AWS Support Center
- Review the SageMaker Instance Pricing for an overview of supported instance types
-
Navigate to Amazon SageMaker (https://console.aws.amazon.com/sagemaker/) (make sure you're in the region of your choice shown in the top right menu of your screen)
-
Click on
Create notebook instance
- Choose a name for your notebook instance
- Select an Instance Type
- You might want to increase the volume size of the locally attached disk (i.e. to 250GB or 500GB)
- Select
Create a New IAM Role
- Select
Specific S3 Bucket
and type in the name of the S3 bucket you created earlier - Click
Create role
- Select
- In
Git repositories
you can choose to clone a public Git repo to this notebook instance- Just provide the public Git repo URL
-
You can leave everything else to default, and hit
Create notebook instance
-
Your notebook instance is now being created (this can take 2-3min)
-
Once the instance shows Status
InService
you can connect to it viaOpen Jupyter
orOpen JupyterLab
. -
This opens up your notebook environment with the cloned Git repo ready.
Note: You can also connect a Private GitHub or GitLab repo, just follow these instructions.
If you want to clone another Git repo:
-
Clone the Git repo using the following command (we are using this repo as an example again):
cd ~/SageMaker
git clone https://github.com/data-science-on-aws/ai4good-hackathon.git
- Sample TensorFlow Notebook using Distributed TensorFlow and SageMaker.
- Sample PyTorch Notebook using Distributed PyTorch and SageMaker.
- Sample MXNet Notebook using Distributed MXNet and SageMaker.
- To adapt a custom training script to SageMaker, please follow these instructions.