Latent Space: The AI Engineer Podcast - 为何AI基础设施必须为代理体验而演进——Modal首席技术官Akshat Bubna 封面

为何AI基础设施必须为代理体验而演进——Modal首席技术官Akshat Bubna

Why AI Infrastructure must evolve for Agent Experience — Akshat Bubna, Modal CTO

本集简介

我们一直开展了一项“代理云”系列调查,涵盖了所有领先的推理/计算/云服务商,从Databricks到Daytona,再到Railway,甚至更早的E2B。但现在,我们非常兴奋地宣布,本系列将回归Modal——它刚刚完成了高达3.55亿美元的C轮融资。 云原本是为开发者构建的,但如今代理正在改变这一格局。 旧有的基础设施栈是为能够阅读文档、理解YAML、解读仪表板并自行推断故障原因的人类设计的。虽然这对开发者来说很痛苦,但尚可运作,因为他们能在脑海中填补缺失的上下文。 然而,代理没有这种优势。在代理的新时代,一切都必须更加紧密。 它们需要一个能编写代码、运行代码、检查输出、修改环境、调试失败并重新尝试的地方。快速迭代和包含完整上下文的反馈循环,对代理的正常运行至关重要。此外,沙箱清晰地体现了这一转变——代理可以轻松启动隔离环境。这种可编程的基础设施甚至延伸到了研究领域: 两年前,我们是首批报道Modal的媒体之一,当时我们与CEO Erik Bernhardsson和Alessio共同设计了我们迄今为止最喜爱的LS封面图: 那时,Modal还是一家仅有1700万美元A轮融资的小公司。 今天,在完成3.55亿美元的C轮融资后,Modal 是实时构建智能体云未来最清晰的例证之一:一个超越传统网页应用假设的云平台,转向AI真正创造的工作负载,如弹性推理、沙箱、GPU突发、训练后处理、后台智能体,以及智能体自身可操作的基础设施。 在本集中,Modal 的CTO Akshat Bubna 与 swyx 和 Vibhu 一起深入探讨:为什么AI应用不符合传统云的假设,为什么Kubernetes从未为突发性高计算负载设计,以及为什么Modal正从开发者体验转向智能体体验。 我们深入探讨Modal的AI基础设施栈:无服务器函数、基于装饰器的基础设施、为自定义模型提供的弹性推理、GPU快照、DeFlash、推测解码、自动端点、沙箱、持久化存储、联网容器、私有IPv6、RDMA、多节点训练,以及Modal在17家云服务商间的容量池。Akshat 还解释了为什么强化学习部署可能需要十万级沙箱,为什么生产级智能体需要严格的防护机制,为什么可观测性可能比阅读代码更重要,以及为什么AI再次让基础设施变得令人兴奋。 我们讨论: * 为什么Kubernetes不是为突发性AI工作负载设计的 * Modal 如何从一个更优的运行时起步,最终演变为AI云 * 为什么Modal在ChatGPT出现前就已加入GPU * 从开发者体验转向代理体验 * 当代理编写代码时,可观测性为何至关重要 * 针对音频、视频、机器人和计算生物学的自定义模型弹性推理 * GPU 快照、冷启动,以及为何推理负载如此突发 * 为何强化学习的 rollout 可能需要十万级沙箱 * DeFlash、推测解码与前沿级推理性能 * 自动端点与简化优化推理的部署 * Modal 相较于 vLLM、SGLang 和纯 GPU 租赁的额外价值 * Modal 的 17 云容量池与超云战略 * 网络化沙箱、边车、私有 IPv6 与 RDMA * 用于训练后与研究工作负载的无服务器多节点训练 * 自动研究、模型引导的搜索与代理启动 GPU 实验 * 计算策略、容量规划与批次层级 * 为何生产级代理需要专用沙箱与严格防护机制 * Modal 对托管代理、CI、Gitpod/Ona、Python、TypeScript 和 Modal Bench 的看法 Akshat Bubna * LinkedIn: https://www.linkedin.com/in/akshat-bubna-188885103 * X: https://x.com/akshat_b Modal * 网站: https://modal.com 时间戳 00:00:00 引言 00:00:39 Modal 的起源与为何 Kubernetes 不够用 00:04:32 开发者体验 → 代理体验 00:06:21 Modal 的 AI 云原语 00:09:14 沙箱、代理循环与 proto-Cognition 00:12:12 弹性推理、GPU 快照与十万沙箱 00:15:24 DeFlash、推测解码与自动端点 00:19:59 超越原始 GPU 的生产级推理 00:22:00 后台代理、Ramp Inspect 与代理生命周期 00:24:08 Modal 的十七云超级云战略 00:26:40 网络化沙箱、私有 IPv6 与 RDMA 00:32:48 多节点训练、训练后处理与自动研究 00:37:36 计算策略、容量规划与批次层级 00:40:55 开源模型、实时 AI 与生产级代理基础设施 00:43:06 严格防护、托管代理与专用沙箱 00:46:06 为何 AI 重新让基础设施变得令人兴奋 00:48:30 模型 API、差异化产品与代理视频 00:51:50 CI、编码代理基础设施、SDK 与 Modal Bench 00:57:28 结语 实录 引言:Modal、C 轮融资与艺术派对 Swyx [00:00:00]:今天我们邀请到了 Modal 的 CTO Akshat 和 Vibhu。祝贺你们完成 C 轮融资。 Akshat [00:00:10]:谢谢。 Swyx [00:00:11]:你们昨天的派对太棒了。 Akshat [00:00:15]:是啊。 Swyx [00:00:15]:从所有照片和周边产品就能看出来。 Akshat [00:00:17]:我们布置了很多艺术装置,很有趣,看到我们的产品像罗丹雕塑一样摆在展台上。 Swyx [00:00:25]:非常好,非常好。你刚开始的时候,并不是一家专注于 GPU 推理的公司,也许那时这个想法已经在你脑海中了。给我们讲讲最初的起源故事吧。 Modal 的起源:超越 Kubernetes 的新运行时 Akshat [00:00:39]:我最初是通过一位投资人认识了 CEO Eric。那时 Eric 已经在思考构建一个新的运行时,他之所以产生这个想法,是因为他思考了为什么工作流编排产品如此难用——原因在于你必须在 Kubernetes 上运行它们。Kubernetes 难以管理,它并非为突发性负载和自定义镜像而设计。 Swyx [00:01:03]:没错。 Akshat [00:01:03]:它的开发者体验非常糟糕。 Swyx [00:01:05]:我插一句。 Akshat [00:01:06]:对。 Swyx [00:01:07]:对于新听众,我们两年前采访过 Eric,那里有更多关于他从 Spotify 等经历出发的背景故事。 Swyx [00:01:14]:我是在 Data Council 上看到 Eric 的演讲,他讲了你们做的无服务器容器栈,那一刻我第一次意识到:“好吧,我必须认真对待 Modal 了。” Akshat [00:01:26]:对。 Swyx [00:01:26]:但那时仍然很不清楚,我做数据管道真的需要这么复杂的东西吗? 阿克沙特 [00:01:33]:是的,最初我们考虑的是,如果我们构建一个更好的运行时,它本身就是一个非常有用的底层组件。无服务器函数解决了许多问题,比如你可以做 ETL、任务队列、突发处理——结果发现每家公司都有这方面的需求。但我们也想到,这可以作为一个基础组件,用来构建一系列高度垂直化的产品。也许数据工程会是第一个,但我们当时也在考虑推理。那时候更多是传统的推理,比如计算机视觉、运行 XGBoost 之类的东西。但在 ChatGPT 出现前一年,我们就为产品增加了 GPU 支持。 从无服务器容器到 GPU 工作负载 斯维克斯 [00:02:19]:

双语字幕

仅展示文本字幕,不包含中文音频;想边听边看,请使用 Bayt 播客 App。

Speaker 0

今天我们请到了Modal公司的CTO,Akshat,还有vWO的代表。

We're here with Akshat of Modal, CTO of Modal, together with vWO.

Speaker 0

恭喜你们完成C轮融资。

Congrats on your series c.

Speaker 0

谢谢。

Thank you.

Speaker 0

昨天的派对太棒了。

Your party yesterday was amazing.

Speaker 0

照片和周边礼品都特别精彩。

All the photos and all the swag.

Speaker 1

我们布置了很多艺术装置,挺有意思的,把我们的产品摆在展台上,旁边就是罗丹的作品。

We we had a bunch of art installations, which is kind of fun seeing, like, our products on pedestals next to, like, Rodin.

Speaker 0

真不错。

Very nice.

Speaker 0

真不错。

Very nice.

Speaker 0

你刚开始的时候,并不是要做一个GPU推理公司。

When you started, it was not the GPU inference company.

Speaker 0

我的意思是,也许你心里早有这个想法。

I mean, maybe it was in your mind.

Speaker 0

给我们讲讲最初是怎么开始的吧。

Take us back to the origin story.

Speaker 1

我最早是通过一位投资人认识埃里克的,他现在是CEO。

I actually first met Erik, who's the CEO, through an investor.

Speaker 1

那时候,埃里克就已经在考虑打造一种全新的运行时环境。

And back then, Erik was already thinking about building a new kind of runtime.

Speaker 1

他之所以想到这个,是因为在思考:为什么工作流编排工具这么难用?

And he he got there thinking through why are workflow orchestration products so hard to use?

Speaker 1

原因就在于,你得在Kubernetes上运行它们。

It's because you have to run them on Kubernetes.

Speaker 1

而Kubernetes本身管理起来就特别麻烦。

Kubernetes is hard to manage.

Speaker 1

它不是为突发流量和自定义镜像设计的,而且开发体验非常糟糕。

It's not built for burstiness and custom images, and it has a terrible

Speaker 0

开发体验很差。

developer experience.

Speaker 0

我来替 Yep 补充几句。

And I'll I'll interject for Yep.

Speaker 0

对于刚听节目的新朋友,两年前我们采访过 Erik,当时还讲到了更多背景故事,比如 Spotify 相关的内容。

Peep for listeners who are new, we interviewed Erik two years ago, and there's a bit more of the story there from Spotify and all those things.

Speaker 0

我其实是通过一个数据领域的社群认识Erik的,因为他做过一场关于你们那个无服务器容器栈的演讲,当时我就觉得,好吧,这确实得认真对待。

And I I actually came across Erik through a data council because he he did that talk on the the sort of serverless container stack that that you guys did, which is like that was my my first, like, okay.

Speaker 0

我意识到必须非常严肃地对待Modals。

I need to take Modals very seriously moment.

Speaker 0

但当时情况还是很模糊。

But it was still very unclear.

Speaker 0

比如,我真的只需要跑数据管道,就需要搞这么复杂的东西吗?

Like, do I actually need all this for just my data pipelines?

Speaker 1

是的。

Yeah.

Speaker 1

我的意思是,一开始我们想的是,如果能打造一个更好的运行时环境,它本身就是一个非常有用的底层工具。

I mean, initially what we were thinking about was if we build a better runtime, it's a very useful primitive in itself.

Speaker 1

无服务器函数能解决很多问题。

It's there's a lot of things that get solved by serverless functions.

Speaker 1

比如做ETL、处理任务队列、应对突发性计算需求——结果发现,每家公司都有这类需求。

Like, can do ETL stuff, you can do job queues, you can do all this, like, bursty processing, which it turns out every company had needs for.

Speaker 1

但我们也想到,这其实是一个可以用来构建一系列垂直产品的基础工具。

But then we also were thinking about this as, like, this is a primitive that we can build a whole collection of products on, which are very verticalized.

Speaker 1

也许数据工程会是第一个方向,但我们当时也在考虑推理服务。

So perhaps data engineering would have been the first one, but we were thinking about inference.

Speaker 1

那时候的推理还比较传统,比如计算机视觉、跑XGBoost这类模型。

Back then, was more classical inference, like computer vision stuff and running XTBoost and whatnot.

Speaker 1

但我们在ChatGPT问世前一年,就已经在产品里加了GPU支持。

But we we added GPUs to the product a year before ChatGPT came out.

Speaker 1

不错。

Nice.

Speaker 1

我们真没觉得这会变得这么重要。

We just didn't think it would be that big of a deal.

Speaker 0

对。

Yeah.

Speaker 0

就直接加一百个好了。

Just like add a 100.

Speaker 2

当初有没有什么具体的问题,促使你们决定要做这个产品?

