DEV Community

Cover image for Accelerating Workloads in Google Cloud: GPUs, TPUs, and Choosing the Right Hardware
Darren "Dazbo" Lester for Google Developer Experts

Posted on Originally published at wearecommunity.io

Accelerating Workloads in Google Cloud: GPUs, TPUs, and Choosing the Right Hardware

Overview

AI is everywhere. (Who knew?) Huge leaps in generative AI capability have been made possible by modern hardware accelerators. At the same time, the demand to do more and more with AI is driving the rapid evolution of that very silicon.

But what exactly is a hardware accelerator? These days, pretty much everyone has heard about GPUs. (NVIDIA, anyone?)

Jensen - Back Again

And most developers know that AI runs well on GPUs. But why?

Not so many people know that Google has a purpose-built, ultra-efficient alternative: TPUs. What are they, and how do they actually differ under the hood?

Choosing the right accelerator isn't about chasing the biggest benchmark numbers. It's about matching your workload to the right silicon. Get it wrong, and you can waste a lot of money.

So today, I'm going to walk through a plain-English guide to AI hardware accelerators in Google Cloud. We'll cover:

  • Why We Need Accelerators: The 2013 speech-recognition bottleneck that birthed Google's custom TPU, and why modern frontier models turned AI into a massive supercomputing problem.
  • GPUs vs TPUs in Plain English: How GPUs juggle thousands of parallel threads, how TPUs pump numbers through a grid like a heartbeat, and a simple mental model for matching your workload to the right chip.
  • The NVIDIA GPU Portfolio: Practical guidance on Google Cloud's GPU options — from affordable, scale-to-zero L4 and RTX PRO 6000 GPUs on Cloud Run up to rack-scale GB200 NVL72 supercomputers.
  • The TPU Family Tree & The v8 Bifurcation: A decade of Google's custom silicon, what you can realistically rent today, and why Google split its eighth-generation TPU into two distinct chips — TPU 8t for training and TPU 8i for real-time agentic inference.

What Is a Hardware Accelerator Anyway?

You can think of a regular CPU as a Swiss Army knife — a handful of smart, flexible cores built to juggle general-purpose logic, operating systems, databases, and web apps. A hardware accelerator (such as a GPU or TPU) is the opposite: specialist hardware built to tear through narrow kinds of heavy maths, and to do so orders of magnitude faster and more power-efficiently than a CPU ever could.

To see just how hard CPUs can hit a wall in the real world, rewind to 2013. Google's infrastructure engineers confronted a worrying calculation: if every Android user spent just three minutes a day using voice search (the newly launched "OK Google" speech recognition), running the deep neural networks to transcribe all that audio would force Google to literally double its entire global data centre footprint. General-purpose CPUs simply could not keep pace with this tsunami of matrix arithmetic.

Rather than embarking on a multitrillion-dollar data centre construction spree, a small, dedicated engineering team designed, fabricated, and deployed the first custom Tensor Processing Unit (TPU v1) in just 15 months. Operating as a modest 40W accelerator dedicated purely to inference, that original chip delivered a 10× performance-per-watt advantage over contemporary hardware and quietly solved Google's voice crisis.

Aside: Training vs Inference

Before we go further, it is worth separating the two halves of any AI model lifecycle, because they push silicon in completely different directions:

  • Training is teaching the model — crunching massive amounts of data across huge batches to repeatedly update billions of parameters. It is all about raw throughput and keeping thousands of chips fed in lockstep.
  • Inference is actually using that trained model to do stuff for users. Like answering a prompt, transcribing speech, generating a video, or driving an agent loop. Here, responsiveness (latency), memory bandwidth, and cost per request rule the day.

What HPC Actually Is (and Why AI Inherited It)

Fast-forward a decade or so from Google's 2013 voice crisis, and we are facing an even bigger compute crunch.

