Skip to content

Commit 8bf4927

Browse files
authored
Merge pull request #106 from aws-solutions-library-samples/heat-jr-patch-1
Update README.md
2 parents 7714924 + bda052a commit 8bf4927

File tree

1 file changed

+60
-3
lines changed

1 file changed

+60
-3
lines changed

README.md

Lines changed: 60 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,65 @@
1-
## AWS Deepracer Workshop Lab Github
1+
## ReadMe - Guidance for Training an AWS DeepRacer Model Using Amazon SageMaker
2+
3+
**Table of Contents**
4+
5+
* Overview
6+
* Cost
7+
* Prerequisites
8+
* Cleanup
9+
10+
**Overview**
11+
12+
The AWS DeepRacer console is optimized to provide a user-friendly introduction to reinforcement learning to developers new to machine learning. As developers go deeper in their machine learning journey, they need more control and more options for further tuning and refining their reinforcement learning models for racing with AWS DeepRacer. This guidance is intended to provide developers with a deep dive on how they can use an Amazon SageMaker Notebook instance to directly train and evaluate DeepRacer models with full control, including: augmenting the simulation environment, manipulating inputs to the neural network, modifying neural network architecture, running distributed rollouts, debugging their model.
13+
14+
**Cost**
15+
16+
You are responsible for the cost of the AWS services used while running this Guidance.
17+
18+
As of 10/30/2023, the cost for running this guidance with the default settings in the US East (N. Virginia) is approximately $31.27 per month for training 5 models, 1 hour each, with training spread across 5 days. Remember to shut down your SageMaker Notebook instance each day.
19+
20+
21+
| Service | Assumptions | Cost Per Month |
22+
| ------------- | ------------- | ------------- |
23+
| Amazon SageMaker Studio Notebook | 1 Notebook Instance used for 25 hours | $9.97 |
24+
| Amazon SageMaker Training | 5 jobs per month x 1 instance per job x 1 hour per job, 32 GB SSD storage | $6.87 |
25+
| AWS Robo Maker 25 Simulation Unit Hours (SU-Hours) | $10 |
26+
| Amazon CloudWatch | 5GB logs storage | $2.52 |
27+
| Amazon Simple Storage Service | 10GB data, 1,000 PUT, 1000 GET requests | $0.26 |
28+
| Amazon Kinesis Video Streams | 5 hours data Ingestion per day, 5 days storage | $1.65 |
29+
| VPC | All traffic is flowing through a Gateway VPC Endpoint | 0 |
30+
| | | 31.27 |
31+
32+
**Prerequisites (required)**
33+
34+
This guidance is targeted towards those familiar with the AWS Console and AWS DeepRacer Service. The users are expected to have a basic understanding of AWS DeepRacer, SageMaker, RoboMaker services, and general Machine Learning concepts. It guides users to utilize these services directly to train, and tune their models to a higher level of performance. It should be run in US East N.Virginia region.
35+
36+
37+
**Architecture Overview**
38+
39+
<img width="676" alt="architecture-for-training-an-aws-deepracer-model-using-amazon-sagemaker" src="https://github.com/aws-solutions-library-samples/guidance-for-training-an-aws-deepracer-model-using-amazon-sagemaker/assets/58491864/86a36774-5b60-4352-bd76-57634ec38c88">
40+
41+
**Deployment Steps (required)**
42+
43+
1. User logs in to AWS account, creates an Amazon SageMaker Notebook instance to train a Reinforcement Learning (RL) model.
44+
1. Amazon SageMaker Notebook stores all files required for the training and evaluation jobs in Amazon Simple Storage Service (S3) and as images in Amazon Elastic Container Registry (Amazon ECR).
45+
1. Amazon SageMaker downloads images from Amazon ECR and starts a model training job.
46+
1. AWS RoboMaker downloads images from Amazon ECR and creates a racing simulation environment for AWS DeepRacer.
47+
1. AWS RoboMaker starts data generation for model training. Training data generated by is a collection of tuples comprising of agent initial state, action, new state, reward.
48+
1. AWS RoboMaker sends pre configured batches of these tuples called iterations to Amazon S3 and writes a key to Amazon SageMaker container.
49+
1. Amazon SageMaker Training picks up the data file from Amazon S3 based on the key and trains the model on this dataset. Amazon SageMaker uploads the next version of the model to Amazon S3 that is picked up by AWS Robomaker.
50+
1. Steps 5 to 7 are iterative. It ends when the training job duration ends. Training job duration can be configured in Amazon Sagemaker Notebook code using parameter job_duration_in_seconds.
51+
1. AWS RoboMaker streams live training and evaluation jobs to Amazon Kinesis Video Streams. Users can view model training and evaluation in real time on Amazon Kinesis Video Streams.
52+
1. All training logs, evaluation logs, service calls, and operational metrics can be viewed in Amazon CloudWatch console.
53+
54+
55+
56+
57+
58+
59+
60+
261

3-
This Github contains workshop labs that have presented at a number of AWS DeepRacer events. Please always refer to the latest workshop as we keep making changes.
462

5-
The latest [workshop lab](https://catalog.us-east-1.prod.workshops.aws/workshops/6fc80a18-8c5b-4a59-8d0e-6fda7c02acda/en-US) is run as part of AWS DeepRacer events conducted in 2022.
663

764

865

0 commit comments

Comments
 (0)