liveBook · Manning

Ray

Ray is an open-source distributed-computing framework for scaling Python, artificial-intelligence, and machine-learning applications across processes, machines, and clusters.

How 2 Manning books explain it

LLMs in Production

Ray is an open-source framework for executing distributed and parallel Python applications across clusters.

How it is used
Distributes concurrent machine-learning and high-performance workloads across multicore CPUs or cluster nodes.
How deep it goes
Defines tasks, actors, decorators, resources, and clusters, but stops short of detailed cluster operations.
Examples
Compares ten one-second function calls run sequentially with Ray remote calls and collected futures.
What you can do after
Build it from scratch by initializing Ray, adding @ray.remote, collecting results, and shutting the runtime down.

Read how LLMs in Production explains Ray →

Transformers in Action

Ray is an open-source framework for scaling Python and machine-learning applications across distributed computing resources.

How it is used
Scales LLM training, data processing, and hyperparameter searches across distributed computing resources.
How deep it goes
Explains Ray Data, TorchTrainer, Tuner, scheduling, checkpoints, and model publication through executable workflow listings.
Examples
Uses SuperGLUE CommitmentBank classification, Ray-native dataset conversion, TorchTrainer scaling, ASHA search, checkpoint loading, and Hub publication.
What you can do after
Build it from scratch by converting datasets, distributing training, tuning configurations, selecting checkpoints, and loading trained models.

Read how Transformers in Action explains Ray →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.