AI Cloud Architect

Scale distributed AI workloads with Ray and Anyscale on Amazon EC2

AWSBlog post by Sindhura PalakodetyAWS Architecture Blog

Building multimodal AI/ML pipelines on Amazon EC2 means scaling distributed compute, controlling costs across stages, and keeping up with new models and hardware. This post shows how the Ray-powered Anyscale application on AWS helps you deploy Ray across three compute options and scale from prototype to production without code changes.

Read the original (opens the source's page in a new tab)

AI: Summary

What it is

Anyscale's managed Ray service can run on Amazon EC2 through EC2, EKS or SageMaker HyperPod, mapping each AI pipeline stage to different instance types with the same code.

Who it is for

Teams running multimodal AI/ML pipelines on EC2 who need to scale Ray workloads from prototype to production while controlling cost.

Key points

  • Deployment options: EC2 with EFA, Amazon EKS with EFA, or SageMaker HyperPod
  • Spot workers with fallback to On-Demand; Capacity Blocks reserve 1-64 accelerated instances for up to six months
  • AWS says Spot can cut preprocessing costs by up to 90% and Graviton-based PyTorch inference up to 50%

The same at other vendors

Different approach

GoogleHow-to

Run Ray on TPU, Part 1: The foundations

AI:Runs Ray for distributed AI on Google's TPUs via GKE with the Ray Operator, a self-run route rather than a managed Anyscale service

Timeline

  1. Explained inUse Amazon SageMaker HyperPod and Anyscale for next-generation distributed computing · AWS · How-to
  2. This postScale distributed AI workloads with Ray and Anyscale on Amazon EC2

Go deeper