Was there any like early key problem that really sparked off why you built it?

Speaker 1

是的。

Yeah.

Speaker 1

主要是因为当时市面上的工具,根本没把开发者体验放在心上。

Primarily, it's just none of the tooling that was out there was built for, one, a really great developer experience.

Speaker 1

而且我们看到的很多任务,说白了都是特别吃计算资源的。

And also there's a general trend of a lot of the workloads that we were seeing were very this is I wish there's a better word for it, but compute heavy.

Speaker 1

他们需要大量资源,得频繁地动态扩缩,而Kubernetes本来是为慢速扩展、更适合网页服务器这类场景设计的。

Like, they need one, like, need a lot more resources, so you need to burst up and down a lot, versus like Kubernetes designed for like slow scaling and more for like web server use cases.

Speaker 1

而且,这些工作负载运行的环境也更加多样化。

And also, there's just a lot more specialization in, kinds of environments these workloads run-in.

Speaker 1

有时候我们需要加速器,有时候又需要不同的镜像类型。

Like, we kind of sometimes need accelerators, sometimes need different kinds of images.

Speaker 1

这种需求在很多公司里都很普遍。

And this is just like a consistent thing that we saw across a lot of companies.

Speaker 1

这将是下一步要做的事。

That would be the the next step.

Speaker 0

那挺好的。

Be be nice.

Speaker 0

我不确定早期故事里有没有提到这一点,但我在Temporal工作时写过一篇关于基础设施、定义型基础设施之类的文章。

I don't know how much is factored into the early story, but I wrote a post when I was at Temporal about infrastructure software defined infrastructure or something

Speaker 1

类似这样的东西。

like that.

Speaker 1

自助服务,自助服务。

The self provisioning Self provisioning.

Speaker 0

是的。

Yeah.

Speaker 0

我都想不起自己写过那篇文章了。

I couldn't even remember my own post.

Speaker 0

你还把我放到了首页上。

And then you put me on the landing page.

Speaker 1

对。

Yeah.

Speaker 1

我们特别喜欢这个词,所以就直接拿过来了。

We we really like the term, and and so we we stole it.

Speaker 0

因为你意识到,所有东西都可以放在装饰器里,和代码放在一起。

Because you had the insight that everything can just be in decorators next co located with the code.

Speaker 0

对吧?

Right?

Speaker 0

对。

Yep.

Speaker 0

这在最初的故事里占很大一部分吗?

Was that a big part of the original story?

Speaker 0

这就像是一个开发体验层?

It's just like a DX layer?

Speaker 1

这其实非常关键,因为我们根本不希望人们花太多时间写 YAML。

The the that was really important because we really didn't want people to spend so much time writing YAML.

Speaker 1

而且我们觉得,完全可以把你要做的事情大幅简化,直接写在代码里,这样你就能操作它,和其他代码互动,构建出更丰富、更动态的东西。

And it seemed like you could really condense the surface area of what you're doing, put it in code so you can actually operate on it, just so you can operate in other code and, like, build stuff that's more expressive and dynamic.

Speaker 1

所以,这一直是非常重要的一环。

And so, yeah, that that was always a very important part.

Speaker 0

但有人会反对说,这其实是个领域专用语言。

Then the pushback is, this is a DSL.

Speaker 0

对。

Yeah.

Speaker 0

这是你的闭源系统。

It's your closed source.

Speaker 0

我被绑定在 Modal 上了。

I am locked in to Modal.

Speaker 1

是的。

Yeah.

Speaker 1

我们其实从来没在这方面遇到过反对,因为 Modal 的好处是你能带上自己现有的任何代码。

We we we never really got pushback for that, because the nice thing about Modal is you can bring whatever code you have.

Speaker 1

没错,DSL 主要用于配置你使用的硬件和扩展方式,但代码本身还是你自己的。

And, sure, the DSL is at the sort of configuration there for what hardware you're using, how you're scaling things up, but you still own the code.

Speaker 1

这一点一直是我们理念的核心,即使现在我们做推理时也是如此。

And that's been an important part of our story, even as we do inference now.

Speaker 1

对。

Yeah.

Speaker 2

你觉得现在还有多少部分保持不变?

How much of it do you think still stays the same today?

Speaker 2

比如说,如果你现在要开发一个新项目,开发体验当然很重要,但我觉得现在很多情况已经变了,直接连上一个智能代理,用云代码、云X来实现一个工具就行。

Like, if you were to build something today, DevX obviously very important, but I feel like, you know, a lot of this has kind of been changed with just hook it up to an agent, have Cloud Code, have Cloud X implement a tool.

Speaker 2

现在有很多原生支持代理的底层设计,和你自己手动操作时完全不一样。

There's very agent native primitives that are kind of different than if I'm doing this myself.

Speaker 2

对吧?

Right?

Speaker 1

我们其实已经调整了SDK团队,开始专注代理体验,也就是开发者体验的延伸。

We've actually changed our SDK team to think about agent experience, sort of developer experience.

Speaker 1

我们觉得,那些对开发者体验有利的特性,对代理体验也同样适用——比如,为什么让代理去翻几百个Kubernetes文件、手写没有类型检查的YAML?它完全可以只用几个装饰器做点小改动,就能自动获得一个实时生效的运行环境。

And and we think that the same benefits that apply for DX also actually apply for AX, which is why would you have an agent read through hundreds of Kubernetes files and like write YAML that's not even typed when it can basically make a couple of changes in a decorator and it gets this sort of self provisioning runtime of being able to see its changes live in action.

Speaker 1

是的。

Yeah.

Speaker 1

从我们和客户的交流来看,他们普遍觉得,用模型驱动代理,比在其他平台上操作快得多。

It just seems from the customers we talk to, they actually find the model is way faster to use for agents versus operating on a different substrate.

Speaker 0

没错。

Yeah.

Speaker 0

因为你把基础设施的需求和运行它的代码放在一起了。

Because, like, you you again, you co locate the infrastructure requirements to the code that runs it.

Speaker 0

但现在的反面观点是,根本没人看代码了,那这么做就没意义了。

While the the the negative thesis now is that nobody's looking at their code anymore, so there's no point.

Speaker 1

是的。

Yeah.

Speaker 1

其实还是有人看代码的。

I mean, people are looking at code.

Speaker 1

我们目前仍然看到非常重要的一点,就是可观测性。

One thing we actually still see is is really important is observability.

Speaker 1

你的监控面板做得怎么样?

Like, how good is your dashboard?

Speaker 1

当然,我们把很多工作都推到命令行了,让代理自己去排查问题,但最终还是得靠人来解读数据、做判断。

And of course, like, we have we push a lot of it to the CLI so the agents can do their own investigation, but you still need humans to go interpret what's going on and, you know, make judgment calls and whatnot.

Speaker 1

我觉得,现在比起直接看代码,这一点反而更重要了。

And that's, I feel like, maybe more important now than looking at the code itself.

Speaker 0

是的。

Yes.

Speaker 0

你知道吧,你可以把代码当成一个黑箱,只看它输出的可观测行为,然后据此做出调整。

Because, like, you know, it's you you can try to treat the code as a black box and then use sort of see the observable action that comes out of it and then just prompt a change.

Speaker 0

没错。

Yep.

Speaker 0

我觉得,真正难的是克制住不去做专门化,别一上来就想搞个新工具,结果只适合特定场景,而应该尽量保持通用。

So I I think actually, I think it it takes a bit of restraint to not specialize, to say, I want to ship a new primitive and then just just be general purpose.

Speaker 0

别人总会问你:你们这个是干嘛的?

People ask you, what are you for?

Speaker 0

你只能回答:说不好。

You're like, I don't know.

Speaker 0

我们能做这个。

We can do this.

Speaker 0

我们也能做那个。

We can do that.

Speaker 1

是的。

Yeah.

Speaker 1

说实话,我很好奇。

Mean, I'd be curious

Speaker 2

比如说,好吧。

to say, you know, like, okay.

Speaker 2

如果我们问你,从宏观上讲,Modal 到底是什么?

If if we were to ask you, like, what is model for even at a high level?

Speaker 2

你们做的东西很多,沙箱、GPU,方方面面。

There's a lot you guys do, sandboxes, GPUs, everything.

Speaker 2

你会怎么回答呢?

How how do you answer?

Speaker 1

Modal 是一个专为 AI 应用打造的云平台,我们从零开始构建了底层组件。

Modal is a cloud platform that's built for where we build the primitives from scratch for AI applications.

Speaker 1

目前,它主要覆盖推理、训练、批量处理和沙箱类工作负载。

And right now, it basically covers inference training, batch crossing, and sandbox workloads.

Speaker 1

但为了构建更多东西,

But for building a lot more and

Speaker 0

我注意到你没提到网页服务器。

I noticed you didn't say web server.

Speaker 0

所以,像那种一直在线、大规模的 Kubernetes 系统,还是有它的作用的。

So there there is still a role for, like, the always on large scale Kubernetes type of things.

Speaker 1

是的。

Yeah.

Speaker 1

当然。

Absolutely.

Speaker 1

我们并不是想跟那些主流的渲染平台竞争,毕竟我们的优势在于那些需要专用计算资源、需要频繁伸缩的其他工作负载。

We're we're not trying to compete with the renderers of of the world because, yeah, we we think the differentiator for us is the our other workflows that need specialized compute, need to scale up and down a lot.

Speaker 1

没错。

Yeah.

Speaker 1

而且它们的形态根本不一样。

And they're they're they're just shaped differently.

Speaker 2

我觉得你们在和这些初创公司一起开发很多东西。

I think you're building a lot of it alongside the startups.

Speaker 2

对吧?

Right?

Speaker 2

它们确实挺有创新的。

They're innovating quite a bit.

Speaker 2

就连你们最新的博客文章里提到的客户,比如Cognitions、Deckergons、Ramps这些,都在和你们一起创新。

Even in your, like, latest blog posts, like, even even in the Series C, the the customers that you mentioned here, the Cognitions, Deckergons, ramps, whatnot, they're they're innovating with you.

Speaker 2

对吧?

Right?

Speaker 2

这种事亚马逊云科技自己并没有直接在做。

And that's not something AWS is doing directly with.

Speaker 1

是的。

Yeah.

Speaker 1

完全没错。

Absolutely.

Speaker 1

我觉得,这其实很典型。

I I think I mean, this is, again, classic.

Speaker 1

我们团队很小。

We're a small team.

Speaker 1

但做事特别快。

We can move really fast.

Speaker 1

我们的工程师直接和客户一起合作,

Our engineers are working with our customers and

Speaker 0

边做边摸索。

figuring it out.

Speaker 0

对。

Yeah.

Speaker 0

我刚到Cognition的第一周,走进去就看见有人穿着Modal的T恤。

My first week at Cognition, I walked in, there was someone wearing a Modal shirt.

Speaker 0

我当时就问,你怎么在这儿?

I was like, what are you doing here?

Speaker 0

他们就说,是的。

They're like, yeah.

Speaker 0

我就直接在 Cog 里面工作了。

I just I I am embedded inside of Cog.

Speaker 1

对。

Yeah.

Speaker 1

我觉得那是佩顿。

I think that was Peyton.

Speaker 1

我们把他们调过来,不然沟通延迟实在太高了。

We we sent them over because the latency of communication was too high otherwise.

Speaker 0

是的。

Yeah.

Speaker 0

分布式节点嘛,你得安排一个,还得放在一起。

You know, distributed node, you have to put you have to place one and collocate.

Speaker 0

对。

Yeah.

Speaker 0

所以我其实有切身的经历。

So actually and so I had a direct personal experience.

Speaker 0

对吧?

Right?

Speaker 0

三年前我做过一个小的开发者项目。

So I worked on small developer three years ago.

Speaker 0

那个项目是受Cloud One启发的。

It was inspired by Cloud One.

Speaker 0

我觉得你之前好像把我拉进来了。

I think you onboarded me at some point, like, just before.

Speaker 0

我当时就想,哎,得来点突发性的计算资源。

And I was like, oh, like, I need some bursty compute.

Speaker 0

本来只是想试试Modal。

Like, I was just gonna try using Modal.

Speaker 0

体验还挺不错的。

And it was a pretty pleasant experience.

Speaker 0

结果我在董事会的分析报告里出现了。

Apparently, I showed up in the board meeting, like, the analytics.

Speaker 1

