Skip to Content
Ray 分布式机器学习:利用Ray 进行大模型的数据处理、训练、推理和部署
book

Ray 分布式机器学习:利用Ray 进行大模型的数据处理、训练、推理和部署

by Max Pumperla, Edward Oakes, Richard Liaw
May 2024
Intermediate
252 pages
5h 31m
Chinese
China Machine Press
Content preview from Ray 分布式机器学习:利用Ray 进行大模型的数据处理、训练、推理和部署
16
|
1
Ray Core
6
1
Ray
开发者创建和维护的一组高级库,其中包括
Ray AIR
,用于在常见的
机器学习任务中使用库的统一
API
持续蓬勃发展的项目生态,
Ray
与许多知名项目建立了集成与合作关系,扩
展了前两层架构。
这里有很多内容需要展开,本章其余部分将逐一研究这三层架构。
Ray
的核心引擎及其
API
位于中心位置,其他所有内容都是基于该引擎和
API
构建的。
Ray
的数据科学库建立在
Ray Core
之上,并提供了特定领域的抽象
7
。在实践中,许多数据科学家可以直接使用这些库,而机器学习或平台工
程师可能大量依赖
Ray Core API
开发工具和插件。
Ray AIR
可以看作连接
Ray
库并处理常见任务的一致框架的封装结构。
Ray
的第三方集成不断增加,也为
经验丰富的开发者提供了很好的入口。接下来,我们逐一探究每个层级。
2
1.2
分布式计算框架
Ray
的核心是分布式计算框架。本节只讲解基本的术语,第
2
章会深入讨论
Ray
的架构。简而言之,
Ray
设置并管理计算机集群环境,以便用户可以在集群环
境中运行分布式任务。
Ray
集群由通过网络连接的节点组成。用户在位于主节
点(
head node
)的驱动程序(
driver
,即程序根节点)上编写程序。驱动程序可
以运行作业(
job
,即在集群节点上运行一系列任务。具体而言,作业的各个任
务在工作节点(
worker node
)上的工作进程(
worker process
)中运行。图
1.1
展示了
Ray
集群的基本结构。注意,我们目前不关注节点之间的通信 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

通过可观测性确保数据与AI的可靠性

通过可观测性确保数据与AI的可靠性

Barr Moses, Michael Segner

Publisher Resources

ISBN: 9787111753384