最新 微软与美国政府警告:重大技术故障还将持续 The Verge
硬件与算力 ●●●●○

AWS 推出 TorchNeuron 直击 Nvidia 软件优势

Amazon is taking its biggest shot at Nvidia yet with new TorchNeuron dev tool

摘要Summary

AWS 发布 TorchNeuron 工具,开发者只需改动一行配置即可把基于 PyTorch 的 AI 应用迁移到 Amazon 自研芯片 Trainium,无需重写代码。Amazon 还计划向 PyTorch 上游贡献代码,移除框架与特定芯片绑定的部分,推动其硬件中立化。此举直接挑战 Nvidia 依靠 CUDA 建立的软件生态壁垒。

AWS released TorchNeuron, a tool that lets developers move PyTorch-based AI apps onto Amazon's Trainium chips by changing just one line of configuration, with no code rewrite. Amazon also plans to contribute upstream changes to PyTorch to remove code tying the framework to specific chips, making it more hardware-agnostic. The move directly challenges Nvidia's CUDA-driven software lock-in.

  • 改一行配置即可将 PyTorch 应用迁至 Trainium
  • Amazon 将向 PyTorch 上游贡献去芯片绑定代码
  • AWS 称 Trainium 兼顾训练与推理,主打性价比

全文对照Full text · 中 / EN

周一,Amazon Web Services 发布了一款名为 TorchNeuron 的工具,让 AI 初创公司能够轻松地将他们的 AI 应用迁移到亚马逊的 AI 芯片 Trainium 上。此举也是亚马逊对英伟达软件优势的直接挑战——正是这一优势帮助英伟达成为 AI 应用的默认硬件选择,并推动其崛起为 AI 硬件的首选供应商。

On Monday, Amazon Web Services released a tool called TorchNeuron that lets AI startups easily move their AI apps onto Amazon’s AI chip, Trainium. In doing so, Amazon is also taking a direct stab at the software advantage that has helped Nvidia become the default hardware choice for AI apps and spurred its rise as AI hardware provider of choice.

TorchNeuron 可与 PyTorch 配合使用,后者是开发者用来构建、训练和运行 AI 模型的免费开源工具包。据亚马逊介绍,它让用 PyTorch 编写的 AI 应用只需更改一行配置即可在 Trainium 上运行,无需重写代码。

TorchNeuron works with PyTorch, a free, open source toolkit that developers use to build, train, and run AI models. It lets AI apps written with PyTorch run on Trainium by changing just one line of configuration, according to Amazon — no code rewrite required.

亚马逊表示,约 85% 的 AI 应用是用 PyTorch 编写的。PyTorch 最初由 Facebook 开发,但自 2022 年起归属于负责维护开源项目的 Linux 基金会。英伟达多年来一直确保其 CUDA 软件——即让应用能在英伟达 GPU 及其他硬件上运行的软件基础设施——无缝支持用 PyTorch 编写的 AI 应用。因此,英伟达的硬件如今已深度嵌入该工具包,基本上成为默认选项。

Amazon says about 85% of AI apps are written with PyTorch. Facebook originally developed it, but since 2022, it has been part of the Linux Foundation, which maintains open source projects. Nvidia has spent years ensuring its CUDA software — the software infrastructure that allows apps to run on Nvidia GPUs and its other hardware — seamlessly supports AI apps written with PyTorch. As a result, Nvidia’s hardware is now deeply embedded in the toolkit, essentially by default.

TorchNeuron 改编自 PyTorch,因此熟悉 PyTorch 的开发者已经知道如何使用它。亚马逊并非第一家尝试让自家芯片轻松接入该平台的公司。PyTorch 用户也可以通过简单的配置更改,将应用移植到 AMD GPU 甚至苹果的芯片上。

TorchNeuron is adapted from PyTorch, so developers who know PyTorch already know how to use it. Amazon isn’t the first company to attempt to easily bring their chips to the platform. PyTorch users can also port their apps to AMD GPUs or even Apple’s chips with a simple configuration change.

不过,亚马逊主张,移植到 Trainium 不仅简单,还能让 AI 初创公司使用亚马逊的整个云服务。不出所料,AWS 声称这对初创公司而言是比使用 neocloud 更好的选择,后者中有许多与英伟达及其硬件绑定,例如 CoreWeave、Nebius 和 Firmus。

However, Amazon argues that porting to Trainium is not only easy, but it also gives AI startups access to Amazon’s entire cloud. Unsurprisingly, AWS claims that this is a better choice for startups than using neoclouds, many of which are tied to Nvidia and its hardware, like CoreWeave, Nebius, and Firmus.

