Contents
The cook is still at the board, chopping. A row of identical burners waits, cold. On a live run that is the same stall: the GPU does almost no math, because the CPU is still reading the batch off disk and decoding images. The card is waiting for numbers that have not arrived. Counter space is memory. Until the batch is on the counter, the burners stay where they are.
A network is a sea of similar matrix operations, and those operations want the whole row at once. Ordinary code more often walks step by step, each call waiting on the last. Hardware for neural networks is built for that mass of identical work, for memory laid out as tensors, and for moving bytes quickly between disk, RAM, and the accelerator.
The rest of this piece stays in that kitchen: who prepares the batch, who multiplies the matrices, what you actually buy with a card, why counter space beats a peak-speed slide, where to go when one row of burners is not enough, how to read a bottleneck from symptoms, and how a chat budget differs from training from scratch. OCR, YOLO, and LLMs sit on the same map. The software that calls this hardware: PyTorch vs TensorFlow and ML frameworks overview.
Key takeaways
Until the batch is on the counter, thousands of simple cores have nothing to do. Matrices and convolutions are that kind of work: the same operation over a huge array, so a network gains more from massive parallelism than from a handful of powerful CPU cores.
The card still cannot run the step alone. The CPU reads data, drives the loop, and handles post-processing; the GPU runs the tensor math. During training the accelerator’s counter has to hold weights, activations, gradients, and optimizer state, so VRAM usually decides the job before peak teraflops do.
Training and inference are different budgets for that counter. Training is memory-hungry and often needs several GPUs. Inference can be shrunk with quantization and moved to an NPU, a CPU, or WebGPU in the browser. The chip is half the purchase. The CUDA stack around NVIDIA is a practical advantage because frameworks actually call it. ROCm, Metal, and TPU are real options when your framework’s runtime includes them.
The network repeats the same motion
Every burner does the same motion. A single layer almost always collapses to one line: multiply the input by a weight matrix and add a bias. A training step is that line, repeated a very large number of times.
Inside the line are matrix multiplies, adds, activations, convolutions, attention, and normalization. The numbers live in multidimensional arrays — tensors — rather than in separate variables. Before the formula, a layer is easy to mistake for a list of names. The line below leaves one motion the whole row can repeat together:
Y = XW + b
After it, everything lower in the stack exists so this line can run again, not so the names can multiply. X is the input, W the weights, b the bias, Y the layer output.
What matters next is how much of that motion fits on the counter, not the names of the ops. A tensor produces operations, the operations produce a huge stream of numbers, and the stream lands on the hardware. The sketch shifts the question from the name of the step to the size of the stream:
Tensor → operations → huge stream of numbers → compute hardware
A normal program does a few complex steps here, and each one waits on the previous. A network does billions of similar operations and can hand them to thousands of execution units at once: the whole row of burners, not one cook. Hardware for that job is judged by how many of those operations it finishes and whether the stream fits in memory.
The processor prepares the batch while the card waits
Go back to the stove from the opening. The images are still on disk. The CPU is opening files, decoding them, and stacking a batch. That is the cook at the board. The GPU is not multiplying matrices yet, because there is nothing to multiply. The narrow point is data preparation.
The chips are built differently. A CPU has a few powerful cores and complex control logic, which is what you want for branches, loading, and any step that depends on the one before it. A GPU is a grid of simpler blocks: the same work on many numbers at once, which is matrices and tensors. The sketch changes the scale: four large cores against a field of small burners.
CPU: [Core] [Core] [Core] [Core]
GPU: [ ][ ][ ][ ][ ][ ][ ][ ]
[ ][ ][ ][ ][ ][ ][ ][ ]
[ ][ ][ ][ ][ ][ ][ ][ ]
The field of small blocks wins when the operation is the same one, repeated. It loses when the next step cannot start until the previous step finishes. Building a batch is that second kind of work. You do not hand it to the row of burners.
The claim “neural networks need only a GPU” breaks on the arrow between the cook and the stove. On top, the processor loads data, prepares it, runs the loop, and keeps control. Under that, the card does tensor operations, matrix multiplies, layers, training, and heavy inference. The sketch shows that the bottom line does not start without the top line:
CPU → data loading, preprocessing, orchestration, control
↓
GPU → tensor ops, matmul, layers, training / heavy inference
Until the top line hands over a batch, the bottom line waits. A strong accelerator still sits idle while the CPU is decoding images.
What you actually buy with the card
The card that sat idle at the start is a compute node: a row of burners and their own counter. Inside it: execution units, separate blocks for matrices, video memory (VRAM), a memory controller, cache, and a link between chips (interconnect). The string of lights on the hood is not part of the cooking. On the shroud that is the RGB.
A framework does not light the flame itself. The usual path on NVIDIA is: the step is written in PyTorch or TensorFlow, CUDA picks it up, and only then does the command reach the GPU. The sketch puts the kitchen between the order slip and the burner:
PyTorch / TensorFlow → CUDA → NVIDIA GPU
If that path is missing a driver or a library the framework knows how to call, a fast chip stays dark. That is why CUDA kernels, cuDNN, TensorRT, and NCCL grew up around NVIDIA. The practical edge is a mature software stack, not silicon alone.
Large matrices on that chip go through separate mixed-precision blocks. On NVIDIA those blocks are Tensor Cores; other vendors ship similar units. The formats are FP32, FP16, BF16, TF32, INT8, and others. A large network produces large matrices. The special blocks get through them faster when you pick the numeric format carefully and the quality still holds. It is the same row of burners, built for one large motion.
Memory first, then how fast data moves
A model answers comfortably on 8 GB and dies when you turn training on for the same card. At inference the counter mostly holds weights: the plate goes out as it is. Training also keeps activations, gradients, optimizer state, and buffers beside them. Adam inflates that list.
Look at what fills VRAM, not at a single line that says “model weights.” The sketch opens the counter up. It holds the whole working set, not one plate.
VRAM → weights · activations · gradients · optimizer states · buffers
Left to right: weights, activations, gradients, optimizer state, and buffers. While gradients and the optimizer are in that line, the training budget and the inference budget are different jobs. The rough sum is the same check, written as one “does it fit?”:
Memory ≈ weights + gradients + activations + optimizer + overhead
Same terms, plus overhead. Numeric format (FP32, FP16, BF16, INT8) and tricks such as LoRA and QLoRA move the total a lot. Fewer bits per number, and the same card suddenly has room for a step. The counter did not grow. Each number takes less space on it.
VRAM capacity is not enough to pick a card. The same model can be limited by how fast the chip computes or by how fast tensors move through memory. Reviews line these three up, and they are easy to mix together. The sketch splits three different limits: how many motions the burners finish, how fast the prep moves across the counter, and how much room the counter has.
FLOPS vs Memory Bandwidth vs VRAM Capacity
On the left, how many operations the chip finishes: compute-bound. On the right, how much memory you have. In the middle, memory bandwidth: memory-bound. The card is strong, and the tensors still do not arrive in time. Peak FLOPS does not separate these three cases.
The numbers still have to reach the card. On a workstation the path is one chain: pantry, the shared table, the cook, the pass, the counter beside the burners. The sketch shows where the ingredients stall before they ever reach the flame:
Storage (SSD) → RAM → CPU → PCIe → GPU VRAM
Disk, system memory, processor, the PCIe bus, video memory. A slow disk, a narrow PCIe link, or a loader that cannot prepare batches in time (DataLoader) leaves the GPU in the same stall as the opening. With several cards, add the link between the rows: a fast interconnect (NVLink and peers), NCCL, and collective operations. Otherwise distributed training waits on communication, not on teraflops. The second row of burners waits when the pass between the rows is narrow.
When one card is not enough
One row of burners runs out in two different places. Either the step does not fit on the counter, or it fits and still takes too long. A second card does not double the speed by itself. You decide what to cut first.
If you cut the data, each stove holds a full copy of the model and the batches differ: one recipe, different ingredients. If you cut the model, the cards hold different pieces: by layer, by tensor, or as a pipeline where the next slice of the network waits on the previous one. Those are the two names you will see. The list is the cut, not two synonyms:
- data parallelism — different batches on copies of the model;
- model / tensor / pipeline parallelism — pieces of the model on different GPUs.
More cards make synchronization more expensive. Speedup is not linear. Part of the time goes into making the copies agree, not into multiplying matrices. While the rows compare notes, the burners wait.
Further along the spectrum this is not another GPU. A TPU is Google’s specialized tensor hardware, often paired with TensorFlow or JAX. The CPU stays general-purpose, the GPU supplies massive parallelism, and the TPU does narrowly focused tensor math. It is a different point on the spectrum: a burner for one motion, not a replacement for the whole stove.
An NPU sits in laptops and phones and is almost always busy with inference, not training: speech, camera, background blur, local embeddings, small LLMs. Energy per answer matters more than peak FLOPS. A small burner sends one plate out and does not keep a training draft on the counter.
Apple Silicon puts the CPU, the GPU, and the Neural Engine in one memory pool — unified memory. There is no separate VRAM island that a tensor has to cross PCIe to reach. The cook and the burners share one counter. That is convenient for local experiments. Software goes through Metal and MPS, MLX, and related tools.
Nearby are AMD (compute plus ROCm), Intel (CPU, GPU, and NPU), and Google (TPU). The market is wider than NVIDIA. The practical choice is usually whether the framework can see that runtime: CUDA, ROCm, Metal, or TPU.
Where the machine actually stalls
A full training loop is longer than “hit step on the GPU.” The dataset sits in the pantry, on an SSD, lands on the shared table in RAM, the cook on the CPU prepares a batch, and the numbers cross the PCIe pass onto the counter beside the burners, into VRAM. Then a forward pass, the loss, backpropagation, an optimizer step, new weights, and the loop starts again. The diagram closes that loop and separates the feed from the step itself:
Dataset → SSD → RAM → CPU preprocess → PCIe → GPU VRAM
→ forward → loss → backprop → optimizer → new weights → repeat
The left half is feeding data. The right half is the step itself. If the GPU sits idle inside this loop, a faster card is early. Fix the disk, the memory, and the CPU’s batch preparation first. A stronger row of burners will not start while the pantry is still holding the ingredients.
Where you look first depends on the symptom. A large model under training means VRAM and the GPU. An idle card means the data pipeline, the CPU, the SSD, and RAM. A small local model often lives on a CPU, an NPU, or in unified memory. A huge dataset runs into the SSD, RAM, and prefetch of the next batch. The four lines below change the question from “which chip is faster” to “where to look first”:
Large model / training? → VRAM / GPU
GPU idle? → data pipeline / CPU / SSD / RAM
Small local model? → CPU / NPU / unified memory
Huge dataset? → SSD + RAM + prefetch
The arrow is the first place to look, not a ranking of which chip is “faster in general.” By task, the landmarks are these. The table does not add machines. It lays the same choice out across familiar jobs.
| Task | What to watch |
|---|---|
| Simple classifier | CPU or modest GPU |
| OCR / CRNN | GPU speeds training; inference often on CPU (CRNN) |
| YOLO / detection | GPU, VRAM, throughput (YOLO) |
| LLM inference | memory + bandwidth; quantization |
| LLM training | lots of VRAM, multi-GPU, fast interconnect |
| Smartphone | NPU, power, latency |
| Browser | WebGPU + compact weights (WebGPU) |
The machine classes below are not a shopping list of product codes. Prices move; the fork stays the same. Learning and a first setup: a CPU, 16–32 GB of RAM, a modest GPU, and an SSD. Computer vision: a stronger GPU and more VRAM, a fast SSD, and an adequate CPU. A local LLM: available memory first, VRAM or unified memory, plus quantization. Serious training: multi-GPU, a fast interconnect, a lot of RAM, power, and cooling.
- Learning / start: CPU, 16–32 GB RAM, modest GPU, SSD.
- Computer vision: stronger GPU and VRAM, fast SSD, adequate CPU.
- Local LLM: available memory first (VRAM / unified); quantization.
- Serious training: multi-GPU, fast interconnect, large RAM, power and cooling.
The symptom is in the utilization, not in the card’s name. Four questions turn the gauge into the first place that is broken:
GPU ~100%? → compute-bound
GPU ~20%? → data pipeline / CPU / I/O
VRAM 100%? → batch / model / precision
Disk busy? → storage
Near 100% on the GPU means the math is the limit: the burners are busy. Near 20% means the feed is idle: CPU, disk, input and output. Memory full means the counter is used up. Shrink the batch, the model, or the numeric precision. A busy disk means the pantry. Alongside that, watch GPU and CPU utilization, VRAM and RAM use, disk and PCIe throughput, and how many samples per second get through.
A common buying mistake is to look only at FLOPS. Next to that, people skip VRAM and bandwidth, pair a weak CPU with a strong GPU, undersize the power supply and the cooling, expect linear speedup from N cards, mix up training hardware and inference hardware, and treat an NPU as a stand-in for a datacenter GPU.
The order of the choice is short. Model first, then training or inference, memory, throughput, numeric precision, the framework and the backends it supports, and only then budget, power, and cooling.
Ownership tiers grow in the same direction. There is no price list. Prices move. The ladder below changes the scale of the kitchen, not the speed of one chip: from one stove to a hall where power and cooling are already part of the work.
Laptop → workstation → one strong GPU → multi-GPU → AI server → cluster
Tasks, memory, power draw, and cost of ownership grow with the tier. A GPU has to be powered and cooled: TDP, the power supply, airflow, noise. A data center at the end of that scale is racks, network, power, and cooling — not an RGB gaming PC.
Running a chat and training from scratch are different budgets
The chat answers on this machine, and training the same model never starts. Inference keeps no gradients and no optimizer state on the counter: the plate goes out, and the recipe draft stays off the counter. Training requires both, and they take memory. Training can tolerate a long step. Inference often cares whether the service answers immediately. Power matters in both, and especially at inference, which is where an NPU is interesting. Training uses an NPU less often. In memory these two budgets differ by orders of magnitude.
The table puts those two budgets side by side. The columns split where training still carries gradients and an optimizer, while inference cares more about latency and power.
| Training | Inference | |
|---|---|---|
| GPU | Often critical | Depends on model |
| VRAM | High | Lower |
| Gradients / optimizer | Required | No |
| Latency | Less critical | Often critical |
| Power | Important | Often very important |
| NPU | Less common | Especially interesting |
A “powerful PC” that still struggles usually means one item from a familiar list: too little VRAM or RAM, a model or context that is too large, heavy activations, a large batch, memory fragmentation. The fixes are from the same list: quantization, a smaller model, LoRA, splitting the model across cards (sharding), moving part of the weights off the card (offloading), a smaller batch, and a separate pass of inference tuning (ONNX). The split sends a piece of the model to the next row of burners. Offloading takes part of the weights off the card’s counter.
Quantization compresses the same row of formats that showed up on the matrix blocks. The arrow below changes how densely the same counter is packed: fewer bits per number, a smaller footprint on that counter.
FP32 → FP16/BF16 → INT8 → INT4
Fewer bits means a smaller size and a smaller memory footprint, sometimes more speed, and a remaining risk to quality. For local LLMs it is often the only way to fit the model at all.
The framework reaches the chip through a chain
You call a framework. The framework calls libraries. The libraries call a runtime — CUDA, ROCm, Metal, or TPU. The runtime talks to a GPU, a TPU, an NPU, or a CPU. The chip still waits on memory, the bus, the disk, and the network. YOLO, CRNN, and Transformers load this chain differently, and the principle is the same: tensors go to an accelerator. The order slip does not jump straight to the flame.
The same chain, top to bottom, in one column. The column turns a list of names into a handoff order. Each floor only passes the order down, and the last floor is already the counter, the pass, the pantry, and the network.
Application
↓
PyTorch / TensorFlow / JAX
↓
ML libraries
↓
CUDA / ROCm / Metal / TPU runtime
↓
GPU / TPU / NPU / CPU
↓
Memory · PCIe / fabric · Storage / Network
The bottom line is memory, the bus, the link between machines, storage, and the network. A framework’s reach ends where this hardware stack ends. Software is chosen together with the hardware, and export to ONNX or to the browser separates the training machine from the device that later answers. The kitchen where the recipe was revised and the pass where the plate goes out can be different rooms.
FAQ
What should I build for OCR and YOLO?
An SSD, enough RAM, and an NVIDIA GPU with VRAM headroom for training. Inference for compact OCR models often stays on the CPU.
Is a Mac with unified memory enough?
For local inference and experiments, often yes. For heavy training in the CUDA ecosystem, NVIDIA plus drivers is still the usual reference.
Why is GPU utilization stuck at 30%?
The card is usually waiting on data: disk, DataLoader, preprocessing on the CPU, a narrow PCIe link. The burners are waiting because the cook is still chopping. Look at the batch path, not only at the model.
Do I need a TPU?
If you are already on Google Cloud, on a JAX or TensorFlow stack, and the job maps onto a TPU, yes. Otherwise it is not a required step up from a CUDA workstation.
Further reading
Conclusion
The next idle GPU starts with the chain, not with a faster card. While the cook is still chopping, a stronger row of burners stays cold.
On the next task the order is:
- Check whether the CPU is still decoding the batch.
- Check whether the step fits in memory.
- Then the network’s math, the framework, the runtime, the accelerator, memory, and input/output.
The CPU prepares data and drives the loop. A GPU, TPU, or NPU runs the tensors. Memory and bandwidth decide whether the step fits. The disk feeds the pipeline. Power and cooling let the machine run for hours. Training and inference need different budgets. Quantization and export lift some of the limits.
The diagram repeats that order and places the accelerator after the framework that will call it:
Network math → Framework → Runtime (CUDA/…) → Accelerator → Memory/IO
An accelerator makes sense once you know which framework will call it and whether the step fits in memory. Until the batch has reached the counter and fits on it, a stronger row of burners stays cold.



Comments