Before training your algorithm on Sagemaker platform, it is important to make sure it is set up properly. Please refer to programming_guide.md in this repository for instructions.
-
Install Requirements (will be most likely taken care of by the dev-container)
- Docker
- AWS Command-Line Interface (AWS CLI)
- VS Code
-
Login into AWS and ECR
lin- anywhere from the terminal in the dev-container- Open up the AWS SSO that you use to sign in >> AWS Account >> Command line or programmatic access >> Option 3
- The region should be set to
us-east-1 - The format should be set to
json - Check instruction 2.2 for session token
-
Copy code
copy <absolute path to your code>
-
Build and push
Note:- If an already built image exists in the ECR, you can speed up this step by running
pull <unique identifier for your image>first.build_and_push <unique identifier for your image>
-
Alternatively, you can build and push your image to ECR in different steps
Note:- If an already built image exists in the ECR, you can speed up this step by running
pull <unique identifier for your image>first.build <unique identifier for your image>push <unique identifier for your image used in step 5.1>
- Clone the SagemakerNotebook repo into your Sagemaker instance
- Follow the instructions in the README
If you run into any issues, feel free to reach out to Ritik.