是的。

Yeah.

Speaker 1

你在 Hacker News 上火了,我们流量一下子暴增。

You blew up on Hacker News, and and we got a big traffic spike.

Speaker 1

我觉得你用 Small Developer 的方式特别好,就是用 Modal Functions 来跑任务,这真是个典型的用例。

I actually I I think the way you you used Small Developer was Modal Functions for for running stuff, which which was like, that that was a good use case.

Speaker 0

对。

Yeah.

Speaker 0

对我来说,那简直就是预判了未来的用法。

That was so to me, that was proto cognition.

Speaker 1

没错。

Right.

Speaker 0

要是我当时能坚持下去就好了。

If only I had, like, stuck to it.

Speaker 0

你看,如果你把技术路线图画出来,就会觉得,嗯,这事儿大概率会发生。

Like, that that was, if you just, like, draw the tech tree out, you're like, yeah, like, probably this will happen.

Speaker 1

对。

Yeah.

Speaker 1

他当时离成功就差那么一点点。

Like, he was so close.

Speaker 1

你当时

You're

Speaker 0

光是处理

just dealing with

Speaker 1

这件事。

this.

Speaker 1

但有趣的是,当时我们正跟一群客户沟通,他们也需要类似沙箱的功能。

But but the the funny story there is at the same time, we were talking to a bunch of customers who needed something like sandboxing.

Speaker 1

那是2023年的事了。

This is like 2023.

Speaker 1

是的

Yeah.

Speaker 1

对

Yeah.

Speaker 1

没错

Yeah.

Speaker 1

所以我们后来开发了你该有的

So we built You should have some

Speaker 0

就在那之后推出了新的API。

new API right after that.

Speaker 0

是的

Yeah.

Speaker 1

没错

Yes.

Speaker 1

我们在2023年5月就建好了沙箱环境,那时候还没人意识到这会成为趋势。

Like, we built sandboxes in May 2023 before anyone was even knew this was gonna be a thing.

Speaker 1

我们发布的第一个例子是,让一个小开发者进入循环,让代理能够自我迭代。

The And first example we published was we took small developer and put in a loop so the agent can iterate on itself.

Speaker 0

现在写循环可真不容易。

Loops are hard these

Speaker 1

是啊。

days.

Speaker 1

对。

Yeah.

Speaker 2

你说的循环,是什么时候的事?

Loops in when was this?

Speaker 2

2023年吗?

2023?

Speaker 1

对。

Yeah.

Speaker 1

做个简单的验证。

A small check.

Speaker 1

是的。

Yeah.

Speaker 1

大概是2023年年中吧。

It's, like, mid twenty twenty three.

Speaker 0

我的意思是,对听众来说,很明显,这些模型根本不是为这些用途设计的。

I mean, so the I mean, those sort of obviously, for listeners, like, the the problem was the models are not built for any of this.

Speaker 0

对吧?

Right?

Speaker 0

它们根本没有经过后续训练来理解循环、自我修正或者工具调用,而且在这方面表现也不怎么样。

Like, you you are you're trying to, like they're not post trained to understand, like, you know, looping and, like, cell correction and and tool calling there, but, like, also not that great.

Speaker 1

是的。

Yeah.

Speaker 1

我不太记得你在这次实验里有没有用工具调用,但确实,模型迭代十次左右就彻底跑偏了,再也生成不出有意义的结果。

I I don't remember if you used tool tool calling in this one, but, yeah, the models are just diverse after, like, 10 iterations and not produce anything meaningful.

Speaker 0

是的。

Yeah.

Speaker 0

但话说回来,好吧。

But, like, then so, I mean, okay.

Speaker 0

要是跟三年前的自己聊聊,答案就是

Like, now talking to myself three years ago, the answer

Speaker 2

得看看具体有哪些部分。

is Parts to look at.

Speaker 0

把所有失败案例收集起来,建立评估基准,再把各种例子都整理出来,搭建出运行环境,对吧。

Collect all the failures, build benchmark, and then collect all the, you know, examples, build the RO environment Right.

Speaker 0

然后卖个一百亿美元给Meta,再训练一个模型,又卖六十亿美元给马斯克。

Sell it for, like, $10,000,000,000 to Meta, and then and then also train a model and then sell that for $60,000,000,000 to to Elon.

Speaker 0

这确实是。

And this is Yeah.

Speaker 0

一本万利的生意。

Money machine.

Speaker 0

说到底,关键还是在于核心问题。

Like, it's like, it's actually about the heart thing.

Speaker 1

说实话,要真有那种信念,觉得这些东西能进步到那种程度,真的很难。

I mean, it's hard to have that kind of inherent conviction that this stuff will get that much better.

Speaker 0

回头一看,其实特别明显。

In retrospect, it's so fucking obvious.

Speaker 0

这话也没错。

Like, fair enough.

Speaker 0

那会儿我们到底在忙些什么呢?

Like, what else were we doing back then?

Speaker 0

我不太记得了。

I don't know.

Speaker 0

总之吧。

Anyway yeah.

Speaker 0

所以,这就是你开始做沙盒实验的起点。

So so so, I mean, this that that was the start of your sandboxing Mhmm.

Speaker 0

旅程的开始。

Journey.

Speaker 0

对吧?

Right?

Speaker 0

我觉得这事儿一直到去年才真正火起来。

I feel like it didn't blow up blow up until, like, last year.

Speaker 0

没错。

Yep.

Speaker 0

之前有好几年都挺安静的。

So there was, a couple of years of quietness.

Speaker 1

没错。

Exactly.

Speaker 1

是的。

Yeah.

Speaker 1

我们当时

We were

Speaker 2

产品价值被严重低估了。

very underrated product value.

Speaker 2

我之前在Charles加入Modal之前,就参加过一个黑客马拉松,认识了这个人,他特别坚持说咱们得跑个小型模型,不是托管在任何地方的那种。

Like, my experience with Modal, Charles, before he had joined Modal, met this guy at a hackathon, and he really insisted we wanted to run some small model, you know, not hosted anywhere.

Speaker 2

然后他就说,哎,有个挺酷的公司叫Modal。

And he's like, ah, there's this cool company, Modal.

Speaker 2

他们能帮你快速启动一个GPU沙箱,把模型丢上去就行。

They'll, like, spin up a GPU sandbox so we can throw it on there.

Speaker 2

他们支持直接用Hugging Face的链接。

They'll take a Hugging Face link.

Speaker 2

光是这一点,就已经值回票价了。

And, you know, like, there's so much value just right there.

Speaker 2

对吧?

Right?

Speaker 2

一键部署,随时启动,随时关闭。

Like, instant hosting, spin it up, spin it down.

Speaker 2

虽然会休眠,但几天后我们再跑演示,它又能自动唤醒。

It'll stay cold, but, you know, we run the demo a few days later, it'll come back up.

Speaker 2

现在回头看看,这些功能其实正是我们今天依然需要的。

And, like, all this stuff in retrospect, like, it's still what we needed, like, today.

Speaker 1

对。

Yeah.

Speaker 1

我的意思是,今天这些需求依然存在。

I mean, it's still needed today.

Speaker 1

显然,随着我们为大规模生产环境的用户运行任务,工作负载的形态已经发生了很大变化。

Obviously, workload shapes have changed a lot as we we run stuff for people with really massive production scale.

Speaker 1

在这种情况下,问题不再是零到一的启动,而是如何在某个区域快速弹性地从几千台GPU扩展到一千五百台。

And there, it's it's not about scaling from zero to one, but it's how do we scale really elastically from, like, thousand to 1,500 GPUs very quickly in in a given region.

Speaker 1

问题的本质其实是一样的。

It's the same shape of the problem.

Speaker 2

明白了。

Okay.

Speaker 2

比如说,你看看 Cursor Composer。

So you look at, say, Cursor Composer.

Speaker 2

对吧?

Right?

Speaker 2

他们每隔几个小时就会对模型进行一次强化学习。

They had a we'll do RL on a model every couple hours.

Speaker 2

你们那边有个完整的强化学习推理环境之类的系统。

You guys have a whole version of RL inference gym and whatnot.

Speaker 2

是的。

Mhmm.

Speaker 2

当你看这种工作负载时,本质上每小时都要上下扩缩成千上万张GPU。

When you look at workloads like that, you're basically doing train runs where you need to scale up, scale down every hour thousands of GPUs.

Speaker 2

对吧?

Right?

Speaker 2

这就是我们为什么必须这么做。

That's the example for we do need it.

Speaker 2

对吧?

Right?

Speaker 1

其实你也会发现,我先退一步说说大家现在是怎么用 Modal 的。

You will also actually, I'll I'll take a step back and maybe talk about, like, how how people use Modal today.

Speaker 1

因为我们最大的使用场景其实是弹性推理。

Because our our biggest use case actually is Elastic Inference.

Speaker 1

我们最早找到产品市场契合点的,就是为定制模型做推理服务。

And the thing we first found product market fit with was inference for custom models.

Speaker 1

所以我们一直没碰大语言模型这块,主要服务像 Suno 这样的音频公司、Runway 这样的视频公司,还有机器人和计算生物学公司——他们自己在别处训练模型,但需要我们来部署。

So we kind of stayed away from the LM space, and we were serving companies like Suno for audio, Runway for video, robotics, comp bio companies that train their own model elsewhere.

Speaker 1

Modal 就是最好的黑盒工具,不管你的流量怎么变,需要多少 GPU,它都能自动扩缩容。

But Modal is the best black box that, for deployment, scaling to however many GPUs you need as your traffic pattern changes.

Speaker 1

我们发现,这些客户几乎都有特别不稳定的流量模式。

And we saw all of them actually, like, have a very unpredictable traffic pattern.

Speaker 1

就跟昼夜规律一样,白天晚上差别很大。

It's like diurnal.

Speaker 1

有时候公司刚上线,突然就需要多得多的资源。

It's and some days, like, the company will be launched and, you know, they'll need, like, way more.

Speaker 1

他们部署的可不是只有一个模型。

And it's not just one model that they deploy.

Speaker 1

这些公司都会在不同地区部署大量不同的模型。

They all these companies deploy lots of different models in different regions.

Speaker 1

所以自动扩缩容的问题变得更复杂了,因为你还得在每个地区内部进行扩缩容。

And so the auto scaling problem becomes even harder because then you have to scale within a certain region.

Speaker 1

而且这些高峰期的时间点往往是错开的。

And those cycles sort of are offset.

Speaker 1

所以在不同时间,不同地区都需要增加资源。

So different times, need to scale up in different regions.

Speaker 1

这正是我们所专注的领域。

So that's like our sort of

Speaker 2

光是这一点,本身就已经是一个巨大的细分市场了。

And that, you know, that that in and of itself is a huge category.

Speaker 2

现在有不少推理服务提供商,像Base10之类的,都在做类似的服务。

There's a bunch of inference providers which, you know, provide this fireworks, does this as a service together, whatnot, base 10.

Speaker 2

目前来说,语言模型这块已经形成了一个独立的细分领域。

That's kind of carved into its own niche for language models, at least right now.

Speaker 1

对。

Yeah.

Speaker 1

其实我们真正专攻的是自动伸缩这部分。

I mean, the thing that we we have actually specialized in is the auto scaling aspect.

Speaker 1

没错。

Yeah.

Speaker 1

因为我们发现,并不是所有人都能实现自动扩缩容。

Because we we found that it's not universally true that everyone else can auto scale.

Speaker 1

我们在技术层面做了深入探索,还把 GPU 快照功能集成到了产品里,这样就能把 GPU 的状态,比如你的 TARS 编译器模型,直接快照保存下来,下次调用时启动速度会快很多。

And we've gone deeper into it on the tech side, but we've incorporated GPU snapshotting into the product so we can actually take the GPU state, like your TARS compiler model, snapshot it, and next call starts way faster.

Speaker 1

所以回到你刚才的问题,这就是为什么推理服务需要应对很大的流量波动。

And so going back to your question, it's that's why you need a lot of burstiness for inference.

Speaker 1

不过,大家也会经常进行按需训练。

But then people also do a lot of on demand training.

Speaker 1

比如在强化学习方面,你的 rollout 确实是突发性的,就像你所说的。

Like, for RL stuff, your rollouts are bursting, as you said.

Speaker 1

很多人还会做大量的批处理任务。

People also do a lot of batch jobs.

Speaker 1

