-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f17ee60
commit 2b45209
Showing
22 changed files
with
2,887 additions
and
1,133 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
html[data-theme="light"] { | ||
--sbt-color-announcement: rgb(125, 125, 125); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,29 @@ | ||
# Ray 简介 | ||
# Introduction to Ray | ||
|
||
Ray 是一个可扩展的计算框架。它最初为强化学习设计,之后逐渐演变成一个面向数据科学和人工智能的框架。 | ||
如 {numref}`ray-ecosystem` 所示,当前 Ray 主要由底层的 Ray Core 和上层的各类 Ray AIR (Artificial Intelligence Runtime) 生态组成:Ray Core 是一系列底层 API, 可以将 Python 函数或者 Python 类等计算任务横向扩展到多个计算节点上;在 Ray Core 之上,Ray 封装了一些面向数据科学和人工智能的库(Ray AIR),可以进行数据的处理(Ray Data)、模型训练(Ray Train)、模型的超参数调优(Ray Tune),模型推理服务(Ray Serve),强化学习(RLib)等。 | ||
Ray is a computing framework initially designed for reinforcement learning, gradually evolving into a framework catering to data science and artificial intelligence. | ||
|
||
As depicted in {numref}`ray-ecosystem`, Ray consists of the foundational Ray Core and various Ray AIR (Artificial Intelligence Runtime) components at the higher levels. Ray Core comprises a set of low-level APIs, enabling the horizontal scaling of Python functions or classes across multiple computing nodes. On top of Ray Core, Ray encapsulates several libraries tailored for data science and artificial intelligence within the Ray AIR ecosystem. These include functionalities for data processing (Ray Data), model training (Ray Train), hyperparameter tuning (Ray Tune), model serving (Ray Serve), reinforcement learning (RLib), and more. | ||
|
||
```{figure} ../img/ch-ray-core/ray.svg | ||
--- | ||
width: 800px | ||
name: ray-ecosystem | ||
--- | ||
Ray 生态 | ||
Ray ecosystem | ||
``` | ||
|
||
Ray Core 提供的 API 将 Python 任务横向扩展到集群上,最关键的 API 是两个计算接口和一个数据接口,如 {numref}`ray-core-apis` 所示。 | ||
Ray Core provides APIs that horizontally scale Python tasks across a cluster. The key APIs include two computation interfaces and one data interface, as illustrated in {numref}`ray-core-apis`. | ||
|
||
* **Task**: Python functions that can be scaled across the cluster. | ||
* **Actor**: Python classes that can be scaled across the cluster. | ||
* **Object**: Immutable distributed objects used for transferring data between Tasks and Actors. | ||
|
||
* 任务(Task):面向函数(Function)的接口,用于定义一个函数,该函数可以在集群中分布式地执行。 | ||
* 行动者(Actor):面向类(Class)的接口,用于定义一个类,该类可以在集群中分布式地执行。 | ||
* 对象(Object):分布式的对象,对象不可变(Immutable),用于在 Task 和 Actor 之间传递数据。 | ||
Ray AIR ecosystem is built upon the Ray Core APIs. | ||
|
||
```{figure} ../img/ch-ray-core/ray-apis.svg | ||
--- | ||
width: 800px | ||
name: ray-core-apis | ||
--- | ||
Ray Core 核心 API | ||
``` | ||
|
||
上层的各类生态均基于 Ray Core 的这些底层 API,结合各类人工智能应用编写而成。 | ||
Ray Core APIs | ||
``` |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.