Ray is a unified framework to scale Python and AI code from a laptop to clusters. It combines a core distributed runtime with libraries for data, training, tuning, RL, and serving.
Overview
Ray provides a distributed runtime for Python with tasks, stateful actors, and cluster-wide immutable objects. The same program structure can run locally and scale out to machines, clouds, Kubernetes, or clusters without separate infrastructure layers.
Higher-level libraries cover scalable datasets, distributed training, hyperparameter tuning, reinforcement learning, and model serving. Ray Serve offers programmable serving where models and logic scale independently.
Monitoring includes a dashboard for clusters and applications plus a distributed debugger. It is general-purpose: varied Python workloads, including simulation and data processing, can use the same scaling model.
Installation is via pip for the core package. Documentation and community channels cover usage on single nodes and large GPU deployments for training and inference scenarios.
Key features
- Tasks, actors, and distributed objects
- Ray Data for ML datasets
- Distributed training library
- Hyperparameter tuning with Tune
- RLlib reinforcement learning
- Ray Serve model deployment
- Dashboard and distributed debugger
- Runs on cloud and Kubernetes
Use cases
- Scaling Python beyond one machine
- Distributed model training jobs
- Hyperparameter search at scale
- Deploying and serving ML models