亚马逊 AWS 发布 TorchNeuron 工具,PyTorch 应用改一行配置即可跑上 Trainium 芯片
Amazon is taking its biggest shot at Nvidia yet with new TorchNeuron dev tool
- 1AWS 发布 TorchNeuron 工具,PyTorch 应用改一行配置即可运行在其 Trainium 芯片上,官方称无需重写代码
- 2Amazon 称约 85% 的 AI 应用基于 PyTorch,NVIDIA 多年适配 CUDA 使其硬件在框架中近乎默认
- 3AWS 称 Trainium 单芯片兼顾训练与推理,客户 Deepgram 每美元多处理 70% 音频(官方口径,暂无独立验证)
- 4Amazon 将向 PyTorch 主项目贡献代码,移除与特定芯片绑定的部分,让框架更不依赖单一硬件
亚马逊此番进攻的实质在软件层,通过降低 PyTorch 应用的迁移门槛来松动 NVIDIA 靠 CUDA 建立的默认绑定,而非单纯拼芯片。
- 影响:使用 PyTorch 的 AI 团队换用非 NVIDIA 芯片的改造成本可能下降,算力比价范围可扩大到 Trainium 等选项;迁移后能否少改代码取决于实际工具链成熟度;若上游移除芯片绑定,相关开发与运维流程也需跟着调整。
- 参考:可考虑先挑一个非核心的 PyTorch 场景,实测改一行配置迁到 Trainium 的工作量与单位算力成本;值得在下一轮算力采购前,把训练加推理整段工作负载的账算出,再与现有 GPU 方案比较。
- 依据:一行配置迁移、约 85% 的 PyTorch 占比、Deepgram 每美元多处理 70% 音频均为 AWS 官方口径,暂无独立验证;向 PyTorch 上游贡献代码出自 Amazon 官方博客声明。
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 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 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.
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 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.
However, Amazon argues that porting to Trainium isn’t just easy; 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.
“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 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’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.
But Amazon isn’t content to just give PyTorch app developers an easy option to move to its cloud.
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:
“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.”
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.
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.”
When you purchase through links in our articles, we may earn a small commission. This doesn’t affect our editorial independence.
来源:TechCrunch · AI · techcrunch.com