Ray
ray-project / ray
A distributed compute framework: scale Python tasks and actors across cores and machines; Ray Train / Serve / Data / Tune cover training, serving, data loading and hyperparameter search.
Why choose it
- The same API scales from a laptop to a cluster without starting with Kubernetes.
- Ray Serve composes multiple models and backends into an inference graph.
- Ray Tune parallelizes sweeps and stays framework-agnostic.
Not for
Not a Kubernetes replacement; cluster ops, networking and storage are still yours.
Scheduling overhead can outweigh gains on tiny jobs — prove it on one machine first.
Not a complete model-serving stack; GPU scheduling needs separate design.
Minimum setup
- pip install ray and run a remote task with ray.init().
- Then read a batch of files with Ray Data to check sharding and throughput.
- For serving, try Ray Serve and wrap one model as a deployment.
Dependencies and cost
Python; multi-node needs networking and cluster launch config; GPU jobs need CUDA drivers and VRAM scheduling; production wants object storage and monitoring.
License and usage boundaries
Apache-2.0; some ecosystem components and Ray Serve dependencies carry their own licences.
Open source is not automatically commercial-use friendly: GPL / AGPL are copyleft; code, model and output licenses are separate. Read the LICENSE and model card before launch, and involve legal when needed.
Alternatives and neighbors
- DeepSpeed — Scale / performance,Microsoft's large-model training library: ZeRO, offload, mixed precision and MoE training to make VRAM and throughput usable.
- verl — Scale / performance,ByteDance's RL training framework for LLM agents and reasoning tasks, with PPO/GRPO and multi-turn tool use.
- Megatron-LM — Scale / performance,NVIDIA’s large-scale Transformer training framework with tensor, pipeline, sequence and context parallelism, FP8, MoE and distributed checkpointing.
Next steps
- Open GitHub and read the README, LICENSE, latest release and issues first.
- Make an onboarding checklist for deployment dependencies, VRAM, data, network and permissions.
- Run a small sample first, then decide on production; never start with production data.