所以我们经常看到,公司在开始训练之前,需要成千上万张 GPU 来做编码之类的操作。

So we'll see a lot of companies, before they have a training run, they'll need thousands GPUs to run encoding or something like that.

Speaker 1

我觉得这些情况比代理的突发性要强烈得多,我同意你说的,代理本身没那么突发。

And I think those things are much more bursty than I agree that agents are are not that bursty.

Speaker 1

沙盒环境也是,除非你在做强化学习。

Sandboxes are except when you're doing RL.

Speaker 1

强化学习的突发性简直太夸张了。

RL is this insanely bursty.

Speaker 1

是的。

Yeah.

Speaker 1

对。

Yeah.

Speaker 1

做 rollout 的时候,有时候你得同时开十万个多重环境,还得跑一堆计算周期。

Like, when when you're doing rollouts, you you sometimes need a 100,000 sandboxes and and your cycles.

Speaker 1

对。

Yeah.

Speaker 2

我想知道你有没有看到过一些持续学习的早期迹象?

I'm curious if you've seen early sparks of continual learning.

Speaker 2

有几个人,比如我们认识的 Ngram 最近宣布了,他们正在尝试做训练。

There's some people like our friends, Ngram recently announced this, they're they're trying to do training.

Speaker 2

这看起来也属于一种不同的工作负载。

That also seems like a different workload.

Speaker 2

对吧?

Right?

Speaker 2

如果你全天候不间断地做训练,那么不同团队之间对 GPU 的使用方式就会变得特别奇怪。

If you're doing training twenty four seven per se, there's a very weird dynamic of how you're using GPUs between people and whatnot.

Speaker 2

但这种事看起来正是你们会去做的方向。

But seems like something you guys would work for.

Speaker 1

正如你所说,我们很幸运能和一批走在前沿的客户合作,从中获取了不少经验。

As you said, we're we're fortunate to work with a number of customers at the frontier and and grab some of our customers.

Speaker 1

他们正在利用我们提供的基础功能,以非常有趣的方式进行尝试,比如持续学习。

And and they are taking the primitives we have and trying to use them in very interesting ways like continual learning.

Speaker 1

随着技术不断进步,如果需求增加,这些功能未来也可能成为我们产品的一部分。

It's possible as the stuff gets better, some of that will be part of, you know, our offering as well if, you know, more people need it.

Speaker 1

但我们现在还是先观望一下,看看事情会怎么发展。

But we're we're just waiting to see how how it shakes out.

Speaker 0

在沙箱之后,你们有没有添加过其他关键功能,作为后续发展的一步?

Is there a primitive that you added after sandboxing that was the next step in the story?

Speaker 1

我们其实一直在深入优化大语言模型的推理能力,没错。

I guess we've been going much deeper into LLM inference Yeah.

Speaker 1

因为我们发现,像自动扩缩容这类优势,尤其是在不同地区部署时,其他地方很难做到。

Because we've realized that some of the advantages we have with, like, auto scaling, again, especially in different regions and whatnot, are not present elsewhere.

Speaker 1

之前我们缺失的一环,就是没有直接参与模型本身的优化。

And the place where we had a gap was we weren't working on the model there itself.

Speaker 1

我们以前就像个黑箱。

Like, we were a black box.

Speaker 1

我们后来意识到,只要有一群顶尖人才专注做这些,其实完全可以达到前沿模型的性能。

And we realized that we actually can get to frontier level model performance, you know, by having great people who who work on all this.

Speaker 1

最近我们开源了不少工作,比如发布了DeFlash——一个基于块的推测器,所有代码都已经公开了。

And we've actually been open sourcing a lot of our work in terms of recently, we shared our work on DeFlash, which is a block based speculator, and we've open sourced all of it.

Speaker 1

只要用我们开源的DeFlash,性能就能跟那些商业供应商的一样好。

So you can get by using open sourced DeFlash, you can get the same performance as you would with one of the proprietary providers.

Speaker 1

接下来我们正在考虑的是

And the next thing we're thinking about here

Speaker 2

我觉得这篇博客文章也很有意思。

I thought this was actually an interesting blog post as well.

Speaker 2

对吧?

Right?

Speaker 2

你提到推测解码的实际效果有多强,这个观点挺到位的。

Like, I think in here you make a claim that, you know, not a claim, just that how how effective speculative decoding really just gets you.

Speaker 2

是的。

Yeah.

Speaker 2

你有没有特别想提醒大家注意的地方?

Anything you wanna point out from this around, you know, what people should know?

Speaker 1

是的。

Yeah.

Speaker 1

当然。

Absolutely.

Speaker 1

总的来说,最好先解释一下什么是推测解码。

I mean, the high level summaries, it would help to describe what speculative decoding is.

Speaker 0

对。

Yes.

Speaker 0

从宏观角度说。

High level.

Speaker 0

我觉得我们之前已经讲过 EGO 这些内容了。

I think And, like, we so we've covered, like, EGO and all this Yeah.

Speaker 0

比如Hydra那些东西,但那是两年前的事了。

Like, Hydra and all those things, but it was, like, two years ago.

Speaker 2

我觉得没什么坏处。

I think it doesn't hurt.

Speaker 1

对吧?

Right?

Speaker 1

推测解码就是用一个较小的模型,叫草稿模型,提前预测下一个词。

Speculative decoding is you have a smaller model called a draft model, predict tokens ahead of the bigger model.

Speaker 1

然后由大模型来验证所有这些被预测出来的词。

And then you have the bigger model verify all of this, all the tokens that are predicted.

Speaker 1

它之所以更快,是因为如果你一次只预测一个词,就会受内存带宽限制。

And the reason it's faster is if you're predicting one token at once, you're kind of bound by memory bandwidth.

Speaker 1

但如果你能把草稿模型的预测结果批量验证,就能更高效地利用计算资源,速度也就更快了。

But if you can batch the verification of the draft model, then you're much more efficient using compute and it's faster.

Speaker 1

只要草稿模型预测的词能被大量接受——也就是所谓的接受长度,整体速度就能比原始模型快好几倍。

And as long as your draft model is producing a lot of tokens that can get accepted, which is called the accept length, you can get a speed up that's multiple times of, you know, the original model speed.

Speaker 1

这正是我们在这里强调的重点。

And that's what we highlight here.

Speaker 1

人们总在谈论说我们把内核优化得更快了之类的,但其实改进内核顶多只能带来百分之几的提升。

It's like, people talk a lot about we made these kernel faster and whatnot, but improving kernel will only give you, like, a few percentage points of improvement.

Speaker 1

而增加子序列长度,实际上能带来成倍的加速,比如两倍

And increasing its sub length literally is a multiplicative decrease in Like, two

Speaker 0

到四倍。

to four x.

Speaker 2

是的。

Yeah.

Speaker 2

没错。

Exactly.

Speaker 2

而且对性能几乎没有额外负担。

Without much head on performance.

Speaker 0

对。

Yeah.

Speaker 0

是的。

Yeah.

Speaker 0

我觉得可能确实如此。

I think it may be yeah.

Speaker 0

你的意思是,你在运行第二个模型。

I mean, you you are running a second model.

Speaker 0

对吧?

Right?

Speaker 0

所以计算成本可能会更高,但

So it may be something more expensive in in the compute, but

Speaker 2

我说的是质量表现。

I meant quality performance.

Speaker 2

不过,确实,我的意思是,

But, yeah, I mean,

Speaker 1

我认为质量表现并没有下降,因为你从不会接受一个模型生成的令牌。

I think So I there's no drop in quality performance because you're always you're never accepting a token that does a model.

展开剩余字幕(还有 480 条)
Speaker 1

更好还是

Better or

Speaker 0

一样。

the same.

Speaker 0

没错。

Exactly.

Speaker 0

对吧?

Right?

Speaker 1

是的。

Yeah.

Speaker 1

所以我们一直在研究 DeFlash,这是一种基于块的预测器。

And so we've been working a bunch on DeFlash, which is a block based speculator.

Speaker 1

它不是一次预测一个词元,而是预测一个块。

So it's instead of predicting one token at a time, it's predicting a block.

Speaker 1

我们已经把相关成果开源了。

And we've been open sourcing our work with it.

Speaker 1

我们接下来要做的,是帮助大家训练推测器和自定义模型。

The the next thing for us here is for for helping people train speculators and custom models.

Speaker 1

这在过去通常非常依赖人力,得靠支持工程师亲自上门服务。

It's it's something that traditionally is very FTE driven, support deployed engineer driven.

Speaker 1

就是跟客户一起合作,帮他们完成这些工作。

Like, you work with customers and help them do that.

Speaker 1

我们推出 Auto Endpoints 的初衷,就是想让前沿级别的性能人人都能用上。

And our vision for this is why we launched Auto Endpoints is we want to make frontier level performance available to everyone.

Speaker 1

这一点我们在发布时也提到过。

And so we've mentioned this in the announcement.

Speaker 1

当时只是稍微提了一下。

We kind of teased it.

Speaker 1

接下来我们要重新推出的功能是:当你运行 Auto Endpoint 时,我们会悄悄复制流量并

The next thing we're relaunching is, basically, as you run an Auto Endpoint, we shadow traffic and

Speaker 2

你能不能解释一下什么是 Auto Endpoints?

Do do you want to explain what Auto Endpoints are?

Speaker 2

是的

Yeah.

Speaker 2

真不错

How lovely.

Speaker 2

没错

Yeah.

Speaker 1

对

Yeah.

Speaker 1

所以,这其实又回到你提到的模态了——你确实可以修改代码,但有些人并不想碰代码,他们只想直接用一个性能出色、可扩展性强的端点马上开始工作。

So this is, I guess, going back to your modal is is you touch the code, but sometimes people actually don't wanna touch the code, and they wanna get started with an endpoint that works and has all the great performance and scalability that Modal has.

Speaker 1

所以我们通过界面和命令行工具,让你能轻松创建一个端点,里面已经内置了我们之前说的所有优化功能,比如DeFlash之类的,而且全程透明。

So we've made that easier with, basically, a way to create an endpoint from our UI, from the CLI that has all of our optimizations that we talked about, like the DeFlash stuff already baked in, and there's full transparency.

Speaker 1

我们会把代码直接提供给你。

So we give you the code.

Speaker 1

你可以自己运行看看。

You can go run it yourself.

Speaker 1

如果你需要,也可以切换到完整的 Modal 体验,我们发现用户越熟练,就越会这么做。

And if you want, you can eject out into the full Modal experience, which we see as people get sophisticated.

Speaker 1

他们确实希望调整模型。

They they do wanna tweak the models.

Speaker 1

他们想进行精细调优。

They wanna fine tune stuff.

Speaker 1

这些功能你依然都能用。

You you can still do all of that.

Speaker 1

这可不是个黑箱。

It's it's not a black box.

Speaker 1

另外,就像我们后面提到的,接下来我们要做的是:让你的草稿模型随着数据分布的变化自动进化,完全不需要人工干预。

And, yeah, the next thing, as we teased later in the post, is how do we give you value even beyond this in terms of having your draft models evolve as your data distribution evolves, again, without having to talk to a person.

Speaker 1

而且

And

Speaker 2

对。

yeah.

Speaker 2

我想直接了解一下具体情况。

I guess just to kind of understand it directly.

Speaker 2

我的意思是,你们肯定有 GPU 资源。

I mean, you know, obviously, you you have the GPUs.

Speaker 2

还有兼容的端点服务。

You have Endpoint that's compatible.

Speaker 2

你们还提供 OpenModel 的部署服务。

You serve OpenModel.

Speaker 2

如果用户自己来做这件事,你们提供的核心价值差异在哪里?

If someone was to do this themselves, what's the delta that you guys provide?

Speaker 2

你们在高效推理方面做了很多优秀的开源工作。

So you do a lot of open source great work on effective inference.

Speaker 2

那跟市面上现有的方案比怎么样?比如我拿同一个模型,GLM 5.2 FP8,配上现成的推理引擎,像 vLLM、SGLang 这些,再配上同等算力和成本的基础设施。

How does it compare to say, I take the same model, GLM 5.2 FP eight, take off the shelf inference engine, vLLM, SGLang, you know, get compute of similar capacity, similar cost.

Speaker 2

在这种情况下,接入你们的服务,除了规模扩展方面的优势,还能带来哪些具体的差异化价值?

