🧠 What is a TPU? Google's Secret Weapon Explained

Last reviewed on 2026-08-28 Β· 14 min read Β· Jump to pricing Β· FAQ

Key Takeaways:

TPU, in short

What Exactly is a TPU?

A Tensor Processing Unit (TPU) is Google's custom-developed Application-Specific Integrated Circuit (ASIC) designed specifically for neural network machine learning. Unlike GPUs which are general-purpose parallel processors, TPUs are optimized exclusively for the matrix multiplication operations that dominate deep learning workloads.

Think of it this way: If GPUs are Swiss Army knives (versatile but not specialized), TPUs are surgical scalpelsβ€”incredibly efficient at one specific task.

πŸ—οΈ TPU Architecture: Built Different

TPU v4 Architecture

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚          TPU v4 Chip                β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚  Matrix     β”‚  β”‚  Matrix     β”‚  β”‚
β”‚  β”‚  Multiply   β”‚  β”‚  Multiply   β”‚  β”‚
β”‚  β”‚  Unit (MXU) β”‚  β”‚  Unit (MXU) β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β”‚         ↓                ↓          β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚     Vector Processing Unit    β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β”‚         ↓                          β”‚
β”‚  β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”  β”‚
β”‚  β”‚    32GB HBM Memory           β”‚  β”‚
β”‚  β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜  β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                

TPUs use systolic arrays for maximum efficiency in matrix operations

Key Architectural Differences:

Feature GPU (H100) TPU v4 Winner
Design Philosophy General parallel compute Tensor operations only Depends on use case
Programming Model CUDA, various frameworks TensorFlow, JAX primarily GPU (flexibility)
Memory 80GB HBM3 32GB HBM per chip GPU (capacity)
Power Consumption 700W 200W TPU (3.5x efficient)
Peak FLOPS 989 TFLOPS (FP16) 275 TFLOPS (bfloat16) GPU (raw power)
Cost per FLOP Higher Lower TPU (efficiency)
Availability Multiple cloud providers Google Cloud only GPU (accessibility)

πŸ“Š TPU Generations Evolution

TPU v1 (2016) - The Beginning

Performance: 92 TOPS
Memory: 8GB DDR3
Purpose: Inference only
Power: 40W

Used internally for Google Search, Photos, and Translate

TPU v2 (2017) - Training Capable

Performance: 180 TFLOPS
Memory: 64GB HBM
Purpose: Training + Inference
Power: 280W

First TPU available on Google Cloud

TPU v3 (2018) - Scale Up

Performance: 420 TFLOPS
Memory: 128GB HBM
Cooling: Liquid cooled
Power: 450W

2.3x faster than v2, pods scale to 2048 chips

TPU v4 (2021) - Current Generation

Performance: 275 TFLOPS
Memory: 32GB HBM
Interconnect: ICI 2.0
Power: 200W

2.7x performance/watt improvement, optical interconnects

πŸ“ˆ Newer generations: v5e, v5p, v6e Trillium and v7 Ironwood

The v4 figures above describe the generation most published benchmarks refer to, but Google has shipped several since. Headline numbers below are Google's published peak figures per chip; treat them as order-of-magnitude guidance and confirm on the current Google Cloud spec page before sizing a job.

Generation Year Peak per chip HBM per chip Positioning
TPU v42021275 TFLOPS (bf16)32 GBTraining and inference; large optical-switch pods
TPU v5e2023197 TFLOPS (bf16) / 394 TOPS (int8)16 GBCost-efficient inference and mid-size training
TPU v5p2023459 TFLOPS (bf16)95 GBLarge-model training; pods up to 8,960 chips
TPU v6e "Trillium"2024918 TFLOPS (bf16)32 GB~4.7Γ— v5e compute; general-purpose training and serving
TPU v7 "Ironwood"2025~4,600 TFLOPS (FP8)192 GBInference-first at massive scale; pods of 9,216 chips

For a like-for-like comparison against NVIDIA parts, the H100 delivers roughly 989 TFLOPS dense bf16 with 80 GB HBM3, the H200 the same compute with 141 GB, and the B200 around 2.2 PFLOPS dense bf16 with 192 GB β€” see the H100 vs A100 vs H200 vs B200 comparison. Current per-hour rental rates for TPU v6e and v7 alongside those GPUs are listed in the GPU rental price index.

πŸ’ͺ TPU vs GPU: Real-World Performance

Workload TPU v4 Pod-32 8x A100 Cluster Winner
BERT-Large Training 2.3 hours 3.8 hours TPU (1.65x faster)
ResNet-50 Training 28 minutes 35 minutes TPU (1.25x faster)
GPT-3 13B Fine-tune 4.5 hours 5.2 hours TPU (1.15x faster)
Stable Diffusion Not optimized 12 img/sec GPU (compatibility)
Custom CUDA Kernels Not supported Full support GPU (flexibility)
Power Efficiency 1.375 TFLOPS/W 0.78 TFLOPS/W TPU (1.76x efficient)

βœ… When to Use TPUs

Perfect For:

  • βœ“ Large-scale TensorFlow/JAX training
  • βœ“ Transformer models (BERT, GPT)
  • βœ“ Batch inference at scale
  • βœ“ Research with free Colab TPUs
  • βœ“ When power costs matter
  • βœ“ Google Cloud native workloads

