2017-02-27 21:14:31 -08:00
|
|
|
Ray
|
|
|
|
===
|
|
|
|
|
2017-03-17 16:48:25 -07:00
|
|
|
*Ray is a flexible, high-performance distributed execution framework.*
|
2017-02-27 21:14:31 -08:00
|
|
|
|
2017-09-30 15:37:28 -07:00
|
|
|
Example Program
|
|
|
|
---------------
|
|
|
|
|
|
|
|
+------------------------------------------------+----------------------------------------------------+
|
|
|
|
| **Basic Python** | **Distributed with Ray** |
|
|
|
|
+------------------------------------------------+----------------------------------------------------+
|
|
|
|
|.. code:: python |.. code-block:: python |
|
|
|
|
| | |
|
|
|
|
| import time | import time |
|
|
|
|
| | import ray |
|
|
|
|
| | |
|
|
|
|
| | ray.init() |
|
|
|
|
| | |
|
|
|
|
| | @ray.remote |
|
|
|
|
| def f(): | def f(): |
|
|
|
|
| time.sleep(1) | time.sleep(1) |
|
|
|
|
| return 1 | return 1 |
|
|
|
|
| | |
|
|
|
|
| # Execute f serially. | # Execute f in parallel. |
|
|
|
|
| results = [f() for i in range(4)] | results = ray.get([f.remote() for i in range(4)]) |
|
|
|
|
+------------------------------------------------+----------------------------------------------------+
|
|
|
|
|
2017-02-27 21:14:31 -08:00
|
|
|
.. toctree::
|
2017-02-28 18:57:51 -08:00
|
|
|
:maxdepth: 1
|
2017-02-27 21:14:31 -08:00
|
|
|
:caption: Installation
|
|
|
|
|
2017-03-24 17:33:26 -07:00
|
|
|
install-on-ubuntu.rst
|
|
|
|
install-on-macosx.rst
|
|
|
|
install-on-docker.rst
|
|
|
|
installation-troubleshooting.rst
|
2017-02-27 21:14:31 -08:00
|
|
|
|
2017-03-04 23:06:02 -08:00
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
|
|
|
:caption: Getting Started
|
|
|
|
|
2017-03-17 16:48:25 -07:00
|
|
|
tutorial.rst
|
2017-03-04 23:06:02 -08:00
|
|
|
api.rst
|
2017-03-17 16:48:25 -07:00
|
|
|
actors.rst
|
2017-06-08 00:12:44 -07:00
|
|
|
using-ray-with-gpus.rst
|
2017-09-12 23:38:21 -07:00
|
|
|
rllib.rst
|
2017-11-23 11:31:59 -08:00
|
|
|
tune.rst
|
2017-09-16 15:41:52 -07:00
|
|
|
webui.rst
|
2017-03-04 23:06:02 -08:00
|
|
|
|
2017-02-27 21:14:31 -08:00
|
|
|
.. toctree::
|
2017-02-28 18:57:51 -08:00
|
|
|
:maxdepth: 1
|
2017-02-27 21:14:31 -08:00
|
|
|
:caption: Examples
|
|
|
|
|
2017-03-04 10:45:15 -08:00
|
|
|
example-hyperopt.rst
|
2017-03-11 21:16:36 -08:00
|
|
|
example-rl-pong.rst
|
2017-03-07 23:42:44 -08:00
|
|
|
example-policy-gradient.rst
|
2017-11-08 23:40:51 -08:00
|
|
|
example-parameter-server.rst
|
2017-03-07 01:07:32 -08:00
|
|
|
example-resnet.rst
|
2017-03-11 00:57:53 -08:00
|
|
|
example-a3c.rst
|
2017-03-11 15:30:31 -08:00
|
|
|
example-lbfgs.rst
|
2017-05-14 17:53:51 -07:00
|
|
|
example-evolution-strategies.rst
|
2017-11-09 20:49:06 -05:00
|
|
|
example-cython.rst
|
2017-11-27 21:38:35 -08:00
|
|
|
example-streaming.rst
|
2017-03-11 15:30:31 -08:00
|
|
|
using-ray-with-tensorflow.rst
|
2017-02-27 21:14:31 -08:00
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
|
|
|
:caption: Design
|
|
|
|
|
2017-03-27 21:52:17 -07:00
|
|
|
internals-overview.rst
|
|
|
|
serialization.rst
|
2017-08-19 17:38:14 -07:00
|
|
|
fault-tolerance.rst
|
2017-09-30 09:56:52 -07:00
|
|
|
plasma-object-store.rst
|
2017-12-01 11:41:40 -08:00
|
|
|
resources.rst
|
2017-02-27 21:14:31 -08:00
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
|
|
|
:caption: Cluster Usage
|
|
|
|
|
2017-05-19 11:36:48 -07:00
|
|
|
using-ray-on-a-cluster.rst
|
|
|
|
using-ray-on-a-large-cluster.rst
|
2017-02-28 18:57:51 -08:00
|
|
|
using-ray-and-docker-on-a-cluster.md
|
2017-05-22 15:20:20 -07:00
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:maxdepth: 1
|
|
|
|
:caption: Help
|
|
|
|
|
|
|
|
troubleshooting.rst
|
2017-09-09 10:21:51 -07:00
|
|
|
contact.rst
|