What's the kind of delta that plugging into something this like this offers outside of the benefit of, you know, scaling?

Speaker 1

这挺有意思的,因为我们一直坚持把我们的贡献开源并提交到上游。

It's kind of interesting because we we've taken the approach of open sourcing our contributions and upstreaming them.

Speaker 1

我们和SGLang团队合作得很紧密。

We work closely with the SGLang team.

Speaker 1

我们真心希望,我们团队做出的改进能被纳入开源项目,让哪怕不用Modal的人也能用上。

We actually want the improvements that our team comes up with to be there in open source for others to use, even outside of Modal.

Speaker 1

对我们来说,好处是我们有一支经验丰富的团队,如果你遇到某些功能还没实现,他们能帮你第一时间达到最佳性能。

The benefit to us is we have a team that has significant expertise in terms of if you do have something that is not there, our team can help you get that performance first.

Speaker 1

另外,这些端点的弹性远超其他任何方案,就像你提到的那样。

The other thing is, with these endpoints, we are way more elastic, as you said, than anyone else.

Speaker 1

你真正能做到零扩展,也能真正应对突发流量。

And you have true scaling to zero, You have true burstiness.

Speaker 1

实际上,对用户来说,这比单纯找块GPU跑模型代码重要得多。

And in practice, that matters a lot more to people than just finding the GPU and running model code on

Speaker 2

没错。

the Yeah.

Speaker 2

说实话,这事儿没我刚才说的那么简单,道理是这么个道理,做起来可没那么容易。

And I I will say it's actually not that straightforward to just like, what I said is easier said than done.

Speaker 2

对吧?

Right?

Speaker 2

是的。

Yeah.

Speaker 2

对普通人来说,要凭直觉判断该怎么选,依然挺难的,因为可选的组合实在太多了。

It's, I think, still for the average person, still hard to just gut check using different there's there's quite a bit of combinations you can make there.

Speaker 2

这些选择背后的权衡,光看表面是看不出来的。

The trade offs aren't really known at face value.

Speaker 1

对。

Yeah.

Speaker 1

这还不只是个简单的问题。

I mean, it's it's not just that.

Speaker 1

我觉得,真正难的是把生产级别的推理系统跑起来。

I think it's it's that running production grade inference is a hard infer problem.

Speaker 1

就算把自动扩缩容那些事儿排除掉,比如控制尾部延迟、确保每个请求至少被投递一次等等。

Even if you subtract out the auto scaling is controlling things like tail latency and making sure every request is delivered at least once and whatnot.

Speaker 1

这里头

There's a

Speaker 0

还有很多创新的空间可以做。

lot of innovation that you can do here.

Speaker 0

我觉得挺有意思的,你开始涉足别人的领地了。当你成为一个完整的云平台时,你其实是在侵入其他厂商的地盘。

Think it's very interesting that you're starting to encroach on, like, as you become a full cloud, you're starting to encroach on other people's turf.

Speaker 0

对。

Mhmm.

Speaker 0

那你们不会做哪些事呢?

What will you not do?

Speaker 1

嗯,我们想跟着用户的需求走,确保他们能拿到一个各方面配合得很好的平台。

Well, we wanna follow our users and make sure they they get, like, a platform that has everything that works well together.

Speaker 1

所以目前我们主要聚焦在模型的生命周期和智能体的生命周期上。

So right now, we're kind of focused on the model life cycle and the agent life cycle.

Speaker 1

所以无论是从数据准备到训练再到推理,还是说我想部署一个后台代理,比如沙箱环境、超持久存储,还有其他一大堆东西。

So both, like, going from data prep to training to inference, and then also, if I wanna deploy a background agent, let's say, you know, sandbox, super persistent storage, a whole bunch of other stuff.

Speaker 0

我们跟做了OpenInspect的Cole聊过。

We talked to Cole, who did OpenInspect.

Speaker 0

是的。

Yeah.

Speaker 0

显然,RealInspect也是跑在Modal上的。

And obviously, RealInspect also is on Modal.

Speaker 1

对。

Yeah.

Speaker 1

RampInspect就是一个很好的后台代理案例,特别成功,因为他们用了快照和快速扩缩容这些功能,让整个系统响应特别灵敏,运行得也很流畅。

So RampInspect was was a great example of a background agent that was really successful because they were able to use some of parameters like snapshotting and fast scaling to just have something that feels really reactive and and works well.

Speaker 0

是的。

Yeah.

Speaker 0

那位就是RAMP新上任的CTO。

That's the new CTO of RAMP right there.

Speaker 1

是的

Yeah.

Speaker 1

拉胡尔

Rahul.

Speaker 0

真的特别有意思

It was really, really fun.

Speaker 0

对

Yeah.

Speaker 0

我的意思是,好吧

I mean, okay.

Speaker 0

我觉得大家都非常看好

You know, I I think all very bullish.

Speaker 0

我回想一下,当初刚认识你们的时候,确实没怎么关注GPU领域

Like, know, one of my reflections was also I did not originally so, obviously, when I met you guys Mhmm.

Speaker 0

但现在你们全身心都投入到推理上了

You weren't that much in the GPU game, and now you're all about inference.

Speaker 0

今年GTC大会上,詹森演讲中让我特别关注的一点,就是我们所说的‘推理拐点’。

And one of the points that I hinged on for Jensen's keynote at GTC this year was what we're calling, like, the inference inflection.

Speaker 0

对吧?

Right?

Speaker 0

以前在AI或机器学习任务里,GPU和CPU的配比大概是8比1,现在却更接近1比1了,这挺有意思的。因为现在智能体经常被阻塞,或者频繁调用CPU密集型任务,导致性能瓶颈在GPU和CPU之间来回切换,不像以前那样基本全靠GPU,偶尔才用一下CPU。

That let's say in AI workloads or machine learning workloads, it used to be, like, let's call it eight to one GPU to CPU, and now it's more like one to one, which is like a interesting like, because of how much agents basically are blocked or call out to to CPU heavy stuff, the actual, like, limiting factor, like, swings back and forth from GPU to CPU a lot more than it used to be all GPU and then occasional CPU.

Speaker 0

没错。

Yep.

Speaker 0

GPU,CPU。

GPU, CPU.

Speaker 0

现在是不停地在两者之间切换。

And now it's like just constantly.

Speaker 0

所以你必须把它们放在一起部署。

And you just have to co locate everything.

Speaker 1

是的。

Yeah.

Speaker 1

这正是我们觉得 Modal 吸引人的一点,我们构建了一个覆盖17家云服务商的算力池。

And that's one of the things that actually, again, we see as something appealing about Modal, which is we've built this capacity pool that spans 17 cloud providers.

Speaker 1

所以我们非常擅长在各种不同的云资源上运行任务,

So we're very good at running on various kinds of cloud capacity across

Speaker 0

全球各地都可以。

the world.

Speaker 0

我们自己没有数据中心。

You don't have your own data centers.

Speaker 1

我们确实没有自己的数据中心。

We don't have our own data centers.

Speaker 1

我们只是在很多新兴云平台上运行,是的。

We we just run across a lot of neo clouds and Yeah.

Speaker 0

你们是硬件提供商吗?

Are you metal providers.

Speaker 0

对。

Yeah.

Speaker 0

问号?

Question mark.

Speaker 0

是的。

Yeah.

Speaker 0

对。

Yeah.

Speaker 0

你在算账的时候,就会想,到底在哪个临界点上,你会觉得?

You're you're running the math, and you're like, what what's the cut over point where you're like?

Speaker 1

是的,这是个好问题。

Yeah, that's a good question.

Speaker 1

一方面,我们的优势在于软件层,轻资产、专注软件让我们能快速推进。

I mean, part of it is we we see our differentiator in in the software layer, and being capital light and focusing on the software helps us move really fast.

Speaker 1

到目前为止效果不错,因为有很多人在建数据中心,我们可以和他们高效合作,同时专注于我们独特的地方。

So far, it's worked out well because there are so many other people building data centers that we're able to work effectively with them and again, focus on what makes us special.

Speaker 0

十七家能让你接触到一些本地服务商。

Seventeen gets you into like the local providers sometimes.

Speaker 0

那最有趣的是哪一个呢?

Like, what was the most interesting one?

Speaker 1

实际上,Neo Cloud的数量比你想象的多得多,而且它们的可靠性水平各不相同。

There are actually a lot more Neo Clouds than you expect, and they all have various degrees of various levels of reliability.

Speaker 1

所以我们花了很多时间去打造自己的可靠性层,就是为了解决这个问题。

And that's why it's something we've invested a lot of time in, is actually building our own reliability layer on top.

Speaker 1

哪怕GPU从总线上掉下来,或者出现其他问题,我们的用户任务也不会受影响。

So if the GPU falls off the bus or something happens, we user workloads are not affected.

Speaker 1

这样一来,我们就能使用比普通用户所能用的多得多的资源。

And that that actually lets us use a lot more capacity than Yeah.

Speaker 1

作为用户,你根本用不了这么多。

You know, you as a user would be able to.

Speaker 0

这确实很有用,因为现在大家都清楚你处在哪一层,你也因此专注于成为最强大的云平台。

It's a useful thing to have because I now everyone knows, like, what layer you are and, like, you you sort of optimize for being the super cloud of Yeah.

Speaker 0

所有

All

Speaker 1

没错,就是这样。

That's that's the idea.

Speaker 1

所以当你提到同地部署时,这其实是个挺有意思的现象——我们发现,有人来找我们,就是需要特定位置的CPU或GPU,比如他们明确要求...

And so I guess when you mentioned collocation, that's that's another interesting thing where one thing we've seen is people come to us when they want very specifically located CPUs or GPUs like they want.

Speaker 0

哦,他们是想把计算节点固定在欧洲吗?

Oh, they pin it in, like, EU?

Speaker 0

对,就是这样。

Exactly.

Speaker 0

或者欧洲,欧洲?是出于数据就近处理的需求,还是性能考虑?

Or EU, EU Like, data retraining the locality thing or performance or what?

Speaker 1

要么是数据靠近,要么是延迟低。

It's either data locality or latency.

Speaker 1

他们会在Modal里运行沙箱环境。

Want your they're running sandboxes in Modal.

Speaker 1

而且希望这些沙箱就部署在...

They want them to be right next to

Speaker 0

你的没错。

your Yeah.

Speaker 0

这些方面都很重要。

That is important in all those things.

Speaker 0

你无意中,我不知道算不算巧合,但确实打造了一个非常适合智能体表达自己的基础工具。

So you've kind of accidentally I don't know if it's accident, but, like, you've built the perfect primitive for agents to to express themselves in it.

Speaker 0

说来还挺有意思,每次新增功能都离不开更多的文件系统、更多的CPU。

You know, like, it's almost very funny how every extra development just involves more file system, just involves more CPU Yeah.

Speaker 0

就是你已经有的那些东西。

Just like the things that you already have.

Speaker 0

我对网络方面的应用了解不多,不过你们在Networking上也做了不少出色的工作。

I don't know much about if there's any, like, networking usages that are interesting, but you've also done some good work on networking.

Speaker 1

是的。

Yeah.

Speaker 1

没错,就是这样。

I mean, that's exactly right.

Speaker 1

我们其实就是基于计算、存储和网络这些基础层,搭建人们真正需要的东西。

Like, we we're sort of just taking compute storage and networking and building stuff on that layer for, again, the stuff people need.

Speaker 1

对。

Yeah.

Speaker 1

我们看到一些有趣的网络应用正在出现。

We we see a few interesting networking things coming up.

Speaker 1

比如,有人真正想要的是联网的沙箱环境。

One is people actually want networked sandboxes.

Speaker 1

我们有一个

We have a

Speaker 2

这是为了

It's for

Speaker 0

类似于Docker集群那样的东西吗?

like a Docker cluster type thing?

Speaker 0

不好意思。

Sorry.

Speaker 0

对。

Yeah.

Speaker 0

Docker Swarm。

Docker Swarm.

Speaker 0

那这个叫什么名字?

What is it called?

Speaker 1

Compose。

Compose.

Speaker 1

类似Compose的东西。

Compose type thing.

Speaker 1

是的。

Yeah.

Speaker 1

所以如果你需要Docker Compose,我们的沙箱现在支持一种叫边车的功能。

So actually, if you want Docker Compose, our sandboxes now support this thing called sidecars.

Speaker 1

