Getting Started Guide#

This guide gives a quick tour of Ray’s features.

Starting a local Ray cluster#

To get started, install, import, and initialize Ray. Most of the examples in this guide are based on Python, and some examples use Ray Core in Java.

Python

To use Ray in Python, install it with

pip install ray

Java

To use Ray in Java, first add the ray-api and ray-runtime dependencies in your project.

pip install ray Successfully installed ray python import ray; ray.init() ... INFO worker.py:1509 -- Started a local Ray instance. View the dashboard at 127.0.0.1:8265 ...

To build Ray from source or with Docker, see the detailed installation instructions.

Ray AI Runtime Quick Start#

To use Ray’s AI Runtime install Ray with the optional extra air packages:

pip install "ray[air]"

Learn more about Ray AIR

Ray Libraries Quick Start#

Ray has a rich ecosystem of libraries and frameworks built on top of it. Simply click on the dropdowns below to see examples of our most popular libraries.

Ray Core Quick Start#

Ray Core provides simple primitives for building and running distributed applications. Below you find examples that show you how to turn your functions and classes easily into Ray tasks and actors, for both Python and Java.

Ray Cluster Quick Start#

You can deploy your applications on Ray clusters, often with minimal code changes to your existing code. See an example of this below.

Debugging and Monitoring Quick Start#

You can use built-in observability tools to monitor and debug Ray applications and clusters.

Learn More#

Here are some talks, papers, and press coverage involving Ray and its libraries. Please raise an issue if any of the below links are broken, or if you’d like to add your own talk!

Blog and Press#

Talks (Videos)#

Slides#

Papers#