# 亚马逊 Trainium

**AWS Trainium** 是亚马逊旗下 [Annapurna Labs](https://www.edgepedia.org/zh/annapurna-labs) 设计、由[亚马逊云科技](https://www.edgepedia.org/zh/amazon-web-services)（AWS）部署的一系列专用 AI 加速芯片，用于高性能训练机器学习模型，尤其是大语言模型（LLM）。AWS 称其目标是实现大规模 AI 训练与推理的最佳经济性，并将 Trainium 定位为云内英伟达 GPU 的低成本替代方案。<sup>[1](https://aws.amazon.com/ai/machine-learning/trainium/?nc2=h_prod_ai_trn)</sup> Trainium 是 AWS 自研的第二款机器学习芯片，前一款是专注推理的 Inferentia。<sup>[2](https://aws.amazon.com/about-aws/whats-new/2021/11/amazon-ec2-trn1-instances/)</sup>

| 关键事实 | 详情 |
|---|---|
| 设计方 | Annapurna Labs，一家以色列芯片设计公司，亚马逊于 2015 年以约 3.5 亿美元收购<sup>[3](https://www.itpro.com/infrastructure/what-is-aws-trainium)</sup> |
| 首批实例 | Amazon EC2 Trn1 于 2021 年 11 月 30 日发布预览；2022 年 10 月 10 日正式可用<sup>[2](https://aws.amazon.com/about-aws/whats-new/2021/11/amazon-ec2-trn1-instances/)</sup><sup> • </sup><sup>[4](https://aws.amazon.com/blogs/aws/amazon-ec2-trn1-instances-for-high-performance-model-training-are-now-available/)</sup> |
| Trainium2 芯片 | 八个 NeuronCore-v3 计算单元；1,299 FP8 TFLOPS；96 GiB 内存，带宽 2.9 TB/秒；NeuronLink-v3 片间互连，每芯片 1.28 TB/秒<sup>[5](https://awsdocs-neuron.readthedocs-hosted.com/en/v2.25.0/general/arch/neuron-hardware/trainium2.html)</sup> |
| Trainium3 芯片 | AWS 首款 3nm AI 芯片；2.52 PFLOPS FP8 算力；144 GB HBM3e 内存，带宽 4.9 TB/s；2025 年 12 月 2 日正式可用<sup>[6](https://press.aboutamazon.com/2025/12/trainium3-ultraservers-now-available-enabling-customers-to-train-and-deploy-ai-models-faster-at-lower-cost)</sup> |
| 最大部署 | Project Rainier，亚马逊称其为全球最大的在运 AI 计算集群，拥有超过 50 万颗 Trainium2 芯片，Anthropic 用它训练 Claude<sup>[7](https://d18rn0p25nwr6d.cloudfront.net/CIK-0001018724/92b57363-4259-4a24-9861-c4fe69a7d82f.pdf)</sup> |
| 业务规模 | 亚马逊芯片业务涵盖 Trainium、Graviton 和 Nitro，年化营收运转率超过 250 亿美元，同比增长达三位数百分比<sup>[8](https://www.aboutamazon.com/news/aws/amazon-ai-chips-business-history)</sup> |
| 软件 | AWS Neuron SDK，可在 Trainium 和 Inferentia 上编译并运行 PyTorch、JAX 和 Hugging Face 模型<sup>[9](https://aws.amazon.com/ai/machine-learning/neuron/)</sup> |

## 起源

亚马逊在 AI 热潮之前于 2015 年收购 Annapurna Labs，其前提是：专为云工作负载设计的芯片，能比通用硬件以更低成本提供更好性能。<sup>[8](https://www.aboutamazon.com/news/aws/amazon-ai-chips-business-history)</sup><sup> • </sup><sup>[3](https://www.itpro.com/infrastructure/what-is-aws-trainium)</sup> Annapurna 的机器学习芯片构成其第三条产品线，前两条分别是 Nitro System 和 Graviton CPU：客户用 Inferentia 大规模运行推理，用 Trainium 承载生成式 AI、计算机视觉等大规模训练负载。<sup>[10](https://www.aboutamazon.com/news/aws/take-a-look-inside-the-lab-where-aws-makes-custom-chips)</sup>

## 各代产品与实例

**Trainium（Trn1）。** 第一代芯片通过 Amazon EC2 Trn1 实例交付客户，2021 年 11 月 30 日发布预览，2022 年 10 月 10 日正式可用。<sup>[2](https://aws.amazon.com/about-aws/whats-new/2021/11/amazon-ec2-trn1-instances/)</sup><sup> • </sup><sup>[4](https://aws.amazon.com/blogs/aws/amazon-ec2-trn1-instances-for-high-performance-model-training-are-now-available/)</sup> 一个 Trn1 实例最多搭载 16 颗 Trainium 芯片、128 个 vCPU、最高 512 GB 加速器内存、最高 3.4 petaFLOPS 的 TF32/FP16/BF16 算力，以及最高 800 Gbps 的弹性网络适配器（EFA）网络带宽，是当时基于 GPU 的实例带宽的两倍。与 Amazon EC2 P4d GPU 实例相比，Trn1 的 BF16 算力为其 1.4 倍，TF32 为 2.5 倍，FP32 为 5 倍，节点间网络带宽为 4 倍，训练成本最多可节省 50%。<sup>[4](https://aws.amazon.com/blogs/aws/amazon-ec2-trn1-instances-for-high-performance-model-training-are-now-available/)</sup> Trn1n 变体于 2023 年 4 月 13 日正式可用，将 EFA 网络带宽翻倍至 1,600 Gbps，面向 LLM、混合专家架构等网络密集型模型的训练。<sup>[4](https://aws.amazon.com/blogs/aws/amazon-ec2-trn1-instances-for-high-performance-model-training-are-now-available/)</sup>

**Trainium2（Trn2）。** AWS 在 2023 年 re:Invent 大会上发布第二代芯片，声称训练速度为上一代的 4 倍，能效为上一代的 2 倍。<sup>[11](https://www.itpro.com/cloud/cloud-computing/aws-has-chance-to-show-its-mettle-re-invent-2025)</sup> 每颗 Trainium2 芯片包含八个 NeuronCore-v3 计算单元，提供 1,299 FP8 TFLOPS、667 BF16/FP16/TF32 TFLOPS 和 2,563 稀疏 TFLOPS，配备 96 GiB 设备内存，带宽 2.9 TB/秒，DMA 带宽 3.5 TB/秒，并支持内联内存压缩。NeuronLink-v3 提供 1.28 TB/秒的片间互连带宽，支持芯片间内存池化。<sup>[5](https://awsdocs-neuron.readthedocs-hosted.com/en/v2.25.0/general/arch/neuron-hardware/trainium2.html)</sup> 2024 年 12 月的 Neuron SDK 2.21 版本新增了对 Trainium2、trn2.48xlarge 实例类型和 Trn2 UltraServer 的软件支持。<sup>[12](https://aws.amazon.com/about-aws/whats-new/2024/12/aws-neuron-trainium2-nxd-inference/)</sup> 一台 UltraServer 将四台 Trainium2 服务器、64 颗 Trainium2 芯片通过高速连接整合为一个系统，用于单个芯片或单台机器容纳不下的模型。<sup>[10](https://www.aboutamazon.com/news/aws/take-a-look-inside-the-lab-where-aws-makes-custom-chips)</sup>

**Trainium3（Trn3）。** Trainium3 是 AWS 首款 3nm AI 芯片，于 2025 年 12 月 2 日在 Amazon EC2 Trn3 UltraServer 上正式可用。每颗芯片提供 2.52 PFLOPS FP8 算力，内存容量为 Trainium2 的 1.5 倍、内存带宽为 1.7 倍，即 144 GB HBM3e、4.9 TB/s。Trn3 UltraServer 最多可扩展至 144 颗 Trainium3 芯片，提供最高 362 FP8 PFLOPs，算力性能最高为 Trainium2 UltraServer 的 4.4 倍，能效为 4 倍，内存带宽接近 4 倍。<sup>[6](https://press.aboutamazon.com/2025/12/trainium3-ultraservers-now-available-enabling-customers-to-train-and-deploy-ai-models-faster-at-lower-cost)</sup> AWS 表示 Trainium4 预计于 2027 年开始交付，FP4 算力性能为 Trainium3 的 6 倍，内存带宽为 4 倍，高带宽内存容量为 2 倍。<sup>[7](https://d18rn0p25nwr6d.cloudfront.net/CIK-0001018724/92b57363-4259-4a24-9861-c4fe69a7d82f.pdf)</sup>

## 软件：Neuron SDK

模型通过 AWS Neuron SDK 在 Trainium 上运行。这一开发者工具栈包含编译器、运行时、训练与推理库，以及面向 Trainium 和 Inferentia 的性能分析工具。Neuron 支持原生 PyTorch 执行、torch.compile、[FSDP](https://www.edgepedia.org/zh/fully-sharded-data-parallelism)、DDP、DTensor 等分布式库，以及 [Hugging Face Transformers](https://www.edgepedia.org/zh/hugging-face-transformers)、vLLM、[PyTorch Lightning](https://www.edgepedia.org/zh/pytorch-lightning) 等库，且只需极少的代码改动。<sup>[9](https://aws.amazon.com/ai/machine-learning/neuron/)</sup> Neuron 内核接口（NKI）开放芯片指令集用于自定义内核开发，所用 API 与 Trainium 工程团队相同。<sup>[1](https://aws.amazon.com/ai/machine-learning/trainium/?nc2=h_prod_ai_trn)</sup> 自定义算子由 GPSIMD 引擎（通用单指令多数据）与每个 NeuronCore 的张量、向量和标量引擎协同，在硬件层面加速。<sup>[13](https://aws.amazon.com/blogs/machine-learning/how-to-extend-the-functionality-of-aws-trainium-with-custom-operators/)</sup>

AWS 的研究已在该平台上演示了大规模训练。HLAT 项目在 4,096 个 Trainium 加速器上，用 1.8 万亿词元预训练了一系列 7B 和 70B 纯解码器 LLM，模型质量与同等规模的 LLaMA 和 [OpenLLaMA](https://www.edgepedia.org/zh/openllama) 基线相当，并以 NeuronX 分布式训练（NxDT）库开源了训练脚本。<sup>[14](https://arxiv.org/abs/2404.10630)</sup> 在另一项演示中，AWS 在 128 台 trn1.32xlarge 实例（共 2,048 个加速器）组成的集群上从零训练 [Llama 2](https://www.edgepedia.org/zh/llama-2)-7B，报告称相比同等 EC2 实例成本降低最多 46%，自动故障恢复将有效硬件利用率从 77.83% 提升至 98.81%。<sup>[15](https://aws.amazon.com/blogs/machine-learning/end-to-end-llm-training-on-instance-clusters-with-over-100-nodes-using-aws-trainium/)</sup>

## Project Rainier 与采用情况

最大的 Trainium 部署是 Project Rainier，这是一个专为 AI 公司 [Anthropic](https://www.edgepedia.org/zh/anthropic) 建造的计算集群。Anthropic 租赁其数据中心，在数十万颗 Trainium2 芯片上训练 Claude 系列模型的后续版本。亚马逊的股东信称 Project Rainier 为全球最大的在运 AI 计算集群，拥有超过 50 万颗 Trainium2 芯片，并称 Trainium2 已全部订满，已交付 140 万颗芯片，支撑了 [Amazon Bedrock](https://www.edgepedia.org/zh/amazon-bedrock) 上的大部分推理。<sup>[7](https://d18rn0p25nwr6d.cloudfront.net/CIK-0001018724/92b57363-4259-4a24-9861-c4fe69a7d82f.pdf)</sup> Anthropic 另承诺十年内向 AWS 投入超过 1,000 亿美元用于训练和运行 Claude，并获得最多 5 吉瓦的 Trainium 芯片使用权限。<sup>[16](https://apnews.com/article/cffa2cc19f9928d9ac44e44f2d967d36)</sup> Trainium2 芯片的设计大量吸收了 Anthropic 的反馈，后者分享了其软件与第一代 Trainium 硬件交互的细节。<sup>[17](https://time.com/7273288/amazon-anthropic-openai-microsoft-stargate-datacenters/)</sup>

其他具名客户包括 [Databricks](https://www.edgepedia.org/zh/databricks)、Hugging Face、PyTorch、理光和日本公司 Karakuri，后者报告采用 Trainium 后 LLM 训练成本降低超过 50%。<sup>[3](https://www.itpro.com/infrastructure/what-is-aws-trainium)</sup><sup> • </sup><sup>[18](https://aws.amazon.com/ai/machine-learning/trainium/customers/)</sup> 亚马逊内部也在使用这些芯片；Amazon Search 的 M5 团队报告称，使用 Trainium 将 LLM 训练成本节省了 30%。<sup>[1](https://aws.amazon.com/ai/machine-learning/trainium/?nc2=h_prod_ai_trn)</sup>

## 经济性与竞争

Trainium 的存在是为了降低 AWS 对英伟达的依赖——后者的芯片供应紧缺，价格远高于生产成本。亚马逊 2025 年股东信称，Trainium2 的性价比比同类 GPU 高约 30%，且基本售罄；Trainium3 的性价比比 Trainium2 高 30% 至 40%，且接近全部订满；规模化之后，Trainium 预计每年可为亚马逊节省数百亿美元资本支出。<sup>[19](https://d18rn0p25nwr6d.cloudfront.net/CIK-0001018724/9889348d-ed65-4efc-9aa0-b2846b464eec.pdf)</sup> 包括 Graviton 和 Nitro 在内的整体芯片业务，年化营收运转率已超过 250 亿美元，同比增长达三位数百分比。<sup>[8](https://www.aboutamazon.com/news/aws/amazon-ai-chips-business-history)</sup>

独立对比有限。有分析指出，AWS 未发布与英伟达的正面对比基准，也找不到 Trainium3 与 B200 的独立对比，所查的 MLPerf 轮次中也没有 Trainium3 的条目。<sup>[20](https://www.aquanode.io/blog/aws-trainium-vs-nvidia)</sup> 从业者还报告了迁移成本：一份详细的独立成本分析比较了在 Trn2 与 8 块 H100 上训练 130 亿参数模型，结论是 Trainium2 目前适合拥有经验丰富的系统和编译器工程师的团队，而对于只有算法工程师的团队，迁移投入可能吞噬硬件节省下来的成本。<sup>[21](https://www.chencunli.com/trainium2-trn2-cost-roi-analysis/)</sup> 在 2025 年 re:Invent 大会上，AWS 还宣布下一代 Trainium 芯片将支持英伟达的 NVLink Fusion 互连技术，加深与英伟达生态的互操作性。<sup>[22](https://press.aboutamazon.com/aws/2026/8/aws-and-nvidia-to-deliver-2-million-additional-gpus-and-next-generation-infrastructure-for-agentic-and-physical-ai?trk=article-ssr-frontend-pulse_little-text-block)</sup>

## References

1. [AI Accelerator - AWS Trainium, AWS](https://aws.amazon.com/ai/machine-learning/trainium/?nc2=h_prod_ai_trn)
2. [Announcing preview of Amazon EC2 Trn1 instances, AWS (November 30, 2021)](https://aws.amazon.com/about-aws/whats-new/2021/11/amazon-ec2-trn1-instances/)
3. [What is AWS Trainium?, ITPro](https://www.itpro.com/infrastructure/what-is-aws-trainium)
4. [Amazon EC2 Trn1 Instances for High-Performance Model Training are Now Available, AWS News Blog](https://aws.amazon.com/blogs/aws/amazon-ec2-trn1-instances-for-high-performance-model-training-are-now-available/)
5. [Trainium2 Architecture, AWS Neuron Documentation](https://awsdocs-neuron.readthedocs-hosted.com/en/v2.25.0/general/arch/neuron-hardware/trainium2.html)
6. [Trainium3 UltraServers Now Available, Amazon Press Center (December 2, 2025)](https://press.aboutamazon.com/2025/12/trainium3-ultraservers-now-available-enabling-customers-to-train-and-deploy-ai-models-faster-at-lower-cost)
7. [Amazon.com Fourth Quarter 2025 Results and shareholder highlights](https://d18rn0p25nwr6d.cloudfront.net/CIK-0001018724/92b57363-4259-4a24-9861-c4fe69a7d82f.pdf)
8. [How Amazon's AI chip business reached a $25B revenue run rate, About Amazon](https://www.aboutamazon.com/news/aws/amazon-ai-chips-business-history)
9. [SDK for Gen AI and Deep Learning - AWS Neuron, AWS](https://aws.amazon.com/ai/machine-learning/neuron/)
10. [Look inside the lab where AWS designs custom chips, About Amazon](https://www.aboutamazon.com/news/aws/take-a-look-inside-the-lab-where-aws-makes-custom-chips)
11. [AWS has a chance to show its mettle at re:Invent 2025, ITPro](https://www.itpro.com/cloud/cloud-computing/aws-has-chance-to-show-its-mettle-re-invent-2025)
12. [AWS Neuron introduces support for Trainium2 and NxD Inference, AWS (December 23, 2024)](https://aws.amazon.com/about-aws/whats-new/2024/12/aws-neuron-trainium2-nxd-inference/)
13. [How to extend the functionality of AWS Trainium with custom operators, AWS ML Blog](https://aws.amazon.com/blogs/machine-learning/how-to-extend-the-functionality-of-aws-trainium-with-custom-operators/)
14. [HLAT: High-quality Large Language Model Pre-trained on AWS Trainium, arXiv:2404.10630](https://arxiv.org/abs/2404.10630)
15. [End-to-end LLM training on instance clusters with over 100 nodes using AWS Trainium, AWS ML Blog](https://aws.amazon.com/blogs/machine-learning/end-to-end-llm-training-on-instance-clusters-with-over-100-nodes-using-aws-trainium/)
16. [AI startup Anthropic commits $100 billion to Amazon's AWS over next 10 years, AP News](https://apnews.com/article/cffa2cc19f9928d9ac44e44f2d967d36)
17. [Inside Amazon's Race to Build the AI Industry's Biggest Datacenters, TIME](https://time.com/7273288/amazon-anthropic-openai-microsoft-stargate-datacenters/)
18. [AI Accelerator - AWS Trainium Customers, AWS](https://aws.amazon.com/ai/machine-learning/trainium/customers/)
19. [Amazon 2025 Letter to Shareholders](https://d18rn0p25nwr6d.cloudfront.net/CIK-0001018724/9889348d-ed65-4efc-9aa0-b2846b464eec.pdf)
20. [AWS Trainium vs NVIDIA: Trainium3 vs B200, Aquanode](https://www.aquanode.io/blog/aws-trainium-vs-nvidia)
21. [Trainium2 ROI analysis (Trn2 vs H100 cost accounting), chencunli.com](https://www.chencunli.com/trainium2-trn2-cost-roi-analysis/)
22. [AWS and NVIDIA to Deliver 2 Million Additional GPUs, Amazon Press Center](https://press.aboutamazon.com/aws/2026/8/aws-and-nvidia-to-deliver-2-million-additional-gpus-and-next-generation-infrastructure-for-agentic-and-physical-ai?trk=article-ssr-frontend-pulse_little-text-block)

---
*Initially written Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 现代人工智能：基础模型、生成式人工智能与人工智能产业 › AI companies, people, and products › AI chips, compute, and infrastructure companies › AI accelerator chips and makers

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/amazon-trainium

English original: https://www.edgepedia.org/amazon-trainium
