User Guides¶
This section explains how to use Ray’s key concepts to build distributed applications.
If you’re brand new to Ray, we recommend starting with the walkthrough.
- Tasks
- Passing object refs to remote functions
- Waiting for Partial Results
- Multiple returns
- Cancelling tasks
- More about Ray Tasks
- Specifying Required Resources
- GPU Support
- Nested Remote Functions
- Fault Tolerance
- Scheduling
- Task Design Patterns
- Pattern: Tree of tasks
- Pattern: Map and reduce
- Pattern: Using ray.wait to limit the number of in-flight tasks
- Antipattern: Closure capture of large / unserializable object
- Antipattern: Too fine-grained tasks
- Antipattern: Unnecessary call of ray.get in a task
- Antipattern: Calling ray.get in a loop
- Antipattern: Processing results in submission order using ray.get
- Antipattern: Fetching too many results at once with ray.get
- Antipattern: Redefining task or actor in loop
- Antipattern: Accessing Global Variable in Tasks/Actors
- Actors
- Specifying required resources
- Calling the actor
- Passing Around Actor Handles
- FAQ: Actors, Workers and Resources
- More about Ray Actors
- Objects
- Placement Groups
- Environment Dependencies
- Concepts
- Preparing an environment using the Ray Cluster launcher
- Runtime environments
- Remote URIs
- Hosting a Dependency on a Remote Git Provider: Step-by-Step Guide
- Debugging
- More Topics