What is it?
Ray lets you run Python code across many machines almost as if it were one. AI teams use it to process big datasets, train models in parallel, tune settings and serve models.
Also known as: Ray Serve, Ray Train, Ray Tune, RLlib, KubeRay, distributed python, anyscale, Ray Data.
Technical definition
Core primitives: remote functions (tasks), stateful actors and a shared object store; libraries include Ray Data, Ray Train, Ray Tune, Ray Serve and RLlib. It integrates with PyTorch, vLLM and Kubernetes (KubeRay). Developed originally at UC Berkeley and commercially supported by Anyscale; Ray became a hosted project of the PyTorch Foundation (part of the Linux Foundation) in October 2025.
Entity type: framework · Freshness class: volatile.
When should I use it?
Consider when you need to scale Python ML beyond a single machine.
Implementation patterns
- Ray Data for parallel preprocessing/batch inference.
- Ray Train to wrap DDP/FSDP jobs.
- Ray Serve to deploy composed model pipelines.
- Autoscaling clusters on Kubernetes.
Technologies and frameworks
Commonly associated: Ray (Core, Data, Train, Tune, Serve), KubeRay, RLlib, vLLM integration. Names are examples of what exists, not recommendations, and projects change quickly.
Practical guide
- Start local.
- Parallelise the hot path.
- Scale to a cluster.
- Pin versions.
- Monitor with the dashboard.
Common failure modes
- Over-using it for workloads that fit on one machine.
- Serialisation overhead from large objects.
- Cluster misconfiguration and resource contention.
- Version mismatches across nodes.
Troubleshooting
- Tasks slow despite many workers — Check object transfer and task granularity; batch work.
- Node failures — Enable fault-tolerant settings and checkpointing.
Contrasted with
- MLflow — MLflow manages lifecycle metadata; Ray executes distributed compute.
Questions this page answers
- What is Ray?
- Ray vs Spark for ML?
- How do I scale training with Ray?
- What is Ray Serve?
Typical goals: scale a Python ML pipeline; serve models on a cluster.
Sources and verification
Status: not independently verified. This entry was authored on 2026-10-06 from general technical knowledge, without live checking of the sources below. Treat every source as a lead to confirm (identifier, title, authorship, current version) before publication or citation.
Freshness class: volatile — Products, versions, protocols, benchmarks, leaderboards, regulations and dates. Verify against the primary source before relying on specifics; re-review every 3 months.
Time-sensitive claims to verify before relying on them:
- Governance/foundation status and library maturity.
Canonical sources (unverified leads):
- Moritz et al., Ray: A Distributed Framework for Emerging AI Applications (2017) — arXiv:1712.05889
- Ray documentation — docs.ray.io