Captions are on by default; turn them off from the player menu. The narration uses a synthetic voice.
Transcript
CPU, GPU, TPU, LPU and DPU in AI solutions
Welcome to HubDat AI. Most AI designs start with one question: how many GPUs do we need? But a production AI platform uses five kinds of processor: the CPU, GPU, TPU, LPU and DPU. Each one is the right answer for a different part of the pipeline, and putting work on the wrong chip is the most common reason AI platforms are slow, expensive, or both. In this video we cover why each processor exists, when to use it, when not to, and how to combine all five.
Five processors, one sentence each
First, the terms, so there is no confusion. The CPU, or central processing unit, is the general-purpose server processor from Intel, AMD, or Arm-based designs. The GPU, or graphics processing unit, is a parallel accelerator with high-bandwidth memory, from NVIDIA, AMD and Intel. The TPU, or tensor processing unit, is Google's own AI accelerator, and you can only rent it in Google Cloud. LPU, language processing unit, is Groq's name for its inference chip. It is a product name, not an industry-wide category. And the DPU, or data processing unit, is a programmable network, storage and security card with its own cores, such as NVIDIA BlueField. On AWS, Trainium and Inferentia play a role similar to the TPU.
Every AI workload is limited by one of three things
Here is the one idea that explains all five. Every AI workload is limited by one of three things. Compute, measured in floating point operations per second, limits training, reading the prompt, which is called prefill, and batch embeddings. Memory bandwidth limits token generation, called decode, because every weight is read once for every token. And input, output and control limit ingestion, parsing, retrieval and network traffic. Each processor wins on a different limit. The CPU handles control and data work. The GPU combines compute with high-bandwidth memory. The TPU delivers compute at very large scale. The LPU attacks the bandwidth limit with on-chip memory. And the DPU takes over input and output.
CPU: the control plane and the data plane
Let's start with the CPU. It runs everything that is not dense tensor math: the A P I gateway, tokenisers, document parsing, chunking, vector search, schedulers and the inference server's own process. Modern server CPUs also have AI instructions: Intel A M X matrix units on fourth generation Xeon Scalable and later, and A V X 512 on AMD Epic from the Zen 4 generation. So a CPU is a good choice for classic machine learning, rerankers, small embedding models, and small quantised language models of around one to eight billion parameters at low concurrency. It is the wrong choice for high-concurrency chat, long contexts, large dense models, or real training.
Memory bandwidth matters more than cores
To check a CPU, list its AI instructions with L S C P U and look for the A M X and A V X 512 flags. Then check the memory. For CPU inference, memory bandwidth matters more than core count. Eight channels of D D R 5 at 4800 give about 307 gigabytes per second per socket, but only if every channel has a memory module. And pin the inference process to one NUMA node with numa control, so it does not pay the cost of reaching across sockets.
GPU: the default accelerator
The GPU is the default accelerator. It combines thousands of cores, tensor cores for low precision such as B F 16, F P 8, and F P 4 on the newest parts, and high-bandwidth memory with several terabytes per second. Its software ecosystem is the most mature: cooda, rock M, PyTorch, V L L M, TensorRT L L M and Triton. One GPU fleet can train, fine-tune, embed and serve. Use it for training, for serving language models to many concurrent users, where continuous batching makes it efficient, and when you need portability across clouds and on-premises. Watch out for capacity shortages, the cost of idle GPUs, and the difference between N V link and PCI express when you split a model across GPUs.
Inventory and topology
To check a GPU node, N V I D I A S M I with a query gives you each GPU's name, memory and power limit. N V I D I A S M I topology shows how GPUs are connected. N V followed by a number means N V link between those GPUs. P H B or S Y S means traffic goes over PCI express or across CPU sockets, which is much slower for tensor parallel serving. And to see which GPU sizes a region offers, list the N series V M sizes in Azure, or the P and G instance types in A W S.
TPU: Google's tensor ASIC, at pod scale
The TPU is Google's tensor A-sick. It uses systolic array matrix engines with high-bandwidth memory, and the chips in a slice are joined by Google's inter-chip interconnect. Jobs larger than one slice also use the data centre network, and Google runs all of that networking for you. Use TPUs when you are on Google Cloud at large scale, and your stack is jacks, PyTorch with X L A, or a serving engine with a TPU backend. Keep shapes static, because X L A compiles graphs and changing shapes cause recompilation. Avoid TPUs if you need multi-cloud or on-premises, depend on cooda-only kernels, or have no X L A experience. To see what is available, list the accelerator types and runtime versions in your zone with G cloud.
LPU: deterministic, low-latency inference
The L P U is Groq's inference-only chip. Instead of external high-bandwidth memory, it keeps model weights in on-chip S-ram: 230 megabytes per first generation chip, with up to 80 terabytes per second on the die, according to Groq's product brief. A compiler schedules every operation in advance, so latency is fast and very steady. The catch is capacity. A large model must be spread across hundreds of chips, so in practice you use L P Us through a hosted A P I, GroqCloud. Use it for latency-critical work such as voice agents, real-time assistants and agent loops that make many calls in a row. Do not use it for training, for your own custom models, or for data that cannot leave your network. Note that in December 2025 Groq licensed its technology to NVIDIA on a non-exclusive basis, and GroqCloud continues to operate. Check the current models, regions and data terms before you depend on it.
DPU: the infrastructure processor
The D P U is the infrastructure processor. It is a smart nick with its own Arm cores and hardware engines, such as NVIDIA BlueField, AMD Pensando or Intel I P U. It takes networking, storage and security work off the host: R D M A and virtual switching, N V M E over fabrics and encryption, firewalling and tenant isolation. Cloud providers build the same idea into their platforms, for example A W S Nitro, so there you get the benefit without managing a card. D P Us matter in GPU clusters, where every CPU cycle spent on packets is a cycle not spent feeding the GPU, in multi-tenant AI clouds, and in storage-heavy pipelines for checkpoints and K V cache offload. You do not need one for single node inference or standard cloud virtual machines.
Why decode speed depends on memory bandwidth
Here is the math that separates CPU, GPU and L P U. For one user on a dense model, every weight is read once for every token. So the ceiling on tokens per second is memory bandwidth divided by model size in bytes. An 8 billion parameter model at 4 bits is about 4 gigabytes, so a CPU with 307 gigabytes per second tops out around 77 tokens per second. A 70 billion parameter model at F P 8 is about 70 gigabytes, so the same CPU manages about 4. At H 100 bandwidth, 3.35 terabytes per second, the ceiling is about 48 tokens per second per stream. These are theoretical ceilings, not benchmarks, and for mixture of experts models you use the active parameters. GPUs win on total throughput, because batching many users shares each weight read. L P Us win on single-stream speed.
Which processor for which job
Putting it together. Ingestion, parsing, the A P I layer and orchestration go on CPUs, with D P Us to offload network and storage work in large clusters. Vector search is memory-heavy and usually runs on CPUs, with GPU indexes for very high query rates. Embedding a large corpus belongs on GPUs, or TPUs on Google Cloud. A small model serving an internal tool at low volume can run on a CPU. Serving a language model to many users belongs on GPUs, or TPUs on Google Cloud. Real-time voice and agent loops are where a hosted L P U shines, with GPUs and speculative decoding as the alternative. Pre-training and large fine-tuning need a GPU cluster or TPU pods. And a multi-tenant GPU cloud with fast storage needs a D P U on every node.
All five in one RAG platform
Here is a reference architecture that uses all five. Users and applications reach a CPU tier: the A P I gateway with authentication and a model router, the orchestrator and agents, the vector database held in memory, and the ingestion pipeline that parses and chunks documents. The router sends most model calls to a self-hosted GPU pool running the language model, embeddings and reranker, and every GPU server has a D P U for R D M A networking, N V M E over fabrics storage and tenant isolation. A latency-critical path, such as a voice assistant, goes to a hosted L P U, with the GPU endpoint as fallback. And if the organisation trains or serves at large scale on Google Cloud, a TPU pool is a second accelerator pool. Keep every backend behind the one router, so you can move work without rewriting applications.
Common mistakes
Now the mistakes we see most often. Choosing accelerators from peak teraflops, when token generation is limited by bandwidth, not compute. GPUs starved by slow CPU preprocessing, so utilisation sits below forty percent. Running TPUs with dynamic shapes, which causes constant recompilation; pad or bucket your sequence lengths. Letting a fallback send regulated data to a hosted L P U or public A P I outside its approved region; make the router enforce data rules. Deploying D P Us without the network skills to run them. And running training and inference in one pool, so a training job starves production. Keep separate pools and quotas.
How to decide, in five steps
To recap. Write the limiting resource, compute, bandwidth or input and output, next to every workload before you choose hardware. Use CPUs for control and data work, GPUs by default for models, and TPUs if you are on Google Cloud at scale. Use an L P U for latency-critical paths, and D P Us when the cluster's network and storage become the bottleneck. Benchmark on your own prompts: time to first token, tokens per second per user, and cost per million tokens. Keep one gateway in front of every backend, and review the mix twice a year, because chips, prices and hosted models change quickly. The full written guide, with all the commands, is on HubDat AI dot com. Thanks for watching.