The explosion of massive Large Language Models (LLMs), multimodal reasoning agents, and generative world models (such as Google DeepMind's Genie) has permanently outstripped Moore's Law. More importantly, it has forced a major shift: the complete convergence of Artificial Intelligence and High-Performance Computing (HPC).

It is easy to lump hardware accelerators and High-Performance Computing (HPC) into the same bucket, so let's draw a clear line between them — they actually sit at different layers. An accelerator is a specialised chip inside a machine: running an LLM on a single L4 GPU in Cloud Run is accelerated computing, not HPC. HPC, on the other hand, is a system-level discipline — aggregating clusters of machines (historically mostly CPUs, now increasingly packed with accelerators) over ultra-fast interconnects to solve mathematical problems far too massive for any single server.

Historically, HPC and AI lived in separate worlds. HPC tackled stuff like... weather forecasting, climate simulations, genomics, molecular dynamics, drug discovery, protein folding, computational fluid dynamics, and financial Monte Carlo risk analysis.

In practice, supercomputing engineers divide these workloads into two distinct flavours based on how nodes communicate:

  • Loosely Coupled: Often dubbed embarrassingly parallel by computer scientists because the work requires virtually zero coordination. Independent batch tasks run concurrently across hundreds of machines without needing to talk to one another (e.g. rendering video frames, parametric sweeps, or Monte Carlo simulations). If one node takes a bit longer, nobody else cares.
  • Tightly Coupled: Massive interdependent calculations split across dozens or thousands of nodes, requiring microsecond-level network latency, high-bandwidth interconnects, and synchronised shared memory. Here, nodes must constantly exchange partial calculation results before any machine can move to the next step. A single slow node or congested network switch halts the entire supercomputer.

Loosely Coupled vs Tightly Coupled HPC Workloads

And this is the punchline for modern cloud architecture: modern AI has split into two of the most demanding infrastructure challenges in computing history:

  1. At the cluster level: Model training and massive multi-node inference are the largest, most demanding tightly coupled HPC workloads on Earth. When you train a trillion-parameter model or route tokens across a cluster, every accelerator must synchronously exchange data every few milliseconds. If your inter-node fabric stutters, thousands of expensive accelerators grind to a halt, sitting completely idle while waiting for the slowest node to catch up. That's costly!
  2. At the global level: Serving autonomous agentic loops, real-time bidirectional voice, and multimodal reasoning across millions of concurrent users forms a massive planet-scale inference challenge. Here, every millisecond of latency and every penny of energy efficiency determines whether your AI business model is commercially viable or financially ruinous.

In the Google Cloud ecosystem, we are blessed — and occasionally paralysed — by choice. Google Cloud offers what is arguably the most versatile accelerator portfolio in the industry: spanning the latest NVIDIA Blackwell architectures (HGX B200 and GB200 NVL72) and cost-effective L4/RTX GPUs, through to custom-silicon powerhouses like Trillium (TPU v6e), Ironwood (TPU v7), and the groundbreaking eighth-generation TPU architecture (TPU 8t and TPU 8i).

The Architect's Dilemma: Navigating Compute Choice Paralysis

Here's the thing: choosing the right accelerator is rarely as simple as staring at raw teraFLOPS or comparing hourly virtual machine rates on a console pricing sheet. Navigating the real-world trade-offs — between raw memory speed, networking bottlenecks, software maturity, and your monthly cloud bill — means cutting through the vendor marketing and seeing how these chips actually behave when real code hits production.

Whether you are scaling training across thousands of interconnected nodes, serving low-latency interactive agent loops, or fine-tuning open-source models for enterprise production, this guide provides a ground-level breakdown of Google Cloud's accelerator options.

(Whilst I'm writing this, Terminator is on TV! So, a quick disclaimer: if you skip this guide, you might just save humanity by preventing the accidental emergence of Skynet. But if you've got real-world workloads to build and you'd rather not waste months wrestling with mismatched hardware, then dive in.)

Skynet

Two Philosophies of Acceleration: GPUs vs TPUs

At the heart of modern accelerated computing lie two fundamentally distinct philosophies of hardware design. While both Graphics Processing Units (GPUs) and Tensor Processing Units (TPUs) excel at accelerating parallel computations, they approach the physics of silicon and data movement from completely opposite angles.

Systolic Array and Memory Hierarchy Architecture

What is a Tensor and Why Accelerate It?

Before comparing silicon architectures, let's establish why we need "tensor acceleration" in the first place.

In machine learning, people love fancy mathematical terms, but let's demystify it immediately: a tensor is simply a multi-dimensional array of numbers. If you've ever written code with basic arrays, lists or matrices, you already know what a tensor is:

  • 0D (Scalar): A single number (e.g. a learning rate).
  • 1D (Vector): A flat array or list of numbers (e.g. a token embedding).
  • 2D (Matrix): A grid of rows and columns (e.g. a layer's weight table).
  • 3D or 4D Array: Stacking those 2D tables across sequence lengths, attention heads, and batch dimensions.

That's it. Whenever you hear the word "tensor", just think "multi-dimensional array".

Deep neural networks spend upwards of 95% of their execution time performing dense linear algebra — specifically, multiplying massive matrices of weights and activations together and adding an offset (A × B + C, formally known as General Matrix Multiply, or GEMM). Running this through traditional scalar or vector instructions requires billions of separate load, multiply, and write-back cycles across memory buses. Tensor acceleration simply means designing physical execution units capable of computing entire blocks of matrix arithmetic simultaneously in hardware.

The fundamental architectural divide lies in how NVIDIA and Google approached this challenge:

  • NVIDIA's Evolution: Began with a massively parallel graphics architecture and progressively layered specialised Tensor Cores into its existing Streaming Multiprocessors.
  • Google's Clean Slate: Designed the TPU from a blank canvas as a dedicated Application-Specific Integrated Circuit (ASIC) engineered entirely around streaming matrix multiplications.

The GPU Philosophy

GPUs evolved from rendering 3D in video games into massively parallel, general-purpose computing platforms. Modern NVIDIA architectures execute work using Single Instruction, Multiple Threads (SIMT) organised across dozens of Streaming Multiprocessors (SMs) — the fundamental compute engines containing the GPU's arithmetic logic units (ALUs), register files, and warp schedulers.

Within each SM, threads are scheduled and dispatched in lockstep groups of 32 (a fixed number across every NVIDIA generation — the engineering "sweet spot" balancing memory bus alignment with scheduler silicon overhead), termed warps.

Engage Warp 32: Concurrency Hiding Memory Latency

Because fetching data from off-chip High Bandwidth Memory (HBM) takes hundreds of clock cycles, the GPU "hides" this memory latency through sheer concurrency: the moment Warp A issues a memory request and stalls, the hardware scheduler instantly context-switches to Warp B or Warp C in a single cycle. To feed this firehose of concurrent execution, an intricate hierarchy of on-chip register files, L1 caches, unified shared memory (SRAM), and an expansive L2 cache keeps frequently accessed data and instructions right next to the arithmetic units, avoiding costly round-trips to distant memory.

GPU Warp Scheduling: Hiding Off-Chip Memory Latency Through Zero-Overhead Concurrency

The Core Strength: Algorithmic Versatility and Dynamic Branching. Because modern GPUs can track execution state and branch divergence down to individual threads, they handle irregular control paths with remarkable resilience. If your algorithm requires dynamic recursion, graph traversal, sparse matrix indexing, or frequent if/else conditions, the GPU adapts on the fly. Furthermore, NVIDIA's mature CUDA software ecosystem provides decades of battle-tested libraries for everything from linear algebra and deep learning to physics simulations and video processing.

The Silicon Tax: This versatility comes with a cost. A considerable fraction of the SM's silicon real estate and electrical power is consumed not by floating-point arithmetic units, but by control machinery: instruction decoders, warp schedulers (yeah — that's really a thing!), branch prediction logic, and cache-coherence protocols. Furthermore, when thousands of concurrently active threads require extensive local variables, register pressure quickly mounts. If an algorithm exhausts the physical register file, the compiler is forced to spill variables into off-chip high-latency memory, causing execution pipelines to stall.

The TPU Philosophy

Google approached accelerator design from the opposite end of the spectrum. Rather than building a flexible, general-purpose parallel processor and layering tensor acceleration on top, Google designed the TPU as an Application-Specific Integrated Circuit (ASIC) engineered with singular focus: executing large-scale matrix multiplications (A × B + C) with maximum throughput and electrical efficiency.

Rather than relying on instruction fetching, out-of-order execution, and transparent hardware caches for every floating-point operation, the TPU's compute heart — the TensorCore — is built around a Systolic Array.

The term systolic comes from medical biology. Systole: the rhythmic contraction of the heart pumping pulses of blood.

In computing, it means data pulses rhythmically through a grid of processors with each clock tick, advancing step-by-step to neighbouring cells rather than making round trips back to memory after every single calculation. In a systolic Matrix Multiply Unit (MXU):

  1. Weights (the model's parameters) are pre-loaded directly into a two-dimensional grid of arithmetic cells — tiny units designed to do one thing: multiply two numbers and add to a running total (a multiply-accumulate, or MAC, operation).
  2. Inputs (activations) stream steadily into the array from the left, while running totals flow rhythmically downwards.
  3. Neighbour-to-neighbour passing: Every clock tick, each cell multiplies its input by its weight, adds it to the sum coming from above, and passes the result directly to its neighbour below — with no round-trips to registers or memory caches required.
  4. Continuous output: The finished calculations stream out smoothly from the bottom of the grid.

As detailed in Google DeepMind's How to Think About TPUs (Jacob Austin et al., 2025), a modern TPU TensorCore consists of three tightly coupled components:

  • The Matrix Multiply Unit (MXU): The computational engine. Historically configured as a 128 × 128 systolic array, Google expanded the MXU to 256 × 256 in Trillium (TPU v6e), quadrupling the raw matrix operations completed per clock cycle.
  • The Vector Processing Unit (VPU): A dedicated Single Instruction, Multiple Data (SIMD) vector processor. While the MXU focuses purely on 2D matrix contractions, the VPU applies a single mathematical instruction across an entire 1D vector of numbers in parallel — handling non-linear activation functions, layer normalisation, vector additions, and mathematical reductions.
  • Vector Memory (VMEM): A high-speed, on-chip SRAM scratchpad located directly adjacent to the compute units (e.g. 128 MB on TPU v5e, expanding significantly in newer chips). Unlike a CPU or GPU cache that relies on reactive hardware circuits to guess what data to keep, VMEM is software-managed. Because deep learning matrix calculations follow predictable patterns, the compiler orchestrates asynchronous Direct Memory Access (DMA) transfers in advance — streaming the next block of weights into VMEM while current calculations execute. This eliminates costly hardware cache misses and frees up silicon space that would otherwise be wasted on cache controllers.

By eliminating the need for complex instruction decoders, dynamic warp schedulers, cache coherence protocols, and massive register files, the TPU dedicates nearly all of its silicon surface and power budget directly to matrix arithmetic.

The Roofline

We can use experience and gut feel to anticipate which hardware accelerator is most suitable for a given workload. But there's a much more precise way to do it...

The suitability of a GPU versus a TPU is fundamentally governed by the Roofline Model — named after the distinctive roof-like profile of its graph, originally devised by computer scientists at UC Berkeley (including David Patterson, co-designer of Google's original TPU). The model compares an algorithm's Operational Intensity — the number of FLOPs (floating-point operations, such as multiplications and additions) performed per byte of data transferred from off-chip memory — against the hardware's peak compute capacity and memory bandwidth.

Operational Intensity = Total Floating-Point Operations (FLOPs) ÷ Total Bytes Transferred from Memory (Bytes)

Arithmetic Roofline Model for AI Accelerators

  1. Compute-Bound Regimes (Large Batches, Pre-training, Prefill): When calculating matrix multiplications on large prompt sequences or during pre-training with large batch sizes, operational intensity is extremely high. Data loaded into the systolic array or Tensor Cores is reused hundreds of times. In this regime, the sheer matrix density and energy efficiency of the TPU's MXUs deliver exceptional price-performance.
  2. Memory-Bound Regimes (Interactive Chat, Single-Token Streaming, Small Batches): When generating a response one word at a time for an individual chatbot user, the chip has to sweep through billions of parameters in memory just to predict the very next token. Here, operational intensity drops through the floor (< 1 FLOP/Byte). The chip isn't waiting on compute; it's waiting on memory bandwidth, leaving expensive matrix engines largely idle.

The Turning Point: The Hardware "Knee"

On the roofline graph, the point where the sloped memory line meets the flat compute ceiling is called the knee.

In plain terms, the knee is your economic break-even point: it represents the minimum amount of calculation you must perform on each byte of data to keep the chip's arithmetic units 100% busy:

  • The Core Problem: Accelerator compute power has grown exponentially, but off-chip memory bandwidth has not kept pace.
  • The Economic Consequence: If your workload sits to the left of the knee (such as generating one token at a time for an individual chatbot user), your expensive tensor cores spend most of their time waiting for data to travel from memory. You are paying full price for silicon that is barely breaking a sweat. To get your money's worth, techniques like request batching, speculative decoding, and prompt caching are essential to push your workload rightward onto the flat, efficient roof.

How We Measure: Profiling Operational Intensity in Practice

In practice, we don't guess where a workload sits against the knee. We measure it directly using dedicated hardware profiling tools:

  • On NVIDIA GPUs (NVIDIA Nsight): Profiling tools like Nsight Compute generate native Roofline charts directly from hardware counters, showing whether your kernels are bottlenecked by GPU memory transfers or compute execution during forward and backward passes.
  • On Cloud TPUs (Cloud TPU Profiler & TensorBoard): Integrated into Gemini Platform (the artist formerly known as Vertex AI) Workbench notebooks, Gemini Platform TensorBoard, and standard TPU VMs, the Cloud TPU Profiler reports systolic array utilisation and memory bandwidth saturation, immediately pinpointing whether a bottleneck is compute, memory, or host-CPU bound.

Mapping Workloads to Deployment Targets

Once you identify where your workload sits relative to the hardware knee, selecting the right accelerator and runtime becomes a logical deduction rather than guesswork:

Workload & Character Operational Intensity Profile Limiting Factor Recommended Accelerator Ideal Deployment Target
Foundation Pre-training & Continuous Fine-Tuning (e.g. Llama 3.3 70B, Gemma 3 27B) Very High (heavy compute reuse) Peak Matrix FLOPS & Interconnect Bandwidth Cloud TPU 8t / Trillium (v6e) or NVIDIA Blackwell B200 / A3 Ultra GKE Enterprise (using Dynamic Workload Scheduler & Kueue) or TPU Pod Slices
High-Concurrency Production Inference (Heavy batching, 100+ concurrent requests, e.g. Gemma 3 12B) High (batch-saturated) Matrix throughput & KV-cache memory Cloud TPU v6e (Trillium) or NVIDIA H100 / L4 Gemini Platform Endpoints or GKE with vLLM / Triton Server
Agentic Loops & Fleets of Stateful Agents (Decode-heavy, interactive tool-use, high idle time) Very Low (memory-bound inference; compute-idle execution) HBM Bandwidth, TTFT, and Agent Workspace Over-subscription Cloud TPU 8i or NVIDIA H200 / B200 (for model inference) Gemini Platform Endpoints or GKE (with Agent Substrate & GKE Sandbox)
Event-Driven & Microservice Inference (Lightweight models: Gemma 3 1B/4B, Whisper, embeddings, multimodal/video) Low to Medium Cold-start latency, scale-to-zero cost NVIDIA L4 (G2) or RTX PRO 6000 (G4) Cloud Run (Serverless GPUs) or GKE Autopilot (with KEDA)
Non-Standard & Dynamic Control Flow (Graph Neural Networks, RL with physics simulators, dynamic trees) Highly Divergent (unpredictable branching) SIMT thread branch divergence, random memory access NVIDIA GPUs (A3, A4, G4) Compute Engine (GCE VMs) or GKE GPU Node Pools

Not All Accelerator Types Plug into Every Runtime

  • Cloud Run offers brilliant scale-to-zero economics for lightweight microservices, supporting NVIDIA L4 (24 GB VRAM) and NVIDIA RTX PRO 6000 (96 GB GDDR7, added in April 2026) GPUs — it has no TPU support.
  • TPUs are fundamentally clustered, orchestrator-driven accelerators. They must be provisioned on Compute Engine (TPU VMs), GKE (standard or Autopilot node pools), or the Gemini Platform.
  • Fleets of Autonomous AI Agents: When designing agentic systems, separate the thinking from the doing. Model inference belongs on high-throughput accelerator endpoints (GPUs or TPUs). The agents themselves — who spend over 90% of their life cycle idle while waiting on human input or tool APIs — are ideal candidates for Agent Substrate on GKE. By snapshotting and suspending idle agents in under 500 ms and running them inside zero-trust microVM sandboxes (GKE Agent Sandbox), you can achieve 30×+ higher agent density per worker node without burning expensive 24/7 compute.

To make an informed design decision, you need to understand both sides of this silicon spectrum. Because NVIDIA GPUs represent the foundational baseline for modern deep learning and remain the default industry standard against which all alternative accelerators are measured, we begin our hardware deep dive by examining Google Cloud's extensive GPU portfolio.

Google Cloud (NVIDIA) GPU Lineup

Google Cloud maintains a premier partnership with NVIDIA, offering an extensive portfolio of Accelerator-Optimised virtual machine families. Rather than getting bogged down in transistor counts and silicon dies, it's far more practical to evaluate these machines on three criteria: generational evolution, target workload fit, and hourly economics.

Machine Family Accelerator & Architecture Generation & Evolution Memory per GPU Best-Suited Workloads Indicative Hourly Cost (On-Demand)*
G2 NVIDIA L4 (Ada Lovelace) Inference workhorse (replaces T4) 24 GB GDDR6 (72W) Cost-effective inference, audio/video pipelines, embeddings, Cloud Run scale-to-zero ~$0.71 / GPU / hr (g2-standard-4)
G4 NVIDIA RTX PRO 6000 (Blackwell) Workstation & media powerhouse 96 GB GDDR7 Generative video/diffusion, 3D rendering, spatial compute, multimodal inference, Cloud Run scale-to-zero ~$4.50 / GPU / hr (g4-standard-48; fractional slices from ~$1.52/hr)
A2 NVIDIA A100 (Ampere) Established baseline (phased out for new capacity) 40 GB / 80 GB HBM2e Legacy deep learning, FP64 scientific simulations (CFD, molecular dynamics) ~$3.67 (40 GB) – $5.07 (80 GB) / GPU / hr
A3 / A3 Mega NVIDIA H100 SXM (Hopper) Enterprise standard for distributed training 80 GB HBM3 Distributed LLM pre-training & fine-tuning (< 70B), high-throughput serving ~$11.06 – $11.68 / GPU / hr
A3 Ultra NVIDIA H200 SXM (Hopper) Memory-expanded Hopper (1.8× memory leap) 141 GB HBM3e Large foundation model training, long context windows, memory-heavy Mixture-of-Experts (MoE) inference ~$10.60 / GPU / hr (Flex-start ~$5.30)
A4 NVIDIA HGX B200 (Blackwell) Next-gen dense training & inference 180 GB HBM3e Massive frontier LLM training, dense multi-GPU serving, native FP4 execution ~$16.11 – $18.53 / GPU / hr (Spot ~$8.06; typically reserved / Flex-start)
A4X NVIDIA GB200 NVL72 (Blackwell) Rack-scale supercomputer (replaces multi-node clusters) 192 GB HBM3e (Superchip) Exascale pre-training (> 100B MoE), trillion-parameter frontier reasoning models Full rack enterprise / bespoke

(Note: Indicative Google Cloud us-central1 on-demand bundled VM rates divided by GPU count, excluding committed use discounts. See official Compute Engine GPU Pricing for live rates.)

Aligning GPUs to Workload Archetypes

To cut through the hardware matrix, we can group Google Cloud's GPU instances into three clear operational tiers:

1. The Inference & Scale-to-Zero Workhorses (G-Series)

Not every workload warrants a multimillion-dollar cluster. For everyday production inference, the G-Series delivers exceptional price-performance:

  • G2 (NVIDIA L4): Drawing just 72 watts, the L4 is Google Cloud's most cost-effective inference engine. It is ideal for serving medium-sized open models (such as Gemma 3 12B or Mistral 7B), embedding generation, and Whisper audio transcription. Alongside the RTX PRO 6000, the L4 is natively supported on Cloud Run, enabling serverless, scale-to-zero model hosting where infrastructure costs drop to literally $0 when traffic ceases.
  • G4 (NVIDIA RTX PRO 6000): The step up when the L4's 24 GB isn't enough. With 96 GB of VRAM and serious graphics muscle alongside AI compute, it is a natural fit for larger multimodal models, image and video generation, digital twins, and 3D rendering. Since April 2026, it has also joined the L4 on Cloud Run, bringing 96 GB GPUs to serverless, scale-to-zero containers.

2. The Distributed Training & Enterprise Baseline (A3 Series: NVIDIA Hopper)

The A3 family (powered by NVIDIA's Hopper architecture) is the enterprise standard for training foundation models and serving high-concurrency LLMs:

  • A3 & A3 Mega (H100): Powered by 80 GB H100 GPUs, these are the workhorses for distributed fine-tuning and pre-training models up to ~70 billion parameters. Where A3 Mega stands out is networking: Google's custom Titanium network cards let GPUs stream training updates straight between each other's memory across nodes, bypassing OS overhead so multi-node clusters stay busy.
  • A3 Ultra (H200): As models and context windows grew, 80 GB per GPU quickly became cramped — especially for long-context inference and Mixture-of-Experts (MoE) routing (where models dispatch each token to specialised sub-networks across GPUs). Jumping to 141 GB of memory per GPU with much faster inter-node networking lets you fit massive models onto far fewer machines, slashing those costly cross-node synchronisation stalls.

3. The Frontier & Rack-Scale Apex (A4 & A4X Series: NVIDIA Blackwell)

For organisations operating at the technological frontier, NVIDIA's Blackwell architecture rethinks how multi-GPU clusters communicate:

  • A4 (HGX B200): Packing 180 GB of HBM3e and 1.8 TB/s NVLink 5 bandwidth per GPU, the A4 introduces native FP4 (4-bit floating point) execution. By halving memory requirements and doubling arithmetic throughput compared to FP8, it delivers up to 2.25× the training throughput of previous-generation Hopper (A3/H100) instances.
  • A4X (GB200 NVL72): Rather than wiring separate servers together over traditional networks, the NVL72 packs 72 Blackwell GPUs (paired with 36 Grace CPUs) into a single liquid-cooled rack connected by a direct copper NVLink backbone. The result? All 72 GPUs behave like one giant, unified accelerator pooling nearly 14 TB of high-speed memory — wiping out the cross-server network lag that historically choked massive MoE and trillion-parameter models.

The TPU Family Tree & The Eighth-Generation Bifurcation

While GPUs have pushed the limits of general-purpose parallel compute, Google's TPU evolution has followed an aggressive, decade-long trajectory of architectural specialisation and optical fabric innovation.

A Decade of TPU Silicon Scaling: Exponential Performance Evolution 2015-2026

Plotted on a logarithmic scale, Google's TPU silicon shows a remarkable exponential climb: roughly a 280× leap in peak floating-point compute in under a decade, from TPU v2 in 2017 to the eighth-generation TPU 8t and 8i.

At first glance on the logarithmic chart, TPU v2 (45 TFLOPs of bfloat16) might appear to take a step backwards from TPU v1 (92 TOPS of INT8). In reality, we must not confuse integer operations per second (TOPS) with floating-point operations per second (TFLOPs) — this transition reflects one of the most important milestones in AI hardware: moving from simple integer inference to full model training.

  • TPU v1 (2015) was an inference-only ASIC custom-built to solve the "OK Google" voice search crisis we met in the introduction. Because it only needed to run already-trained models, Google built a giant 8-bit integer engine (92 TOPS INT8). It was lightning-fast at simple whole-number maths, but it could not perform floating-point arithmetic or train neural networks.
  • TPU v2 (2017) crossed the frontier into model training. Teaching a neural network requires calculating delicate fractional adjustments (floating-point arithmetic). Because handling floating-point numbers takes far more silicon real estate per calculation than simple integers, the nominal operation count started at 45 TFLOPs, but TPU v2 unlocked distributed training at cloud scale by introducing bfloat16.

Once that floating-point hurdle was cleared, TPU floating-point scaling exploded. As shown in the linear-scale inset in the top-right corner, what looks like a steady climb on a logarithmic axis is actually a dramatic exponential hockey stick — rocketing nearly 280× from 45 TFLOPs (bfloat16) on TPU v2 to 10.1 PFLOPs (FP4) on TPU 8i and 12.6 PFLOPs (FP4) on TPU 8t.

TPU Generations

Google Cloud TPU Evolution Timeline 2015-2026

  • TPU v2 & v3 (2018–2020): Unlocked cloud-scale model training with Google's custom bfloat16 number format (halving memory usage without losing training stability), and introduced direct-to-chip liquid cooling in v3 to tame the heat.
  • TPU v4 (2022): Introduced Optical Circuit Switches (OCS) — tiny mirrors that dynamically rewire optical links between racks across up to 4,096 chips. If a node or link degrades during a month-long training run, the cluster routes around it in milliseconds instead of crashing the job.
  • TPU v5e ("Lite", 2023): Google's first cost-optimised TPU — designed for affordable inference and mid-scale fine-tuning of open-source models at standout price-performance.
  • TPU v5p ("Performance", 2023): The heavy-duty sibling built to train Google's flagship Gemini models, scaling to nearly 9,000 chips in a single pod with more than double the compute of TPU v4.
  • Trillium / TPU v6e (2024): A huge generational leap — doubling memory and chip-to-chip bandwidth while expanding to massive 256 × 256 systolic arrays, delivering 4.7× the peak compute of v5e with 67% better energy efficiency.
  • Ironwood / TPU v7 (2025): Google's ultra-dense seventh-generation superpod, adding native FP8 support and 192 GB of high-speed memory per chip across up to 9,216 liquid-cooled chips to power models like Gemini 3.8 and AlphaFold 3.

What Can You Actually Run Today? A Real-World Availability Guide

When reading hardware roadmaps, it is tempting to jump straight to the newest silicon. But silicon capability must be balanced against regional quota availability, provisioning models, and raw economics. Always consult Google's official TPU regions and zones and Cloud TPU pricing pages to verify live topologies and rates before committing to architectural designs.

Here is how Google's TPU portfolio shakes out in real-world production today (indicative US on-demand rates):

  • The Deprecated Legacy (TPU v2 & v3): These early chips are effectively retired. They relied on Google's outdated "TPU Node" architecture (where your application ran on a separate CPU host that streamed data over internal gRPC networks to a remote TPU). Modern workloads should never target v2 or v3; they have been completely superseded.
  • The Classical Supercomputer: TPU v4: As Google's first large-scale Optical Circuit Switch (OCS) architecture, TPU v4 remains active in major hubs like us-central2. However, at roughly $3.22 per chip-hour, it is largely reserved for established training pipelines and academic research clusters. Newer deployments typically leap straight to v5p or v6e.
  • The Budget Workhorse: TPU v5e (Cloud TPU v5 Lite): At roughly $1.20 per chip-hour (dropping to $0.60 on Spot or Dynamic Workload Scheduler), v5e is Google's most accessible budget accelerator across North America and Europe (note that v5e is not listed in Asia-Pacific or South America in the standard TPU regions and zones matrix — teams needing APAC or South American residency should target Trillium v6e, which offers zones in Tokyo asia-northeast1 and Santiago southamerica-west1). Where regionally available, v5e remains a go-to choice for fine-tuning 7B to 32B open-weight models, generating high-volume embeddings, or serving cost-sensitive inference without quota bottlenecks.
  • The Production Sweet Spot: TPU v6e (Trillium): Delivering a 4.7× compute leap over v5e with its massive 256 × 256 MXU, Trillium is the current enterprise sweet spot. At roughly $2.70 per chip-hour, its performance-per-dollar beats almost everything else on the market for modern LLM serving (via vLLM or JetStream) and mid-to-large-scale training.
  • The Frontier Supercomputers (TPU v5p, v7 Ironwood, & TPU 8t/8i): Built for multi-thousand-chip pre-training runs (like Gemini 3.8). These top-tier accelerators command premium rates (from $4.20/chip-hour on v5p up to $12.00/chip-hour on Ironwood), operate in specialised, high-density AI zones (such as us-central1-ai1a or us-east5 engineered specifically for liquid-cooled supercomputing clusters), and typically require formal capacity reservations. They are computational powerhouses, but they are not the silicon you spin up for quick ad-hoc testing.

TPU v8: Two Purpose-Built Chips

Announced in April 2026, the eighth-generation TPU represents the most radical architectural evolution in Google's custom silicon history.

Recognising that the hardware demands of frontier pre-training and real-time agentic serving have fundamentally diverged, Google abandoned the "one-size-fits-all" chip design and split the v8 generation into two distinct, purpose-built processors: TPU 8t and TPU 8i.

Google Cloud TPU v8 Bifurcated Silicon Architecture

1. TPU 8t (The Training Powerhouse)

Remember the Roofline Model from earlier? Training massive foundation models with huge batches sits squarely on the compute-bound roof — each weight loaded from memory is reused thousands of times, so local memory speed isn't your main bottleneck. Instead, your biggest enemy is raw throughput and time: how many weeks (and dollars) it takes to finish a run without thousands of chips stalling while waiting on each other over the network:

  • Planetary-Scale Cluster Scaling: TPU 8t is built to scale into superpods of up to 9,600 chips linked by Google's custom optical network fabric. Rather than suffering network degradation across traditional data centre switches, the cluster behaves as a single, coordinated supercomputer.
  • Native FP4 Speed & Efficiency: By working with compact 4-bit numbers (FP4) instead of 8-bit (FP8), TPU 8t delivers ~12.6 PFLOPs of peak compute per chip alongside 216 GB of high-speed memory. Smaller weights mean you can fit bigger models and larger batches onto fewer chips while roughly doubling arithmetic throughput — finishing month-long training runs much faster and cutting the cloud bill.
  • Target Workloads: Large foundation pre-training, massive continuous fine-tuning runs, and training recommendation systems with multi-terabyte embedding tables.

2. TPU 8i (The Agentic Inference Engine)

Interactive inference and agentic loops live on the opposite side of the Roofline — stuck on the memory-bound slope. Models no longer just answer one-off questions; they maintain long conversational histories, reason across multi-step chains of thought, and repeatedly call external tools. In this regime, raw arithmetic isn't the bottleneck — TPU 8i deliberately trades away a slice of peak compute to prioritise memory capacity and bandwidth, because your real enemy here is memory latency:

  • Keeping Active Context Close to the Compute: Every time an agent decides its next step, it has to re-read its conversation history and working context (the Key-Value cache) from memory. TPU 8i tackles this with 384 MB of on-chip SRAM plus 288 GB of high-bandwidth memory, keeping hot context right next to the compute units instead of waiting on slow memory trips.
  • Faster Time-to-First-Token (TTFT): Nobody wants to stare at a blinking cursor for several seconds before a model starts answering. Keeping active context on-chip cuts that initial wait right down, making interactive chat and multi-step tool calls feel snappy.
  • Target Workloads: Multi-step autonomous agent loops, long-context document reasoning, high-throughput interactive APIs, and real-time world-model simulations where thousands of parallel decision paths are evaluated on the fly.

Wrapping Up

Understanding what is happening under the hood — why GPUs excel at dynamic branching and latency hiding, why TPU systolic arrays crush dense matrix maths, and how the Roofline Model maps your workload to silicon — gives you the mental model to avoid expensive hardware mismatches.

In practice, it comes down to three habits: figure out whether your workload is compute-bound or memory-bound, check real-world regional availability and pricing rather than chasing the newest spec sheet, and start with the simplest runtime that fits (whether that's a scale-to-zero L4 on Cloud Run, a Trillium slice on GKE, or a dedicated training cluster). Get that match right, and your models run faster while your cloud bill stays sane.

Join the TPU Community

This article was originally written for the TPU Community — an open, developer-led collective of ML engineers, systems designers, and cloud practitioners building on hardware accelerators. Whether you want to learn the basics, chat with fellow enthusiasts, fine-tune open models, benchmark TPU serving throughput, or wrangle multi-node clusters, come and say hello!

Before You Go

  • Please share 📢 this with anyone that you think will be interested. It might help them, and it really helps me!
  • Please drop some reactions ❤️ 🦄 🔥 (you can pick more than one!) and bookmark 🔖 this post!
  • Please leave a comment 💬. Interaction is good!
  • Add a star ⭐ on my repos!
  • Follow 👉 me here on Dev.to, so you don’t miss my content.

References and Useful Links

Google & Hardware Documentation

Dazbo Links

Top comments (1)

Collapse
 
jacobfoster21 profile image
jacob foster •

This shows how specialized hardware can solve problems more efficiently than general-purpose systems. The real innovation is not always adding more computing power, but designing technology around specific needs.