ray-project/ray: A high-performance distributed execution engine
2018-02-12 20:40:44 Author: github.com(查看原文) 阅读量:127 收藏

Join GitHub today

GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.

Sign up

README.rst

https://travis-ci.org/ray-project/ray.svg?branch=master https://readthedocs.org/projects/ray/badge/?version=latest

Ray is a flexible, high-performance distributed execution framework.

Ray comes with libraries that accelerate deep learning and reinforcement learning development:

  • Ray Tune: Hyperparameter Optimization Framework
  • Ray RLlib: A Scalable Reinforcement Learning Library

Installation

  • Ray can be installed on Linux and Mac with pip install ray.
  • To build Ray from source, see the instructions for Ubuntu and Mac.

Example Program

Basic Python Distributed with Ray
import time





def f():
    time.sleep(1)
    return 1

# Execute f serially.
results = [f() for i in range(4)]
import time
import ray

ray.init()

@ray.remote
def f():
    time.sleep(1)
    return 1

# Execute f in parallel.
object_ids = [f.remote() for i in range(4)]
results = ray.get(object_ids)

More Information

Getting Involved


文章来源: https://github.com/ray-project/ray
如有侵权请联系:admin#unsafe.sh