aws-deepracer-community/deepracer-for-cloud

Creates an AWS DeepRacing training environment which can be deployed in the cloud, or locally on Ubuntu Linux, Windows or Mac.

What it solves

DeepRacer-For-Cloud (DRfC) addresses the need for a simple way to run AWS DeepRacer reinforcement learning training and evaluation outside of the original AWS console service, which is no longer available as of December 2025. It provides scripts and workflows to set up training environments on cloud virtual machines (like AWS EC2 accelerated instances or Azure N-Series) or on local computers, making it easy to train and test models without relying on a managed service.

How it works

DRfC depends on pre-built Docker images from the community-maintained DeepRacer Simapp repository. It uses one container image for three roles:

  • Robomaker: runs the robotics simulation (via ROS and Gazebo)
  • Sagemaker: runs the model training job
  • RL Coach: bootstraps the Sagemaker container using the Sagemaker SDK and Sagemaker Local

It provides a set of command-line scripts (prefix dr-) for effortless training, evaluation, and management. Training can run multiple simulation instances per training job (N:1) to speed up progress, and multiple training sessions can run in parallel if hardware allows. Nodes can be connected together in Docker Swarm mode to combine computing power. Evaluation is independent of training and can be saved as MP4 to S3. Training metrics and trace files are stored to S3, with optional CloudWatch integration and exposure of internal Robomaker logs.

Who it's for

This project is for developers and hobbyists who want to train AWS DeepRacer models, either on cloud GPUs (like EC2 g4dn.2xlarge with NVIDIA T4) or on CPU-only instances (Intel or ARM/Graviton). It supports Ubuntu 22.04–26.04 with NVIDIA GPUs (more than 8GB VRAM recommended for GPU training) and ARM64 CPU-only training. macOS is experimentally supported in CPU-only mode via Colima. Users should be comfortable with Docker and basic Linux/command-line usage.

Highlights

  • Simple setup: automatically pulls the correct CPU or GPU Docker image during installation
  • Multiple modes: Time Trial, Object Avoidance, Head-to-Bot
  • Running multiple Robomaker instances per Sagemaker job for faster training
  • Parallel training sessions and multi-node swarm mode to combine hardware
  • Independent evaluation with MP4 saving
  • Logging to S3 and optional CloudWatch integration
  • Works on both Docker Swarm and Docker Compose
  • Can upload locally trained models to AWS DeepRacer Console models (though the original console has been replaced by DeepRacer-on-AWS, DRfC is independent of AWS service changes)

Related

  • Project
  • Project
  • Dispatch
  • Project
  • Project