一个沙箱实际上是一个容器组,你可以在里面同时运行多个容器。

So you can a sandbox is actually a pod of containers, and you can run multiple containers in the sandbox.

Speaker 1

这一点也很有用,因为说到网络,用户希望对沙箱的出站网络有更多控制权。

Also useful because, going back to networking, people want a lot of control over outbound networking from a sandbox.

Speaker 1

比如,他们可能想部署中间人代理,用于记录日志、控制对特定域名的外联行为,或者注入凭证。

Like, they might wanna run man in the middle proxy for, like, maybe logging stuff for RL or controlling how egress can happen to a domain, injecting credentials.

Speaker 1

所以我们不得不自己开发了大量这类功能。

And, yeah, so we've kind of had to build a lot of that stuff ourselves.

Speaker 1

对。

Yeah.

Speaker 1

但有时候,用户其实希望沙箱能跨多个节点相互通信,这是我们最近看到的一个新趋势。

But then also sometimes people actually want sandboxes spanning multiple nodes to talk to each other, which is an emerging thing we're seeing.

Speaker 1

我们之所以支持这个功能,最初是出于别的原因。

We have support for that for for a different reason.

Speaker 1

至于它会不会成为主流,我们还得再看看。

And yeah, we'll see if that becomes the

Speaker 2

就像只是

Like just

Speaker 0

一个开放的套接字。

an open socket.

Speaker 0

这跟MTLS直接相关。

This is directly like MTLS.

Speaker 1

我们确实支持这个功能,你可以在沙箱内部建立一个隧道。

We do support that, which is you can expose a tunnel inside the sandbox.

Speaker 1

对。

Yeah.

Speaker 1

然后你可以把这个隧道暴露给公网,也可以在上面加一层HTTP代理。

And then you can either expose it to public Internet or it can be and you can add like a HTTP Odds layer above it.

Speaker 1

但我们还有一个叫IPv6的覆盖网络功能,之前没提到过。

But we have this thing called I six p n, which we haven't talked about, which is this like overlay network using IPv6 addresses.

Speaker 1

如果启用了这个功能,同一个工作区里的Modal容器就能用私有的IPv6地址互相访问,其他人完全访问不到。

So if modal containers within the same workspace, when this enabled, can actually address each other using this private IPv6 address, and no one else can.

Speaker 1

是的。

Mhmm.

Speaker 1

这相当于为容器提供了一种私有网络。

This is like sort of private networking for containers.

Speaker 1

我们其实是为自己的争议性训练产品才开发了这个功能,作为基础组件。

We actually built it because we needed it as primitive for our disputed training product.

Speaker 1

我们还有另一个功能:你可以在函数上加一个装饰器,就能获得一组 GPU,它们之间通过 RDMA 网络通信。

So we have this other feature, which is you can add a decorator to a function, and you get a cluster of GPUs, and they have RDMA networking.

Speaker 1

你可以运行真正无服务器的分布式训练任务,而这正需要这个覆盖网络。

So you can run a distributed training job that's truly serverless, and we need the overlay network for that.

Speaker 1

但后来我们发现,人们还在用它做别的事情,我也挺好奇,到底还会有人拿它来干什么。

But then we've seen that people are using it for other reasons, and I'm kinda intrigued to see, yeah, what would people do with it.

Speaker 0

先搭好基础组件,让用户自己去探索。

Build primitives and let people figure it out.

Speaker 0

对吧?

Right?

Speaker 2

是的。

Yeah.

Speaker 2

没错。

Exactly.

Speaker 2

你这么说挺有意思的。

You put that up pretty interesting.

Speaker 0

他们好像真的读过我们的文档。

They're like they read the docs we think.

Speaker 0

让我先试试这个。

Let me use that first.

Speaker 0

一些你根本没打算

Something that you never intended to

Speaker 1

连文档里都没提过的东西。

is literally not even in our docs page.

Speaker 1

人们不知怎么就发现了,还真的在用。

People somehow found it, and they're using it.

Speaker 2

你刚才用RDMA和TCP做对比,讲得特别清楚,尤其是大规模强化学习场景下传输速度的差异,这功能本来就是内置的。

I mean, the way you portrayed it with, like, RDMA versus TCP, like, very well laid out, but just the transfer speed change at scale for RL, yeah, you have it built in.

Speaker 2

我敢打赌,肯定有人在你正式推出这个功能之前,就已经发现它了,而且觉得它效率高得多。

I'm sure someone found it, found it to be a lot more efficient before you actually made a thing out of it.

Speaker 2

对吧?

Right?

Speaker 1

是的。

Yeah.

Speaker 1

而且我不是故意挑刺,但其实这个叠加网络本质上就是基于 TCP 的叠加网络。

And and not to split hairs, I I guess the the overlay network actually is the TCP overlay network.

Speaker 1

我们之所以用它,是因为在建立 RDMA 网络之前,必须先通过它完成密钥交换。

The reason we have that is you need that to do the key exchange for RDMA before you set up the RDMA network on top of that.

Speaker 1

但后来有人发现了这个 TCP 层,直接拿来用了。

But then people found the the TCP part.

Speaker 0

我能跟你说吗?这对我而言真是个重要时刻。

Can I tell you this is like a big moment for me?

Speaker 0

因为确实如此。

Because Yeah.

Speaker 0

我一共审了2200份提交材料,都是为世界博览会准备的。

So I, you know, I review 2,200 submissions for for the World's Fair.

Speaker 0

没错。

Yep.

Speaker 0

然后我收到了约翰·奥斯特哈尔特发来的东西,你认识他吗?我不确定你知不知道这个人。

And then I got this from John Osterhalt, who I don't know if do you know John Osterhalt?

Speaker 0

他

The

Speaker 1

这个名字听起来有点耳熟。

My name sounds familiar.

Speaker 0

他是一位知名教授,写过很多关于软件设计的书,这份投稿就是他选中的演讲内容。

He published a he's a well known professor, published a lot of interesting software design books, and this is the talk he chose to submit.

Speaker 0

主题是关于推理过程中的RDMA技术。

It's on t it's on RDMA at inference.

Speaker 0

我心想,这位搞操作系统出身的专家,居然会对RDMA感兴趣?

And I'm like, you wouldn't think that this guy who is, like, kind of operating systems guy would care about RDMA.

Speaker 1

我的意思是,这对我来说很合理,毕竟这是云计算。

I I mean, it it makes sense to me because This is the cloud.

Speaker 1

对吧?

Right?

Speaker 1

没错。

That yeah.

Speaker 1

比如你怎么在不同设备间传输KV缓存,如何高效地把训练用的GPU上的权重迁移到推理用的GPU上,这里面有太多可调的空间,本质上就是一个内存调度和搬运的系统问题。

Like like, the way you move around your KV cache and how efficiently you can do it, how efficiently you move your weights from your training GPUs to your inference GPUs in RL is there's a lot of degrees of freedom, and it is basically a systems problem of moving memory around and scheduling.

Speaker 0

这让我意识到,我对网络方面的理解有多原始。

This shows you how primitive my understanding of networking stuff is.

Speaker 0

这跟WireGuard属于同一领域吗?

Is this like the domain of WireGuard as well?

Speaker 1

不完全是。

Not quite.

Speaker 0

所以是相关联的?

So It's adjacent?

Speaker 0

那你把整个情况说清楚吧。

So explain everything.

Speaker 0

当然可以。

Sure.

Speaker 0

没问题。

Sure.

Speaker 2

我们是怎么在不同GPU之间移动内存的?

How do we move memory around GPUs?

Speaker 0

不好意思,我先插一句。

Well, sorry.

Speaker 0

是的。

Yeah.

Speaker 0

那确实是内存。

That is memory.

Speaker 0

抱歉。

Sorry.

Speaker 0

我刚才可能说了五分钟,讲的是你设置的私有IPv6地址。

I I was talking more and maybe I was talking, like, five minutes back about the the private IPv6 addressing that you've set up.

Speaker 0

这本质上就是一个VPN。

It's basically a VPN.

Speaker 1

是的。

Yeah.

Speaker 1

有点像VPN。

It's sort of like a VPN.

Speaker 1

而且没错,WireGuard确实如此。

And, yeah, WireGuard is is yeah.

Speaker 1

你说得对。

You're right.

Speaker 1

没错,就是这样。

It is it is Right.

Speaker 0

你已经转到下一个话题了。

You already moved on to the topic.

Speaker 1

差不多,明白了。

Similar Okay.

Speaker 1

在同一类场景里,WireGuard 是加密的,不过这个嘛,

In the same space, WireGuard is encrypted, and and this is Oh,

Speaker 0

你不需要加密。

you don't need encrypted.

Speaker 0

对。

Yes.

Speaker 1

它没有加密。

It's not encrypted.

Speaker 1

这才是关键区别。

That's the main difference.

Speaker 1

这是 TCP,我们用 eBPF 程序来判断是否允许某个 TCP 连接。

This is TCP, and we have eBPF programs that will reject or allow the TCP connection based on whether you're allowed to do it.

Speaker 0

以前得用完整的服务边车,现在是直接在 Linux 内核里做了?

Used to involve a full sidecar, but now you have in the Linux kernel?

Speaker 0

对。

Yep.

Speaker 0

没错。

Yeah.

Speaker 0

我不确定这算不算自然地接上我之前对分布式训练的质疑,嗯。

I don't know if this is a natural follow on to the topic of, like, my skepticism on distributed training Mhmm.

Speaker 0

人们花大价钱买电缆来连接GPU,可就连这个都还不够快,这才是真正的瓶颈。

Is that, well, like, people spend a lot of money on, like, cables to hook up GPUs, and even that is not, like, fast enough, and that's the bottleneck.

Speaker 0

你的网络够快吗?

Is your networking fast enough?

Speaker 1

是的。

Yeah.

Speaker 1

所以你是说那种完全分布式的训练,比如Dylocore之类的,跨数据中心的那种,是吧?

So I I guess you're talking about sort of fully distributed training, like a Dylocore or something, which is, like, cross data That would

Speaker 0

对。

be yes.

Speaker 0

这已经是最极端的情况了。

That's the extreme.

Speaker 0

对。

Yeah.

Speaker 0

你算是居中吧,其他人则会在实际的数据中心里用上Mellanox这样的线缆。

You're kind of in the middle, and then other people would have, like, the Mellanox cables up in in, like, their actual data center.

Speaker 1

在Modal上运行多节点训练时,RDMA——我觉得Mellanox或者InfiniBand用的都是RDMA。

When you run multi node training on on Modal, RDMA, I think Mellanox is or InfiniBand is like a is you also use RDMA.

Speaker 1

这本质上是一种绕过TCP网络栈、让节点之间更快传输数据的方法。

But basically, it's a way to bypass the TCP networking stack and transfer stuff much faster between one node to the other.

Speaker 1

我们内部的网络带宽大概是每秒三太比特,这已经是行业标准了。

And and we we have, I think, like, three terabit per second internal networking, which is the standard that's needed.

Speaker 1

明白了。

Okay.

Speaker 0

所以我之前误解了CPU TCP 3.2那部分的意思。

So I misunderstood what part of the CPU TCP 3.2 of Okay.

Speaker 0

是的。

Yeah.

Speaker 0

这工作确实非常出色。

I I mean, very impressive work.

Speaker 0

所以,你是把 Modal 的理念延伸到了交易集群上,对吧?

So is it effectively you're you're extending sort of, like, the modal philosophy to the the trading cluster?

Speaker 0

对。

Like, yeah.

Speaker 1

对。

Yeah.

Speaker 1

我们当然不是为了大规模预训练设计的。

And we're we're not going for, obviously, like, large scale pretraining runs.

Speaker 1

我们做多节点训练,主要是应对大量小规模的后训练需求。

The thing that we've built multi node training for is we see a lot of smaller scale post training.

Speaker 1

很多人会用中等规模的量化模型做后训练,以提升推理时的精度。

Like, people are post training, like, medium sized quant models so they can get higher quality on inference.

Speaker 1

这正好适合这样的场景。

This is a perfect fit for something like that.

Speaker 0

没错。

Yeah.

Speaker 0

我觉得很多实验室都是这样,先在微调阶段尝试各种方向,最后把发现有效的结果合并起来。

That is my impression of how a lot of these labs explore branches in post training and then eventually merge whatever they find in.

Speaker 1

对。

Yeah.

Speaker 1

