2017-02-27 21:14:31 -08:00
|
|
|
Ray
|
|
|
|
===
|
|
|
|
|
2018-01-19 10:14:34 -08:00
|
|
|
.. raw:: html
|
|
|
|
|
|
|
|
<embed>
|
|
|
|
<a href="https://github.com/ray-project/ray"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://camo.githubusercontent.com/365986a132ccd6a44c23a9169022c0b5c890c387/68747470733a2f2f73332e616d617a6f6e6177732e636f6d2f6769746875622f726962626f6e732f666f726b6d655f72696768745f7265645f6161303030302e706e67" alt="Fork me on GitHub" data-canonical-src="https://s3.amazonaws.com/github/ribbons/forkme_right_red_aa0000.png"></a>
|
|
|
|
</embed>
|
|
|
|
|
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
|
|
|
|
2018-01-19 10:14:34 -08:00
|
|
|
View the `codebase on GitHub`_.
|
|
|
|
|
|
|
|
.. _`codebase on GitHub`: https://github.com/ray-project/ray
|
|
|
|
|
2017-12-06 18:17:51 -08:00
|
|
|
Ray comes with libraries that accelerate deep learning and reinforcement learning development:
|
|
|
|
|
2018-01-01 11:10:44 -08:00
|
|
|
- `Ray.tune`_: Hyperparameter Optimization Framework
|
|
|
|
- `Ray RLlib`_: A Scalable Reinforcement Learning Library
|
2017-12-06 18:17:51 -08:00
|
|
|
|
|
|
|
.. _`Ray.tune`: tune.html
|
|
|
|
.. _`Ray RLlib`: rllib.html
|
|
|
|
|
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-11-23 11:31:59 -08:00
|
|
|
tune.rst
|
2017-12-06 18:17:51 -08:00
|
|
|
rllib.rst
|
2018-01-01 11:10:44 -08:00
|
|
|
rllib-dev.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-12-15 23:56:39 -08:00
|
|
|
autoscaling.rst
|
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
|