A CPU is a general-purpose chip that does many different jobs one after another, a GPU does thousands of small calculations at the same time, a TPU is a Google-designed chip built for the matrix math inside machine learning, and an NPU is a small, power-efficient AI engine inside a laptop or phone processor. For learning AI you usually need only a CPU or a borrowed GPU. For running or training bigger models you want a GPU, and an NPU matters mainly if you are buying a Copilot+ PC.
Who this is for and what you will have at the end
This guide is for students starting out in machine learning, working professionals who keep hearing these acronyms in AI news, and anyone choosing a laptop or a cloud service. By the end you will be able to explain each chip in a sentence, know what each one is bad at, and use a short decision guide to pick one for your situation.
The classroom analogy
Imagine a math exam with ten thousand small addition problems.
- CPU: a brilliant professor. The professor can solve any kind of problem, including strange ones with many steps and decisions, but works through them mostly one at a time (a modern CPU has several cores, so it is a small team of professors).
- GPU: a hall of thousands of students. Each student is less capable than the professor, but they all do a small sum at once. If the exam is ten thousand identical additions, the hall finishes far sooner.
- TPU: a factory machine built for one job. It does one kind of work, the big multiply-and-add grids used in neural networks, extremely well, and is awkward for anything else.
- NPU: a tiny efficient assistant in your pocket. It is built into the same chip as the CPU, handles AI tasks like background blur or live captions, and sips power instead of draining the battery.
The analogy is a simplification. The sections below tie each one to what the vendors document.
CPU: the general-purpose chip
The CPU runs your operating system, browser and most programs. It is designed for flexibility: it handles branching logic, many different kinds of instructions and low-latency responses. That is why every computer has one and why small AI models, classic machine learning (such as scikit-learn) and light inference can run on it with no extra hardware. Its limit is raw parallel throughput: training a large neural network on a CPU alone is slow.
GPU: thousands of small workers
A graphics processing unit was built to compute many pixels at once, and that parallelism turned out to suit neural networks. NVIDIA describes CUDA as "NVIDIA's platform for accelerated computing" that provides "the software layer that enables applications to harness the power of GPUs", and says developers can write code in languages including C++, Python and Fortran or use GPU-accelerated frameworks.
Modern NVIDIA GPUs also include Tensor Cores, which NVIDIA's page describes as "Specialized GPU cores that speed up AI and HPC math workloads" and which "enable mixed-precision computing". In plain words, they are small units inside the GPU that are tuned for the multiply-and-add grids used in AI.
Practical consequences:
- A lot of open-source AI software is written for CUDA first, so an NVIDIA GPU has the widest support.
- GPUs have their own memory (VRAM), and the size of that memory often limits which models you can run.
- GPUs use much more power than NPUs, which is why they sit in desktops, servers and gaming laptops.
TPU: Google's matrix machine
Google's documentation describes Tensor Processing Units as "Google's custom-developed, application-specific integrated circuits" that accelerate machine learning. Each TPU core has matrix multiply units (MXUs); Google's page describes the MXU as a 128x128 systolic array and says the XLA compiler turns the graph from your machine learning framework into TPU machine code. The same page mentions on-chip high-bandwidth memory.
Google's own guidance on fit is useful because it is honest about limits. Well suited:
- Models dominated by matrix computations.
- Long training runs (weeks or months).
- Large models with large effective batch sizes.
- Models with very large embeddings, common in ranking and recommendation.
Not well suited, in Google's words:
- "Linear algebra programs that require frequent branching or contain many element-wise algebra operations."
- "Workloads that require high-precision arithmetic."
- "Neural network workloads that contain custom operations in the main training loop."
- Models with tensors of dynamic shapes.
For a learner this means a TPU is rarely a first choice unless you use a framework and code path Google supports well. If a tutorial says "install CUDA", it was written for an NVIDIA GPU, not a TPU.
NPU: efficient AI inside your laptop or phone
A neural processing unit is built into the main processor of many new laptops and phones. Microsoft's support page says an NPU "uses less power and is far more efficient at AI tasks than a CPU or GPU" and "excels at AI tasks and frees up the CPU and GPU for other tasks."
On Windows, Microsoft's developer guide defines Copilot+ PCs as Windows 11 hardware with an NPU that can perform "more than 40 trillion operations per second (TOPS)". It adds that NPUs are designed to execute the deep learning math operations that make up AI models, and that software must be written specifically to use them. Many NPUs support only lower-bit integer math such as INT8, so models often have to be converted ("quantized") before they run on one. Microsoft recommends Windows ML for running AI tasks on the NPU, which uses ONNX Runtime and falls back to the GPU or CPU if the preferred option is unavailable. On devices with an NPU, Task Manager shows NPU usage next to CPU and GPU.
The honest limit: an NPU helps with the features that are built for it, such as Windows Copilot+ features. It is not a replacement for a GPU when you want to train a model or run a large local language model with a tool that expects CUDA.
Side-by-side comparison
| CPU | GPU | TPU | NPU | |
|---|---|---|---|---|
| Analogy | Professor | Hall of students | Factory machine | Pocket assistant |
| Strength | Flexible, any program | Massive parallel math | Large matrix-heavy ML | Low-power on-device AI |
| Weak spot | Slow at big parallel jobs | Higher power use | Poor with custom ops, dynamic shapes | Limited to supported, often quantized models |
| Where you find it | Every computer | Desktops, gaming laptops, cloud | Google Cloud | Copilot+ PCs, recent phones |
| Software | Everything | CUDA and other GPU frameworks | XLA, with supported ML frameworks | ONNX Runtime, Windows ML |
Which one do you need? A decision guide
You are a student learning machine learning
Start on your CPU with small datasets and classic models. When you want to train a small neural network, use a free hosted notebook service with a GPU before spending money. Free allowances change often and are not guaranteed, so read the service's own current limits page.
You want to run Whisper or Stable Diffusion locally
These tools generally want a GPU, and most community guides assume NVIDIA and CUDA. Check the tool's own installation page for supported hardware. See also our guide to meeting transcription with Whisper for the transcription side.
You want to train a model
Use a GPU, rented from a cloud provider if you do not own one. Consider a TPU only if your framework and model fit Google's documented strengths, such as matrix-heavy training with no custom operations in the loop.
You are buying a laptop
For office work, an NPU is optional. Our business laptop checklist covers RAM, storage and warranty first. Choose a Copilot+ PC only if you specifically want the features reserved for it, which require an NPU of 40+ TOPS.
Common mistakes
- Buying a GPU before you need one. Beginners spend on hardware that a free notebook or a CPU would have covered.
- Assuming any AI tool uses the NPU. Software must be written for it.
- Ignoring GPU memory. A fast GPU with too little VRAM cannot load a large model.
- Picking a TPU for code with custom operations. Google lists this as a poor fit.
- Confusing TOPS with real speed. TOPS is a rating of operations per second, not a measure of how fast your particular tool runs.
What we checked
- Opened Google Cloud's "Introduction to Cloud TPU" page on 2026-11-23 and copied the ASIC definition, the 128x128 systolic array description and the well-suited and not-well-suited lists quoted above.
- Opened NVIDIA's CUDA zone page on 2026-11-23 and confirmed the quoted CUDA description and supported languages (C++, Python, Fortran).
- Opened NVIDIA's Tensor Cores page on 2026-11-23 and confirmed the "Specialized GPU cores that speed up AI and HPC math workloads" wording.
- Opened Microsoft's Copilot+ PCs developer guide on Microsoft Learn on 2026-11-23 and confirmed the "more than 40 trillion operations per second (TOPS)" requirement, the INT8 quantization note and the Windows ML recommendation.
- Cross-checked the NPU efficiency claim against Microsoft's NPU support page on 2026-11-23.
- Deliberately did not state Kaggle or Google Colab quotas or GPU models: the Kaggle page we opened did not show them, and those limits change, so check the official pages.
- Not tested on hardware; this is a conceptual guide built from the vendors' documentation as of 2026-11-23, and the analogy is ours.
Last tested: 2026-11-23
References
- Google Cloud, Introduction to Cloud TPU: https://docs.cloud.google.com/tpu/docs/intro-to-tpu
- NVIDIA, CUDA Zone: https://developer.nvidia.com/cuda-zone
- NVIDIA, Tensor Cores: https://www.nvidia.com/en-us/data-center/tensor-cores/
- Microsoft Learn, Copilot+ PCs developer guide: https://learn.microsoft.com/en-us/windows/ai/npu-devices/
- Microsoft Support, All about neural processing units (NPUs): https://support.microsoft.com/windows/all-about-neural-processing-units-npus-e77a5637-7705-4915-96c8-0c6a975f9db4
This guide was researched and drafted with AI assistance and checked against the vendor documentation listed in its References. Read the maintained version and related guides on EpiFive.