“你是在 AWS 上构建。你不是在押注一家单一用途的计算提供商,然后手忙脚乱地在它周围搭建其他一切,”AWS Annapurna Labs(负责制造亚马逊定制芯片的部门)技术软件副总裁 Colin Brace 通过电子邮件对 TechCrunch 表示。“在 AWS 上,”他继续说道,“从原型到生产所需的基础设施已经就绪,让创始人能够快速行动,并在需要时扩展规模。”

“You’re building on AWS. You’re not betting on a single-purpose compute provider and scrambling to build everything else around it,” Colin Brace, VP of Technology Software at AWS Annapurna Labs (the unit that makes Amazon’s custom chips), told TechCrunch via email. “On AWS,” he continued, “the infrastructure to go from prototype to production is already there, allowing a founder to move fast and scale when they need to.”

AWS 表示,由于同一款芯片既能处理训练(教 AI 模型)又能处理推理(让训练好的模型投入工作,比如回答用户的问题),并且与初创公司所需的云基础设施紧密集成,因此其云服务能为他们省钱,即使 AWS 不提供最便宜的每 token 价格。

AWS says that because the same chip both handles training (teaching the AI model) and inference (putting the finished model to work, as when it answers a user’s question), and is tightly integrated with the cloud infrastructure that startups need, its cloud will save them money, even if AWS doesn’t offer the cheapest per-token price.

“Trainium 的价值在于性价比,加上它是一个同时用于训练和推理的平台,这改善了整个工作负载的经济性,”Brace 说。“看看 Deepgram——他们利用原生 PyTorch 支持迁移到了 Trainium,现在每美元处理的音频量增加了 70%,且达到生产级准确度。”Deepgram 是一家 AI 语音应用提供商,是 ElevenLabs 的竞争对手。

“Trainium’s value is price-performance plus the fact that it’s one platform for both training and inference, which improves the economics across a full workload,” Brace said. “Look at Deepgram — they moved to Trainium using native PyTorch support and they’re processing 70% more audio per dollar at production-grade accuracy.” Deepgram is an AI voice app provider, a competitor to ElevenLabs.

但亚马逊并不满足于仅仅为 PyTorch 应用开发者提供一个迁移到其云端的便捷选项。

But Amazon isn’t content to just give PyTorch app developers an easy option to move to its cloud.

亚马逊还表示,它正在推动 PyTorch 减少自动以 Nvidia 为中心的情况,并将为此向 PyTorch 主项目贡献代码。在宣布新工具的博客文章中,该公司写道:

Amazon also says it is pushing PyTorch to be less automatically centered on Nvidia, and it will contribute the code to do that to the main PyTorch project. In the blog post announcing the new tool, the company wrote :

亚马逊的方法超越了自家硬件。该公司正在向 PyTorch 本身贡献上游更改,与 PyTorch 社区合作移除将该框架与特定芯片绑定的代码。目标是让 PyTorch 对整个开发者社区更加硬件无关,而不仅仅是 Trainium 用户。

Amazon’s approach extends beyond its own hardware. The company is contributing changes upstream to PyTorch itself, working with the PyTorch community to remove code that ties the framework to specific chips. The goal is to make PyTorch more hardware-agnostic for the entire developer community, not just Trainium users.

虽然这种策略无疑有利于那些销售与 Nvidia 竞争的硬件和云服务的公司,但 PyTorch 的要点之一就是隐藏让 AI 代码在硬件上运行的所有烦人困难。我们只能拭目以待,看看将 Nvidia 推到如此边缘是否会像亚马逊承诺的那样,给开发者带来更多选择和更实惠的选项,还是只会带来更多配置上的麻烦。

While such a tactic is undoubtedly good for those who are selling hardware and cloud services that compete with Nvidia, one of the points of PyTorch is to hide all the pesky difficulties of getting AI code to run on hardware. We’ll have to wait and see if pushing Nvidia out that far gives developers more choice and more affordable options, as Amazon promises, or just more configuration headaches.

无论如何,如果亚马逊成功地将 PyTorch 与 Nvidia 深度解耦,这对 GPU 巨头的影响可能远不止应对芯片竞争对手那么简单。正如 Brace 所说:“真正的故事是消除锁定,这种锁定让开发者根本无法做出真正的选择。”

Either way, if Amazon succeeds in deeply uncoupling PyTorch from Nvidia, this could have much bigger ramifications for the GPU giant than simply dealing with chip competitors. As Brace said: “The real story is removing the lock-in that kept developers from having a real choice at all.”