Avoid For:

  • βœ— PyTorch-first workflows
  • βœ— Custom CUDA kernels
  • βœ— Small-scale experiments
  • βœ— Multi-cloud deployments
  • βœ— Gaming/graphics workloads
  • βœ— Variable precision needs

πŸš€ Getting Started with TPUs

# Quick start with TPUs in TensorFlow
import tensorflow as tf

# Connect to TPU
resolver = tf.distribute.cluster_resolver.TPUClusterResolver(tpu='')
tf.config.experimental_connect_to_cluster(resolver)
tf.tpu.experimental.initialize_tpu_system(resolver)

# Create distribution strategy
strategy = tf.distribute.TPUStrategy(resolver)

# Build model within strategy scope
with strategy.scope():
    model = tf.keras.Sequential([
        tf.keras.layers.Dense(512, activation='relu'),
        tf.keras.layers.Dense(10, activation='softmax')
    ])

    model.compile(
        optimizer='adam',
        loss='sparse_categorical_crossentropy',
        metrics=['accuracy']
    )

# Training runs on TPU automatically
model.fit(train_dataset, epochs=10)

πŸ’° TPU pricing on Google Cloud

Illustrative TPU v4 pricing

Configuration On-Demand Preemptible 1-Year Commit
TPU v4-8 (single host) $3.22/hour $0.97/hour $2.25/hour
TPU v4 Pod-32 $12.88/hour $3.86/hour $9.02/hour
TPU v4 Pod-128 $51.52/hour $15.46/hour $36.06/hour

Note: Google has since released v5e/v5p (efficiency- and performance-tuned variants), v6e, and a v7 (Ironwood) preview. The v4 figures above are kept here as a stable reference for the systolic-array generation; always check Google Cloud's current pricing page before sizing a project.

πŸ”¬ Where TPUs are typically used

Internal Google workloads

TPUs were originally built to run Google's own ranking, recommendation, and translation models. The product line is mature because Google itself depends on it.

Large transformer training

TPU pods scale across thousands of chips with high-bandwidth interconnects, which fits the data-parallel and model-parallel patterns common in large transformer training.

Research with free or low-cost access

Google provides limited TPU access in Colab and through programs aimed at academic and open-source researchers, which makes the platform a practical option for experimentation.

❓ TPU frequently asked questions

What does TPU stand for?

TPU stands for Tensor Processing Unit. It is Google's custom chip for running the tensor (matrix) arithmetic that neural networks are built from.

What is a TPU in computing, in one sentence?

A TPU is a purpose-built AI accelerator chip, designed by Google, that performs the matrix multiplications behind machine-learning training and inference faster and with less power than a general-purpose CPU or GPU.

Who makes TPUs, and can I buy one?

Google designs TPUs and deploys them in its own data centres. They are not sold as cards for PCs or servers; you rent them through Google Cloud (TPU v5e, v5p, v6e Trillium and v7 Ironwood) or use the limited free allocation in Google Colab. The small Coral Edge TPU is the one exception, sold as a low-power inference module for embedded devices.

Is a TPU better than a GPU?

Neither is better in general. A TPU delivers more useful compute per watt and per dollar for large TensorFlow or JAX workloads on Google Cloud, especially at pod scale. A GPU is more flexible: it runs PyTorch and custom CUDA kernels natively, is available from every cloud provider, and handles graphics and non-ML work. Most teams that are not already on Google Cloud stay on GPUs.

Is TPU technology new?

No. Google put the first-generation TPU into production in 2015 and announced it publicly in 2016. Each generation since (v2 in 2017, v3 in 2018, v4 in 2021, v5e and v5p in 2023, v6e Trillium in 2024, v7 Ironwood in 2025) has raised throughput and memory.

Why are there separate TPU versions for training and inference?

Training needs higher-precision arithmetic, large high-bandwidth memory and fast chip-to-chip links to synchronise gradients across thousands of chips. Inference needs cheap, low-power throughput and tolerates lower precision. Google splits the line, for example v5p for large-scale training and v5e/v6e for cost-efficient serving, so that each chip is not paying for hardware the other workload does not use.

What is HBM on a TPU?

HBM is High Bandwidth Memory: stacks of DRAM bonded next to the TPU die so that model weights and activations can be streamed into the matrix units fast enough to keep them busy. HBM capacity per chip has grown from 16 GB on v5e to 192 GB on v7 Ironwood.

How much does a TPU cost per hour?

On Google Cloud, TPU v6e (Trillium) lists at around $3.22 per chip-hour on demand and TPU v7 (Ironwood) at around $8.50 per chip-hour in preview, with committed-use and spot tiers below that. Current per-hour rates alongside NVIDIA GPUs are kept in the GPU rental price index.

🎯 The Verdict: TPU or GPU?

Choose TPUs if:

Stick with GPUs if:

Bottom Line: TPUs are incredibly powerful for specific workloads but lack the flexibility of GPUs. For most teams, GPUs remain the safer choice unless you're fully committed to the Google Cloud ecosystem and TensorFlow/JAX frameworks.

Calculate Your GPU/TPU Costs β†’