README.rst 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. .. image:: https://github.com/ray-project/ray/raw/master/doc/source/images/ray_header_logo.png
  2. .. image:: https://travis-ci.com/ray-project/ray.svg?branch=master
  3. :target: https://travis-ci.com/ray-project/ray
  4. .. image:: https://readthedocs.org/projects/ray/badge/?version=latest
  5. :target: http://ray.readthedocs.io/en/latest/?badge=latest
  6. .. image:: https://img.shields.io/badge/pypi-0.7.1-blue.svg
  7. :target: https://pypi.org/project/ray/
  8. |
  9. **Ray is a fast and simple framework for building and running distributed applications.**
  10. Ray is easy to install: ``pip install ray``
  11. Example Use
  12. -----------
  13. +------------------------------------------------+----------------------------------------------------+
  14. | **Basic Python** | **Distributed with Ray** |
  15. +------------------------------------------------+----------------------------------------------------+
  16. |.. code-block:: python |.. code-block:: python |
  17. | | |
  18. | # Execute f serially. | # Execute f in parallel. |
  19. | | |
  20. | | @ray.remote |
  21. | def f(): | def f(): |
  22. | time.sleep(1) | time.sleep(1) |
  23. | return 1 | return 1 |
  24. | | |
  25. | | |
  26. | | ray.init() |
  27. | results = [f() for i in range(4)] | results = ray.get([f.remote() for i in range(4)]) |
  28. +------------------------------------------------+----------------------------------------------------+
  29. Ray comes with libraries that accelerate deep learning and reinforcement learning development:
  30. - `Tune`_: Hyperparameter Optimization Framework
  31. - `RLlib`_: Scalable Reinforcement Learning
  32. - `Distributed Training <http://ray.readthedocs.io/en/latest/distributed_training.html>`__
  33. .. _`Tune`: http://ray.readthedocs.io/en/latest/tune.html
  34. .. _`RLlib`: http://ray.readthedocs.io/en/latest/rllib.html
  35. Installation
  36. ------------
  37. Ray can be installed on Linux and Mac with ``pip install ray``.
  38. To build Ray from source or to install the nightly versions, see the `installation documentation`_.
  39. .. _`installation documentation`: http://ray.readthedocs.io/en/latest/installation.html
  40. More Information
  41. ----------------
  42. - `Documentation`_
  43. - `Tutorial`_
  44. - `Blog`_
  45. - `Ray paper`_
  46. - `Ray HotOS paper`_
  47. .. _`Documentation`: http://ray.readthedocs.io/en/latest/index.html
  48. .. _`Tutorial`: https://github.com/ray-project/tutorial
  49. .. _`Blog`: https://ray-project.github.io/
  50. .. _`Ray paper`: https://arxiv.org/abs/1712.05889
  51. .. _`Ray HotOS paper`: https://arxiv.org/abs/1703.03924
  52. Getting Involved
  53. ----------------
  54. - `ray-dev@googlegroups.com`_: For discussions about development or any general
  55. questions.
  56. - `StackOverflow`_: For questions about how to use Ray.
  57. - `GitHub Issues`_: For reporting bugs and feature requests.
  58. - `Pull Requests`_: For submitting code contributions.
  59. .. _`ray-dev@googlegroups.com`: https://groups.google.com/forum/#!forum/ray-dev
  60. .. _`GitHub Issues`: https://github.com/ray-project/ray/issues
  61. .. _`StackOverflow`: https://stackoverflow.com/questions/tagged/ray
  62. .. _`Pull Requests`: https://github.com/ray-project/ray/pulls