我们看到的另一个多节点训练用途是,即使你有大型集群,研究人员还是在做小规模的训练任务,确实如此。

The the other use case we've seen for multi node training is even if you have a big cluster, your researchers are still doing small runs And Yes.

Speaker 1

这样能更好地利用弹性资源,没错。

You're having elasticity there better Yeah.

Speaker 1

很多情况都是这样。

A lot

Speaker 0

这实际上是当前自动研究的主要瓶颈,因为你得给模型分配一些GPU。

The like, this is actually, like, the current limiting factor for auto research, which is, like, you you basically need to give your model some GPUs.

Speaker 1

我们有个关于自动研究的博客,用的是Modal,确实不错。

We have a blog that you run on auto research and Modal is Yeah.

Speaker 1

对。

Yeah.

Speaker 1

说起来,它确实是个挺合适的平台。

Like, turns out to be a pretty good substrate for that.

Speaker 0

我的理解是,自动研究这个词涵盖的内容挺多的。

So my impression is auto research means many things.

Speaker 0

比如说,安德烈·卡佩西那类项目。

Like, if anything, the Andre coins.

Speaker 0

目前还更像是科学展览阶段。

Right now, it's still science fair.

Speaker 0

对吧?

Right?

Speaker 0

说到底,我还真不知道该怎么真正实现它。

Like, not not not actually, like I don't know how we can Yeah.

Speaker 0

实际上确实要

Actually do

Speaker 1

教的也是同样的内容。

taught the same thing.

Speaker 1

对。

Yeah.

Speaker 1

你当然清楚。

You would know.

Speaker 1

我们内部的训练和推理团队其实经常用这种通用架构。

We like, our internal both training and inference teams actually use this sort of the general shape of this quite a bit.

Speaker 1

我们有一个内部仓库叫 AutoInference,就是用这个框架自动化的我们的 FD 工作,让智能体自动运行各种参数组合。

Like, we have this one internal repo called AutoInference, which essentially we've automated our own FD efforts using this harness, which is the agent will just spin up a sweep of different things.

Speaker 1

它甚至会运行 NVIDIA Insight Profiler,调整配置,最终找到最优解。

It'll even run like NVIDIA Insight Profiler, and it'll, like, tweak configs and it'll arrive at the right thing.

Speaker 1

它还会更换你的 GPU。

It'll change your GPUs.

Speaker 1

从H200到B200都适用,效果真的很好。

It's both from h 200 to b 200, and it actually works really well.

Speaker 1

不错。

Nice.

Speaker 1

所以

So

Speaker 0

顺便说一句,我很欣赏你的FTE岗位这么技术导向,还得亲自做这些事。

By the way, I enjoy that your FTE is so technical that you have to do these things.

Speaker 0

和其他人的FTE相比,这确实很不一样。

It's very different for FTE from other people.

Speaker 1

是的。

Yeah.

Speaker 1

对。

Yeah.

Speaker 1

没错。

Yeah.

Speaker 1

我们的FTE团队本质上是做应用型推理或应用型训练研究的。

For our FTE team is essentially, they're, like, applied inference researchers or applied training researchers.

Speaker 1

有人跟我说,他们必须得

Someone told me, like, they have to be

Speaker 0

能动手搭建,同时也得会推广。

able to build, but they also have to be able to sell.

Speaker 0

他们是必须去推销,还是说本来就挺厉害的?

Do they have to sell or are they, like, they're good?

Speaker 0

这属于售后阶段的事了。

This is, post sale type of thing.

Speaker 1

能跟客户有效沟通,这一点非常重要。

It does being able to talk to a customer and engage effectively with them matters a lot.

Speaker 0

他们都在做同一件事。

They're all on the same thing.

Speaker 1

你懂的。

You know?

Speaker 1

但这其实并不算是销售工作。

But it's it's not really a sort of sales thing.

Speaker 1

我们会给他们搭配解决方案架构师,那些人更偏向售前支持。

We we pair them with We have solution architects as well that are more on the presales side.

Speaker 0

咱们多花点时间聊聊自动研究吧。

Okay, let's spend a bit more time on auto research.

Speaker 0

今年这可是我的重点方向。

This is a big focus for me for this year.

Speaker 0

这个方向最终会走向哪里?

Where does this go?

Speaker 0

人们已经探索得足够多了吗?

You know, like have people explored enough?

Speaker 0

你看,那些图表总是显示进步、进步,然后就 plateau 了,接着又发现新的突破点。

Like, you know, there's all these beautiful charts of, like, improve it, improve, then they sort of level off a bit, and then you find the next thing.

Speaker 0

这本质上是不是比普通训练高了一个抽象层次?

Is this basically sort of one abstraction up from normal training?

Speaker 0

我们是这么理解的吗?

Is that how we think about it?

Speaker 0

还是你有别的看法?

Or do you think about it differently?

Speaker 0

比如,是模型层面的训练,还是那种高度依赖AI的超参数搜索?

Like, model level training versus basically a high like, AI driven hyperparameter search.

Speaker 0

有些人管这叫神经网络架构搜索之类的,对吧?

Some some people call it, like, neural architecture search or whatever.

Speaker 0

没错。

Right?

Speaker 0

比如说

Like

Speaker 1

是的。

Yeah.

Speaker 1

我的意思是,我见过的那些应用,根本没涉及到架构层面。

I mean, I so the the stuff I've seen people do with it is nowhere on the architecture level.

Speaker 1

其实就是调参,但它是靠模型的直觉来引导的超参数搜索。

It's pretty much tweaking parameters, but it's it's basically a hyperparameter sweep that's guided by some sort of model intuition.

Speaker 1

所以相比其他任何搜索方法,这种方式高效多了。

So it's, like, much more efficient than whatever other sweeper you would

Speaker 0

没错。

have.

Speaker 0

是的。

Yeah.

Speaker 0

说到底,关键看你愿意把算力花在哪一块。

I mean, you just know, it's just a question of where you wanna spend your computer.

Speaker 0

你懂的。

You know?

Speaker 0

对吧。

Right.

Speaker 0

毕竟,你只要砸足够的钱进去,总能撞出点东西来。

Because, yeah, you can just throw infinite amounts of money on this, and somehow you'll bang on Shakespeare.

Speaker 0

你知道的。

You know?

Speaker 1

对。

Yeah.

Speaker 1

无限猴子。

Infinite monkey.

Speaker 1

对。

Yeah.

Speaker 0

这对Modal来说特别合适。

I mean, so, like, very good for Modal.

Speaker 0

而且我觉得,代理能够启动其他代理也非常重要。

And I I think it's also very important that agents can spin up other agents.

Speaker 0

它们可以搭建自己的基础设施。

They can spin up their own infrastructure.

Speaker 0

这对你来说特别有帮助。

Like, very, like, very good for you.

Speaker 0

大语言模型在生成 Modal 代码方面表现如何?

How good are LLMs at generating modal code?

Speaker 0

你知道,在大型语言模型出现之前,优势在于你拥有数据。

Like, you know, like, the benefit of existing pre LLMs is that you are in the data?

Speaker 1

是的。

Yeah.

Speaker 1

它们的表现其实相当不错。

They're they're actually surprisingly good.

Speaker 1

我觉得在 Cloud 4 之前,他们还不行,但现在他们能直接开箱即用,一次性搞定。

I think, like, pre Cloud four, they were not, and then now they're able to one shot stuff out of the box.

Speaker 1

我们之前试着搞了个 Modal Bench,用来处理那些大模型还搞不定的难题,然后我想问,那个……

We were playing around with releasing, like, a Modal Bench for, like, the harder things that the LMs cannot do yet, and and maybe What what's

Speaker 0

举个例子

an example

Speaker 1

是啥?

of that?

Speaker 1

我觉得,如果没有正确的指导和技能,智能体有时很难掌握如何利用我们的其他可观测性工具。

I think the the things that sometimes agents struggle with without right guidance and a skill is how to use the rest of our observability.

Speaker 1

比如,当某个环节出问题时,该怎么去看日志,然后找到该修正的地方?

Like, how to something is failing, like, how do you look at the the logs and then update the right thing?

Speaker 1

这其实是一种对这些问题的推理能力。

It's sort of reasoning about that.

Speaker 1

但它们现在能一次性完成很多任务,确实如此。

But they're able to one shot, like Yeah.

Speaker 0

光靠加一个技能是不够的。

Can't just add a skill to it.

Speaker 0

对。

Yeah.

Speaker 1

所以我们现在有了一个 Modal 技能,这正是我们开发 Modal Bench 的主要原因。

So so we have a modal skill now that which is kind of actually why we built this Modal Bench.

Speaker 1

就是为了发现这类问题,然后在我们的系统里加以改进,确实如此。

It's to find things like that so we can we we can address them in our Yeah.

Speaker 0

技能。

Skill.

Speaker 0

对。

Yeah.

Speaker 0

没错。

Yeah.

Speaker 0

不行。

No.

Speaker 0

不行。

No.

Speaker 0

我的意思是,这还不错。

I mean, it's it's good.

Speaker 0

你们现在有资源短缺的问题吗?

Are you facing any shortages?

Speaker 0

我们经常聊GPU短缺,但CPU和内存也一样。

You know, like, we talk a lot about GPU shortages, but also CPU, also memory.

Speaker 0

是的

Mhmm.

Speaker 1

对

Yeah.

Speaker 1

我们增长很快,所以必须更主动地做好规划。

We have had a lot of growth, which means that there's a we've had to be much better about proactive Yeah.

Speaker 1

容量方面,我们已经

Capacity So we we have Which, by

Speaker 0

顺便说一句,这简直像是MBA毕业生的理想工作。

the way, like, it's like an MBA's, like, dream job.

Speaker 0

就是专门做这种规划。

It's like just planning this stuff.

Speaker 0

我记得上次我和你聊这个的时候,还跟别人讨论过。

I think last time you and I talked with somebody about this.

Speaker 1

对

Yeah.

Speaker 1

我们有一支非常能干的团队,负责叫计算策略的岗位。

I mean, we have a a really competent team of people that we call in the roles called compute strategy.

Speaker 1

所以,有谁对计算策略这个方向感兴趣吗?

So, yeah, anyone listening here who wants to work on Compute strategy?

Speaker 1

是的。

Yeah.

Speaker 0

普通人一般管这叫财务计划与分析,或者类似的名字。

I think the norm the normies call it FP and A or something.

Speaker 0

但实际上这比那更复杂。

Well, it's more

Speaker 1

这根本不是财务计划与分析。

it's it's not FP and A.

Speaker 1

这里面有很多有意思的财务问题,比如一年期和三年期预留资源该怎么搭配?

It's it's there's a lot of interesting financial questions of, like like, what is the blend between one year and three year reservations?

Speaker 1

我们该怎么预测自己的资源容量?

How do we forecast our own capacity?

Speaker 1

我们得好好建模,特别是因为我们的算力在不同类型的GPU和不同地区之间可以灵活调配,还得对供应链未来怎么发展有自己的判断,然后据此做出决策。

How do we basically, especially since our capacity is very fungible across different GPU types and different regions, like, you have to model a lot of it, and you also have to have an opinion on how the supply chain is gonna evolve, and then you have to, like, take bets based

Speaker 0

基于这些判断。

on that.

Speaker 0

原子化交易。

Tokatomics.

Speaker 0

这可能不算什么真知灼见,但我一直在想,还有哪些行业也遇到过类似的问题——我们不可能在这些难题上第一个吃螃蟹。

This is, like, probably not a real point, but at the end, I was trying to think about, like, what other industries I was trying to think about, you know, we cannot be first to, like, these kinds of problems.

Speaker 0

是的。

Yeah.

Speaker 0

还有哪些行业经历过这种事?

And what other industries have had this?

Speaker 0

我想到了航空公司,它们处理燃油成本的方式。

And I was like, airlines with with fuel.

Speaker 0

它们得对燃油价格进行对冲。

And, like, they have to hedge their fuel.

Speaker 0

长期以来,西南航空因为大胆押注燃油价格,成本远低于其他航空公司。

And, like, I think for a long time, Southwest, because they made them like a hero fuel bet, they like were like super low cost because compared to everyone else.

Speaker 1

是的。

Yeah.

Speaker 1

我之前还真没想过这一点。

I hadn't thought about that.

Speaker 0

而我们现在

And then we're

Speaker 2

