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 进行大模型的数据处理、训练、推理和部署
12
|
1
1.1 Ray
是什么
Ray
是为
Python
数据科学社区构建的灵活的分布式计算框架,它满足所有分布
式计算需求,广受欢迎。
Ray
易于入门,并且符合
Python
编程简单便捷的特点。
Ray
的核心
API
非常精
简,有助于用户高效创建分布式应用程序。用户可以在笔记本计算机上高效地
并行化
Python
程序,几乎不需要任何修改即可将本地测试过的代码扩展到集群
上。
Ray
的高级库易于配置,并且库与库之间支持无缝连接。其中一些库,比
Ray
的强化学习库,无论是否以分布式的方式使用,都有希望成为独立项目。
虽然
Ray
的核心是用
C++
构建的,但它从一开始就是以
Python
为主
1
的框架,
支持集成许多重要的数据科学工具,并且持续增长的
Python
生态也为
Ray
提供
助力。
1
分布式
Python
并不是新出现的,
Ray
也不是该领域的首个框架(也不会是最后
一个),但
Ray
提供了优于其他框架的功能。组合使用
Ray
的模块并进行自定
义,就能轻松完成复杂的机器学习任务,不使用
Ray
则很难实现。
Ray
大大简
化了分布式计算,你可以利用熟悉并想要使用的
Python
工具灵活执行复杂的计
算任务。换句话说,通过学习
Ray
,你将掌握灵活的分布式
Python
机器学习。
本书目标就是展示
Ray
的分布式计算功能。
在本章中,你将初步了解
Ray
的功能。我们将讨论构成
Ray
的三层架构,即内
核、库和生态。本章首先通过代码示例展示
Ray
的特点,读者可以将本章作为
全书的导览,后面的章节将详细介绍
Ray
API
和组件。
1.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