@PyTorch: Why are increasingly complex AI workloads a fit for Ray? Ion Stoica (@istoica05, @UCBerkeley / @anyscalecompute) explai…
Summary
Ion Stoica 在 PyTorchCon North America 2026 的主题演讲中讲述了 Ray 从强化学习框架演进为复杂 AI 工作负载分布式底座的历程,并宣布未来一年将用 Rust 重写核心组件、深化 Kubernetes 集成以及推出厂商中立的 SIGA Accelerators 路线图。
View Cached Full Text
Cached at: 11/19/26, 11:47 PM
Why are increasingly complex AI workloads a fit for Ray? Ion Stoica (@istoica05, @UCBerkeley / @anyscalecompute) explains in this clip from #PyTorchCon North America 2026.
Ion traces the shift from scaling pre-training to post-training and multimodal models, describing the increase in workload complexity, hardware heterogeneity, and scale. He connects those demands to Ray’s design as a distributed framework originally built for reinforcement learning.
In the full keynote, Ion tells Ray’s story, discusses improvements across data processing, training, serving, and post-training, and outlines plans for closer integration with Kubernetes and improved support for accelerators.
Watch the full keynote, “Ray’s Evolution to Support AI Workloads”: https://youtu.be/HXxV3GcMtyA?si=7f-HuRKrHBIoh9PL…
TL;DR:Ion Stoica 讲述 Ray 的故事——从强化学习起步,到成为复杂 AI 工作负载的分布式底座,以及未来一年用 Rust 重写核心组件的计划。
Ray 是什么
Ray 是一个用于扩展复杂 AI 工作负载的分布式框架。它位于 Kubernetes 等编排平台之上、训练与推理引擎之下,负责集成并帮助扩展这些引擎;在 Ray 之上则是各类工作负载框架,比如数据处理框架和 RL 框架。
故事的开端:2015 年的强化学习
故事始于 2015 年秋天,两位机器学习专业的学生 Philip 和 Robert 选修了 Ion Stoica 的研究生课程,原因是他们想学习如何为自己的研究构建工具——当时的工具既难用,也无法扩展。
彼时强化学习领域正值盛况:
- DeepMind 和 OpenAI 展示了计算机可以在游戏中达到专家水平的表现
- Google 展示了利用强化学习将数据中心冷却能耗降低 40%
- 2016 年 AlphaGo 击败围棋世界冠军,震撼世界
于是团队自然而然地为强化学习构建了 Ray,以及构建在 Ray 之上的 RLlib 库——它最终成为当时最成功的强化学习库。
不过,这项工作“有些超前于时代“,因为 RL 的普及比较慢。幸运的是,RL 是一种非常通用的工作负载,为 RL 构建的 Ray 意味着它可以支持任何其他 AI 工作负载。
AI 的三个阶段与 Ray 的增长
第一阶段:稠密神经网络
模型小到可以放在单个节点上,规模相对较小。这类工作负载对 Ray 完整灵活性的利用有限,这也反映在 Ray 相对温和的增长上。
第二阶段:生成式 AI
以 ChatGPT 的发布和扩展预训练的成功为标志。模型规模不断增大,不再能放进单个 GPU,整体规模大幅增加,Ray 的相关性随之提升——OpenAI 使用 Ray 训练了 ChatGPT。采用速度加速,下载量在两年内增长了约三倍。
第三阶段:后训练与多模态
到 2024 年底,预训练的 scaling law 放缓了。作为回应,研究者转向了后训练和多模态模型,导致工作负载复杂性、硬件异构性和规模的大幅增长。
而这正是构建 Ray 的初衷——越复杂,Ray 越闪耀。这同样体现在增长上:下载量在短短一年半内增长了近 10 倍。
另一个数据点:如今几乎每一个开源强化学习框架都是构建在 Ray 之上的。
过去一年的 Ray:由 AI 复杂性驱动的改进
Ray 的改进直接由 AI 工作负载的复杂性和扩展需求所驱动。
基础层
- 支持拓扑感知调度,能够支持 NVL72 等机架级系统和 DPU 切片
- GPU 间传输速度提升 7.5 倍
- Actor 启动速度提升 10 倍
数据处理
- 扩展能力提升 10 倍
- 与 Delta Lake / Apache Iceberg 集成,将 TCO 降低 3 倍
训练
- 原生集成了文件存储(FSD)
- 支持 TPU 上的弹性扩展
推理服务
- 吞吐量提升 40 倍,消除了 Python 瓶颈
- 对于代码密集型工作负载,吞吐量提升 25 倍
后训练与环境
- 训练实例与推理实例之间的权重传输速度提升 10 倍
- 可以在 30 秒内启动 100,000 个沙箱
未来一年:Ray 有史以来最大的变革
团队预计未来一年将迎来 Ray 有史以来最大的变革,包含三项计划:
- 用 Rust 重写 Ray 的主要组件,以提升扩展能力和性能
- 与周围生态系统更紧密地集成,尤其是与 Kubernetes 的集成,以提高资源利用率和端到端可观测性
- 与硬件厂商更紧密地合作,改善 Ray 对加速器的支持
关于第二项,当天晚些时候 Google 的 Yago Mloud 与 Ion Stoica 将共同展示合作成果并提供更多细节。
重磅宣布:SIGA Accelerators
Ion Stoica 在演讲最后宣布了 SIGA Accelerators——一项新的努力,旨在为 Ray 加速器建立厂商中立的路线图,并欢迎大家加入。
Source: Why are increasingly complex AI workloads a fit for Ray? — Ion Stoica @PyTorch
Similar Articles
@PyTorch: Ray began with reinforcement learning. At #PyTorchCon 2026, Ion Stoica @istoica05 (@UCBerkeley / @anyscalecompute trace…
At PyTorchCon 2026, Ion Stoica traces Ray's evolution from reinforcement learning into the distributed compute layer behind modern AI workloads, highlighting topology-aware scheduling for TPU pods and Blackwell GPUs, NIXL GPU transfers, TorchFT integration, and future plans to rewrite core components in Rust and deepen Kubernetes integration.
@PyTorch: As more teams scale open source AI on secure, governed infrastructure, Ray has become critical across the full AI lifec…
PyTorch blog publishes a Ray-focused guide to PyTorch Conference North America 2026 in San Jose, highlighting keynotes and sessions on co-evolving Ray and Kubernetes, elastic training stacks, and scalable RL from speakers at Anyscale, Google, LinkedIn, Pinterest, and Uber.
@PyTorch: Meet @istoica05, @UCBerkeley Professor and @anyscalecompute Executive Chairman, taking the keynote stage at #PyTorchCon…
PyTorch Conference North America 2026 (Oct 20-21, San Jose, CA) announces UC Berkeley Professor and Anyscale Executive Chairman Ion Stoica as a keynote speaker, covering how Ray and Kubernetes are evolving together for the AI era.
@PyTorch: Today, PyTorch Foundation project, Ray is announcing the Special Interest Group (SIG) for Ray on Accelerators. Ray alre…
The PyTorch Foundation project Ray announced a Special Interest Group (SIG) for Ray on Accelerators, uniting hardware vendors, cloud providers, and the Ray community around a vendor-neutral roadmap covering hardware-aware testing, topology-aware scheduling, and Ray Direct Transport.
@robertnishihara: If you want the talk version, Ion gave a great talk about gaps in agentic software engineering at Ray Summit. https://y…
This article summarizes Ion Stoica's talk at Ray Summit, exploring the three key gaps in requirements, environment, and evaluation faced by AI programming agents in software engineering, and how these issues lead to reward hacking and hallucinations.