也正处在一个挺有意思的时代,你知道的。

in a fun time too, you know?

Speaker 2

对。

Yeah.

Speaker 1

对我们来说,整个计算业务的核心之一,就是把资源管理做到极致。

It's a lot of the compute business in general for us is also about being very good about capacity management.

Speaker 1

这不仅能让单位经济效益更好,长期来看,也能为客户创造更多价值。

That is how you have great unit economics, but also over time, it's how you can unlock more value for customers.

Speaker 1

比如,我们现在正在开发一种功能,允许那些对延迟不敏感的客户享受更优惠的价格。他们可以在大概24小时内收到结果,本质上就是一个批量处理层级。

Like, one of the things we're building now is like a way for customers to get if they don't care about latency, like, get much cheaper pricing and they'll get results back in, like, next twenty four hours or something, like a batch tier, essentially.

Speaker 1

对。

Yeah.

Speaker 1

这些都是我们可以利用的手段,因为我们掌控着整个技术栈、调度系统等等,从而能为用户提供足够的……

And those are levers we have because they control the whole stack and scheduling and whatnot to give people sufficient

Speaker 0

是的。

Yeah.

Speaker 0

我觉得它们没那么受欢迎。

I feel like they're not as popular.

Speaker 0

比如像 Frontier Labs 提供的那些 API。

Like, like, the the Frontier Labs have all those APIs.

Speaker 0

它们的受欢迎程度远不如应有的水平。

They're not as popular as they should be.

Speaker 1

我们看到的对这类东西的需求,其实并不是针对大语言模型的。

The demand that we see for something like that is actually not for LLMs.

Speaker 1

不过有时候人们确实需要运行评估任务或生成合成数据,这种情况下就挺合适的。

Although sometimes people wanna run evals do and synthetic data prep, and and there it makes sense.

Speaker 1

好的。

K.

Speaker 1

但很多非LLM公司,比如做计算生物学的,他们从来没跑过大规模批处理任务,也不在乎结果什么时候出来。

But it's from a lot of non LLM companies, like people who are doing computational bio, like they they haven't run really big batch jobs and they don't care about when they get

Speaker 0

他们不着急要结果。

it back.

Speaker 0

是的。

Yeah.

Speaker 0

而且,这其实也跟另一个问题很像——就是任务能不能按时完成。

And, like, they have a reasonable it's it's also, like, a cousin to the stopping problem of, like, will this finish in time?

Speaker 0

是的。

Yeah.

Speaker 1

你可以给它设定一个时间上限。

You you can you can bound it.

Speaker 1

是的

Yeah.

Speaker 1

你可以给用户设定服务等级协议。

Like, you can give people SLAs on it.

Speaker 1

是的

Yeah.

Speaker 0

对

Yeah.

Speaker 0

我觉得有趣的是,Modal接下来的发展方向。

I think what's what's interesting is, like, the the next phase of Modal.

Speaker 0

对

Mhmm.

Speaker 0

现在你们已经站稳脚跟,成了这些顶尖公司中知名的计算平台,大家对你们有什么新的期待?

Like, what, you know, do people expect from you now that you're sort of established and you're, like, a well known compute player among all these leading companies?

Speaker 0

你们刚办完一次推理功能的发布周,我们之前也简单聊过这些发布。

You had an inference launch week, and we talked a little bit about the launches.

Speaker 0

还有别的吗?

Like, what else?

Speaker 0

人们还应该知道些什么?

Like, what else should people know?

Speaker 1

我们正在打造一些能让用户生活更轻松的基础功能。

We are building primitives that make our users' lives much easier.

Speaker 1

比如在大语言模型推理方面,会有成千上万家公司不再自己训练模型,而是直接部署开源模型来做推理。

So I think, for example, with LLM inference, thousands more companies are going to post training their own models and deploy open source models for inference.

Speaker 1

所以我们一直在思考,什么样的产品形态最适合这种情况。

So we're thinking a lot about what is the best product shape for that.

Speaker 1

这涉及到从我们的训练平台到能实现前沿性能的端点服务,方方面面。

And that involves everything from our training gym to then endpoints that get frontier level performance.

Speaker 1

不过说实话,我还没跟谁深入聊过这个。

You know, again, but I haven't talked to anyone.

Speaker 1

在其他行业里,情况看起来会不太一样。

It looks somewhat different on other verticals.

Speaker 1

我们还看到很多实时音视频方面的应用,所以我们正在开发区域路由和故障切换这类功能。

Like, we're also seeing a lot of real time audio video stuff in there, which is why, like, we're working on things like regional routing with with fallbacks.

Speaker 1

这样用户就能接入离他们最近的GPU。

So you can you can get sort of GPUs that are as close to users as possible.

Speaker 1

从而实现视频流媒体等场景的低延迟体验。

So you you get like low latency for video streaming and and whatnot.

Speaker 1

在智能代理这一块,我们仍然和客户保持紧密合作,因为他们的需求变化实在太快了。

And then on the agent side, it's we're still sort of working very closely with our customers because stuff is changing so fast in terms of what they need.

Speaker 1

除了沙盒和持久化文件系统,当人们构建生产级代理时,还会需要很多其他功能。

And I think beyond sandboxes and persistent file systems, there's a lot of other things people will need from this agent stack as they build production agents.

Speaker 1

所以我们也在考虑那些能填补这些需求的其他功能。

So, yeah, we're thinking about those other things that fit in there.

Speaker 0

我想了解一下,还有哪些其他功能?

I wanted to ask what what the other things are.

Speaker 0

对。

Yeah.

Speaker 0

我应该把它分享出来。

I probably should share it.

Speaker 0

我觉得可以。

I think okay.

Speaker 0

我经常思考云计算的核心组成部分,你们也提到过计算、存储和网络。

So I do think a lot about the principal components of cloud, and you do talk about compute storage networking.

Speaker 1

对。

Mhmm.

Speaker 0

是的。

Yeah.

Speaker 0

到目前为止,对我来说都没问题。

Because so far for me, it's fine.

Speaker 0

就前几代云计算而言,确实没问题。

So far for the I mean, the first couple generations of cloud, it's fine.

Speaker 0

代理系统有什么本质上的不同,以至于需要新的权限级别?

What's different qualitatively different about agents that you you need some new permission level?

Speaker 0

很多人,你知道的,显然没问题。

Like, lot of people you know, obviously okay.

Speaker 0

我会不停地抛出一些想法,希望能激起你的灵感。

And I'll just kinda spew tokens at you until until it, like, hopefully sparks something.

Speaker 0

对。

Yep.

Speaker 0

现在的新情况是,Cloud Code 做的事,会绕过权限,或者通过命令直接放行,诸如此类。

Like, the the new level now is whatever Cloud Code does, which is dangerously skip permissions or, like, allow this by command or, like, whatever.

Speaker 0

对吧?

Right?

Speaker 0

有时候他们就会说,好吧。

And and sometimes they're like, okay.

Speaker 0

我们有个自适应思维模式,简单说就是:相信我就行。

We we have, like, this adaptive thinking mode where, like, just just trust me, bro.

Speaker 0

我会替你做决定。

I I will make calls for you.

Speaker 0

就这些了吗?

Is that it?

Speaker 0

你懂的。

You know?

Speaker 0

其实就是由语言模型来管理权限,差不多是这样。

Like, basically, like, sort of LM mediated permissions.

Speaker 2

用目标循环驱动,然后疯狂刷请求,老兄。

Looping it with a goal and flooding, bro.

Speaker 1

是的。

Yeah.

Speaker 1

我对语言模型在沙盒层级上管理权限这事持怀疑态度,毕竟你得有明确的边界。

I mean, I'm I'm skeptical of LM mediated permissions for stuff that is at the sandbox level because you do want hard boundaries.

Speaker 1

没错。

Yeah.

Speaker 1

不然的话,很明显有人会把数据偷走。

Otherwise, obviously, someone can exfiltrate stuff.

Speaker 1

但是呢,就是

But, like like

Speaker 0

也许这种想法有点过时了。

like, maybe maybe that's old school thinking.

Speaker 0

我们可能才是老古董。

Maybe we're the dinosaurs.

Speaker 0

也许所谓的AIOS或者LLMOS,本质上就是个牛逼的LLM内核。

Maybe the AIOS or the LLMOS is really the kernel as a goddamn LLM.

Speaker 0

这让人感觉挺不舒服的。

Like, it makes you feel uncomfortable.

Speaker 0

对。

Yeah.

Speaker 0

明白。

Know.

Speaker 0

但这就是信任LLM的代价。

But that's what trusting the LLM is.

Speaker 0

想象一下,一个完美的球形奶牛式大模型。

Like, imagine a spherical cow perfect LLM.

Speaker 1

对。

Right.

Speaker 1

就让它这样吧。

Let it.

Speaker 1

也许吧。

Maybe.

Speaker 1

也许吧。

Maybe.

Speaker 0

我想试试它的极限在哪。

I wanna test the boundaries.

Speaker 0

对吧?

Right?

Speaker 0

当然,我其实并不真这么认为,但我就是想看看自己错在哪,因为这才是真正的分歧所在。

Like, obviously, I I don't believe that, but I wanna see where I'm wrong because that's that's the non consensus.

Speaker 1

是的。

Yeah.

Speaker 1

我的意思是,当你想要的时候,总是需要硬性限制,同时也可以搭配一些更灵活的约束。

I mean, I think you always need hard guardrails when you want and you can pair those with softer guardrails.

Speaker 1

对吧?

Right?

Speaker 1

而且这个请求是通过中介处理的。

And the ask a deal on mediated.

Speaker 0

我想请你谈谈 Modal 之外的整个生态系统的看法。

There I'll get you end with a couple of your commentary on, like, the ecosystem outside of Modal.

Speaker 0

每个平台都有自己的托管代理。

Managed agents, everyone has one.

Speaker 0

Gemini、OpenAI、Cloud,这些对你来说都很有用。

Gemini, OpenAI, Cloud, very useful for you.

Speaker 0

但同时,这也是他们逐步渗透进你领域的手段。

But also, like, it is their way of starting to edge into your space.

Speaker 0

是的。

Yeah.

Speaker 0

怎么回事?

What's going on?

Speaker 1

是的。

Yeah.

Speaker 1

我们非常高兴能与Anthropic以及其他一些基础实验室合作,不过有些合作伙伴我们暂时不方便透露。

I mean, we're very excited to partner with Anthropic and some of the other foundational labs, we'll not name who we're also working with.

Speaker 1

我们认为,对于刚开始构建智能体的人来说,托管智能体是个很好的起点。

The way we see it is the managed agent thing is a great place to start if you're starting out building an agent.

Speaker 1

但当你准备打造更接近生产环境的系统时——比如像Ramp这样的公司,他们不仅自己开发智能体,还用我们的平台运行他们的会计代理和对外服务代理——

And but but then when you get to building something more production grade, like you're a company that's like Ramp, that's building their own Ramp also runs their accounting agent on us, their external facing agent.

Speaker 1

你就需要对计算基础组件有更多控制权,比如:智能体能访问哪些文件、如何持久化存储、如何进行快照和恢复,

You need a lot more control over your compute primitive on things like what sort of how do you persist different files that the agent has access to and how do you snapshot and restore?

Speaker 1

以及如何管理网络访问。

How do you control the networking?

Speaker 1

也许你需要GPU。

Maybe you want GPUs.

Speaker 1

到了这一步,你就希望有个专门的沙盒服务商能提供这些资源。

When you get to that point, you kind of want a specialized sandbox provider that gives you those things.

Speaker 1

这正是我们想扮演的角色。

And that's the role that we are trying to play.

Speaker 1

是的。

Yeah.

Speaker 1

我们对运行框架本身没什么特别看法,不管是用云托管代理连上Modal沙盒,还是直接在Modal沙盒里运行框架,都行。

We don't really have an opinion on the harness, whether it runs in it's a Cloud Managed Agent and you hook it up to Modal Sandbox, or you run the harness in Modal Sandbox.

Speaker 1

我们等着看大家最终会怎么选。

We'll see where people converge with that.

Speaker 0

对。

Yeah.

Speaker 0

你对元框架有什么看法吗?

Do you have any opinions on, like, the meta harnesses?

关于 Bayt 播客

Bayt 提供中文+原文双语音频和字幕,帮助你打破语言障碍,轻松听懂全球优质播客。

继续浏览更多播客