# 张量处理单元

**张量处理单元（Tensor Processing Unit，TPU）** 是谷歌（Google）为加速神经网络中大量矩阵运算而开发的一种专用集成电路（ASIC），于2015年首次部署在谷歌数据中心，后以 Cloud TPU 的形式通过谷歌云（Google Cloud）向外部客户提供<sup>[1](https://arxiv.org/abs/1704.04760)</sup><sup> • </sup><sup>[2](https://docs.cloud.google.com/compute/docs/tpus/tpu-machines?hl=en)</sup>。此后各代产品从单一推理芯片发展为由数千颗芯片联网组成的 Pod 级超级计算机，另有独立的 Edge TPU 产品线服务于低功耗设备<sup>[3](https://cloud.google.com/blog/transform/ai-specialized-chips-tpu-history-gen-ai?trk=article-ssr-frontend-pulse_little-text-block)</sup><sup> • </sup><sup>[4](https://www.coral.withgoogle.com/technology/)</sup>。

| 关键事实 | 详情 |
|---|---|
| 首款芯片 | TPU v1，自2015年起部署于谷歌数据中心用于神经网络推理；2016年5月对外公布<sup>[1](https://arxiv.org/abs/1704.04760)</sup><sup> • </sup><sup>[5](https://cloud.google.com/blog/products/ai-machine-learning/google-supercharges-machine-learning-tasks-with-custom-chip)</sup> |
| v1 核心 | 由65,536个8位乘加（MAC）单元构成的矩阵乘法单元，峰值92万亿次运算/秒，28 MiB 软件管理的片上内存<sup>[6](https://doi.org/10.1145%2F3140659.3080246)</sup> |
| 云端可用性 | 第二代 Cloud TPU 于2017年5月17日发布，支持训练与推理；Cloud TPU 于2018年6月27日正式可用，单设备最高180万亿次浮点运算/秒<sup>[7](https://cloud.google.com/blog/topics/inside-google-cloud/google-cloud-offer-tpus-machine-learning)</sup><sup> • </sup><sup>[8](https://docs.cloud.google.com/tpu/docs/release-notes)</sup> |
| Pod 规模 | 一个 TPU v4 Pod 联网4,096颗芯片，峰值性能1.1百亿亿次浮点运算/秒<sup>[9](https://cloud.google.com/blog/products/ai-machine-learning/google-wins-mlperf-benchmarks-with-tpu-v4)</sup> |
| 能效 | 在典型本地数据中心中，TPU v4 系统的能耗约为同期专用架构的三分之一，产生的二氧化碳当量约为二十分之一<sup>[10](https://arxiv.org/abs/2304.01433)</sup> |
| 最新世代 | Trillium（第六代，2024年12月正式可用）单芯片峰值算力为 TPU v5e 的4.7倍；Ironwood（第七代）提供4,614 FP8 TFLOPS 算力，配备192 GB HBM3E<sup>[11](https://cloud.google.com/blog/products/compute/introducing-trillium-6th-gen-tpus/?hl=en)</sup><sup> • </sup><sup>[12](https://www.tomshardware.com/tech-industry/artificial-intelligence/google-deploys-new-axion-cpus-and-seventh-gen-ironwood-tpu-training-and-inferencing-pods-beat-nvidia-gb300-and-shape-ai-hypercomputer-model)</sup> |
| 框架 | Cloud TPU 支持 TensorFlow、PyTorch 和 JAX<sup>[9](https://cloud.google.com/blog/products/ai-machine-learning/google-wins-mlperf-benchmarks-with-tpu-v4)</sup> |

## 起源与第一代

谷歌早在2006年就考虑过为神经网络构建专用集成电路，到2013年形势变得紧迫：一项预测显示，如果人们每天使用语音搜索三分钟，在当时的处理器上运行神经网络将需要把谷歌的数据中心规模翻倍。专用集成电路的开发通常需要数年，因此团队行动迅速<sup>[13](https://cloud.google.com/blog/products/ai-machine-learning/an-in-depth-look-at-googles-first-tensor-processing-unit-tpu?hl=en)</sup>。TPU 项目的技术负责人、MIPS 处理器的主要架构师之一诺姆·朱皮（Norm Jouppi）将这项工作形容为一场冲刺<sup>[13](https://cloud.google.com/blog/products/ai-machine-learning/an-in-depth-look-at-googles-first-tensor-processing-unit-tpu?hl=en)</sup>。

最终问世的芯片于2015年在内部部署，按谷歌的说法，很快被公司各个部门采用<sup>[3](https://cloud.google.com/blog/transform/ai-specialized-chips-tpu-history-gen-ai?trk=article-ssr-frontend-pulse_little-text-block)</sup>。2016年5月谷歌对外公布时称，TPU 已在其数据中心运行了一年多，在机器学习方面每瓦特优化性能提升了一个数量级<sup>[5](https://cloud.google.com/blog/products/ai-machine-learning/google-supercharges-machine-learning-tasks-with-custom-chip)</sup>。

朱皮及同事在 ISCA 2017 论文中将该设计与部署在同一批数据中心的服务器级英特尔（Intel）Haswell CPU 和英伟达（Nvidia）K80 GPU 进行了对比评估。其核心是一个包含65,536个8位乘加运算单元的矩阵乘法单元，峰值吞吐量92万亿次运算/秒，并配有28 MiB 的大型软件管理片上内存；论文将芯片的小尺寸和低功耗归因于它省略而非增加的功能<sup>[6](https://doi.org/10.1145%2F3140659.3080246)</sup><sup> • </sup><sup>[1](https://arxiv.org/abs/1704.04760)</sup>。为构建如此大规模的矩阵处理器，MXU 采用脉动阵列（systolic array）——一种与典型 CPU 和 GPU 截然不同的架构，数据在处理单元网格中脉动流过<sup>[13](https://cloud.google.com/blog/products/ai-machine-learning/an-in-depth-look-at-googles-first-tensor-processing-unit-tpu?hl=en)</sup>。

## 从推理芯片到训练超级计算机

第一代 TPU 加速的是神经网络的推理阶段，即训练完成后模型进行预测的时期<sup>[1](https://arxiv.org/abs/1704.04760)</sup>。第二代将硬件扩展至训练：2017年5月17日，谷歌宣布第二代 TPU 将登陆谷歌云，支持包括训练和推理在内的广泛机器学习工作负载<sup>[7](https://cloud.google.com/blog/topics/inside-google-cloud/google-cloud-offer-tpus-machine-learning)</sup>。Cloud TPU 于2018年6月27日正式可用，每个 Cloud TPU 提供最高180万亿次浮点运算/秒<sup>[8](https://docs.cloud.google.com/tpu/docs/release-notes)</sup>。

**Pod。** 谷歌还开始出售 TPU Pod 的切片——由高速互连网络连接的超级计算机级芯片集群。Cloud TPU v3 Pod 采用液冷以实现最高性能，每个 Pod 提供超过100千万亿次浮点运算/秒，于2019年公开测试；TPU v3 内存为 v2 的两倍，于2019年1月31日正式可用<sup>[14](https://cloud.google.com/blog/products/ai-machine-learning/googles-scalable-supercomputers-for-machine-learning-cloud-tpu-pods-are-now-publicly-available-in-beta)</sup><sup> • </sup><sup>[8](https://docs.cloud.google.com/tpu/docs/release-notes)</sup>。

**TPU v4。** 第四代专用集成电路的原始处理能力较 TPU v3 大幅提升，谷歌将其扩展至3,456颗芯片并配备数百台 CPU 主机，以赢得 MLPerf 训练基准测试。一个完整的 TPU v4 Pod 包含4,096颗联网芯片，峰值性能达1.1百亿亿次浮点运算/秒<sup>[9](https://cloud.google.com/blog/products/ai-machine-learning/google-wins-mlperf-benchmarks-with-tpu-v4)</sup>。谷歌的 TPU v4 系统在五项 MLPerf 2.0 基准测试中创下纪录，平均速度为谷歌以外所有公司中最快参赛成绩的1.42倍；同时这些 Pod 运行于90%无碳能源之上，电能利用效率（PUE）为1.10，即输送电力中不到10%因转换、散热或其他低效因素而损耗<sup>[15](https://cloud.google.com/blog/products/ai-machine-learning/cloud-tpu-v4-mlperf-2-0-results)</sup>。v4 的设计还支持光路可重构：其数据中心网络拓扑可以重新布线，以提高大规模并行训练任务的全互联吞吐量<sup>[16](https://arxiv.org/abs/2605.27963)</sup>。

**Trillium 与 Ironwood。** 第六代 TPU Trillium 于2024年12月11日面向谷歌云客户正式可用。其单芯片峰值算力为 TPU v5e 的4.7倍，能效提高67%<sup>[11](https://cloud.google.com/blog/products/compute/introducing-trillium-6th-gen-tpus/?hl=en)</sup><sup> • </sup><sup>[17](https://blog.google/feed/trillium-tpus/)</sup>。第七代 Ironwood 单芯片提供4,614 FP8 TFLOPS 算力，配备192 GB HBM3E 内存，带宽最高7.37 TB/s，面向大规模模型的训练与低延迟推理<sup>[12](https://www.tomshardware.com/tech-industry/artificial-intelligence/google-deploys-new-axion-cpus-and-seventh-gen-ironwood-tpu-training-and-inferencing-pods-beat-nvidia-gb300-and-shape-ai-hypercomputer-model)</sup>。

**第八代。** 在 Google Cloud Next 2026 大会上，谷歌发布了两款分工明确的第八代芯片：用于训练的 TPU 8t 和用于近实时推理的 TPU 8i。TPU 8t 的算力约为 Ironwood 的2.8倍，可提供每秒121百亿亿次 FP4 浮点运算的 AI 算力；每个 8t Pod 最多可配置9,600颗芯片，每颗芯片提供19.2 Tbit/秒的纵向扩展带宽和400 Gbit/秒的横向扩展带宽<sup>[18](https://www.itpro.com/infrastructure/google-cloud-eighth-generation-tpu-8t-8i-ai-inference-training)</sup><sup> • </sup><sup>[19](https://www.axios.com/2026/04/22/google-unifies-gemini-enterprise-debuts-chips)</sup>。谷歌的技术深度解析将设计理念概括为三大支柱：可扩展性、可靠性和效率，其中 8t 互连架构以近线性扩展提供每秒超过1.7K百亿亿次浮点运算的算力<sup>[20](https://cloud.google.com/blog/products/compute/tpu-8t-and-tpu-8i-technical-deep-dive)</sup>。

## Edge TPU

面向设备而非数据中心，谷歌的 Coral 产品线包含 Edge TPU——一款紧凑型加速器，每秒执行4万亿次运算（4 TOPS），每 TOPS 功耗0.5瓦，即每瓦2 TOPS。第一代 Edge TPU 执行深度前馈神经网络（如卷积神经网络），适用于基于视觉的应用，可用于 Coral Dev Board 和 USB Accelerator 等设备，通过 Edge TPU 运行时和 PyCoral Python 库进行编程<sup>[4](https://www.coral.withgoogle.com/technology/)</sup><sup> • </sup><sup>[21](https://www.coral.withgoogle.com/docs/edgetpu/faq/)</sup><sup> • </sup><sup>[22](https://gweb-coral-full.uc.r.appspot.com/docs/accelerator/get-started/)</sup>。

## TPU 与 GPU

TPU 和 GPU 用途重叠但设计不同。据 [Forrester Research](https://www.edgepedia.org/zh/forrester-research) 高级分析师阿尔文·阮（Alvin Nguyen）介绍，TPU 专为 AI 张量运算而构建，而英伟达、AMD 或英特尔的 GPU 是更灵活的架构，其通用处理核心可服务于 AI 之外的应用<sup>[23](https://www.itpro.com/infrastructure/what-is-a-tensor-processing-unit-tpu)</sup>。软件层面随之出现一种实际的不对称：PyTorch 代码只需极少修改即可在 GPU 上运行，而 TPU 训练通常使用 JAX 或 PyTorch-on-TPU 桥接方案，会带来额外开销和兼容性限制<sup>[24](https://deploybase.ai/articles/google-tpu-vs-nvidia-gpu)</sup>。

TPU 有其独特优势和取舍。它们能将数千颗芯片扩展为 Pod，适合大规模模型训练，且在充分利用时通常能提供更低的单位工作成本；但它们仅在谷歌云上提供，这造成了供应商锁定，Rossum 首席技术官兼首席 AI 架构师彼得·鲍迪什（Petr Baudis）向 ITPro 如此解释<sup>[23](https://www.itpro.com/infrastructure/what-is-a-tensor-processing-unit-tpu)</sup>。英伟达的 CUDA 平台在业界仍被广泛使用，这使开发者更难切换<sup>[25](https://www.tomshardware.com/tech-industry/big-tech/nvidia-says-its-delighted-with-googles-success-but-backhanded-compliment-says-it-is-the-only-platform-that-runs-every-ai-model-statement-comes-soon-after-meta-announces-proposed-deal-to-acquire-google-cloud-tpus)</sup>。

外部采用持续增长。Anthropic 自2023年起使用 TPU，并签署协议将其合同容量在2026年扩展至1 GW；Meta 也宣布了一项采购谷歌云 TPU 的意向协议<sup>[25](https://www.tomshardware.com/tech-industry/big-tech/nvidia-says-its-delighted-with-googles-success-but-backhanded-compliment-says-it-is-the-only-platform-that-runs-every-ai-model-statement-comes-soon-after-meta-announces-proposed-deal-to-acquire-google-cloud-tpus)</sup>。

## References

1. [In-Datacenter Performance Analysis of a Tensor Processing Unit (Jouppi et al.), arXiv](https://arxiv.org/abs/1704.04760)
2. [TPU machines in accelerator-optimized machine family, Google Cloud Documentation](https://docs.cloud.google.com/compute/docs/tpus/tpu-machines?hl=en)
3. [TPU transformation: A look back at 10 years of our AI-specialized chips, Google Cloud Blog](https://cloud.google.com/blog/transform/ai-specialized-chips-tpu-history-gen-ai?trk=article-ssr-frontend-pulse_little-text-block)
4. [Technology, Coral](https://www.coral.withgoogle.com/technology/)
5. [Google supercharges machine learning tasks with TPU custom chip, Google Cloud Blog](https://cloud.google.com/blog/products/ai-machine-learning/google-supercharges-machine-learning-tasks-with-custom-chip)
6. [In-Datacenter Performance Analysis of a Tensor Processing Unit, ACM SIGARCH Computer Architecture News](https://doi.org/10.1145%2F3140659.3080246)
7. [Build and train machine learning models on our new Google Cloud TPUs, Google Cloud Blog](https://cloud.google.com/blog/topics/inside-google-cloud/google-cloud-offer-tpus-machine-learning)
8. [Cloud TPU release notes, Google Cloud Documentation](https://docs.cloud.google.com/tpu/docs/release-notes)
9. [Google wins MLPerf benchmarks with TPU v4, Google Cloud Blog](https://cloud.google.com/blog/products/ai-machine-learning/google-wins-mlperf-benchmarks-with-tpu-v4)
10. [TPU v4: An Optically Reconfigurable Supercomputer for Machine Learning, arXiv](https://arxiv.org/abs/2304.01433)
11. [Introducing Trillium, sixth-generation TPUs, Google Cloud Blog](https://cloud.google.com/blog/products/compute/introducing-trillium-6th-gen-tpus/?hl=en)
12. [Google deploys new Axion CPUs and seventh-gen Ironwood TPU, Tom's Hardware](https://www.tomshardware.com/tech-industry/artificial-intelligence/google-deploys-new-axion-cpus-and-seventh-gen-ironwood-tpu-training-and-inferencing-pods-beat-nvidia-gb300-and-shape-ai-hypercomputer-model)
13. [An in-depth look at Google's first Tensor Processing Unit (TPU), Google Cloud Blog](https://cloud.google.com/blog/products/ai-machine-learning/an-in-depth-look-at-googles-first-tensor-processing-unit-tpu?hl=en)
14. [Google's scalable supercomputers for machine learning, Cloud TPU Pods, are now publicly available in beta, Google Cloud Blog](https://cloud.google.com/blog/products/ai-machine-learning/googles-scalable-supercomputers-for-machine-learning-cloud-tpu-pods-are-now-publicly-available-in-beta)
15. [Cloud TPU v4 MLPerf 2.0 results, Google Cloud Blog](https://cloud.google.com/blog/products/ai-machine-learning/cloud-tpu-v4-mlperf-2-0-results)
16. [Throughput-Optimized Networks at Scale, arXiv](https://arxiv.org/abs/2605.27963)
17. [Google Cloud announces Trillium TPUs now available, blog.google](https://blog.google/feed/trillium-tpus/)
18. [Google Cloud announces eighth-generation TPUs, ITPro](https://www.itpro.com/infrastructure/google-cloud-eighth-generation-tpu-8t-8i-ai-inference-training)
19. [Google unifies Gemini Enterprise, debuts new chips, Axios](https://www.axios.com/2026/04/22/google-unifies-gemini-enterprise-debuts-chips)
20. [TPU 8t and TPU 8i technical deep dive, Google Cloud Blog](https://cloud.google.com/blog/products/compute/tpu-8t-and-tpu-8i-technical-deep-dive)
21. [Frequently asked questions, Coral](https://www.coral.withgoogle.com/docs/edgetpu/faq/)
22. [Get started with the USB Accelerator, Coral](https://gweb-coral-full.uc.r.appspot.com/docs/accelerator/get-started/)
23. [What is a tensor processing unit (TPU)?, ITPro](https://www.itpro.com/infrastructure/what-is-a-tensor-processing-unit-tpu)
24. [Google TPU vs NVIDIA GPU: Comparing AI Hardware for Training and Inference, Deploybase](https://deploybase.ai/articles/google-tpu-vs-nvidia-gpu)
25. [Nvidia says it's 'delighted' with Google's success, Tom's Hardware](https://www.tomshardware.com/tech-industry/big-tech/nvidia-says-its-delighted-with-googles-success-but-backhanded-compliment-says-it-is-the-only-platform-that-runs-every-ai-model-statement-comes-soon-after-meta-announces-proposed-deal-to-acquire-google-cloud-tpus)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 17, 2026; Sep 19, 2026; Oct 15, 2026 · Edited: Oct 11, 2026; Oct 15, 2026 · Last review: 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/tensor-processing-unit

English original: https://www.edgepedia.org/tensor-processing-unit
