Contents
The Decision Framework
Five factors decide the answer, and they trade against each other:
- Cost. Purchase price plus power plus the operational cost of running one more kind of hardware.
- Latency. The p99 per-inference time the application can tolerate — the figure 99 out of every 100 inferences come in under. It is the number that matters, because an average hides the slow tail, and the slow tail is what users and timeouts actually hit. A real-time path (video, chat) has a hard ceiling; a batch path does not.
- Throughput. Total inferences per second you need to sustain at that latency.
- Power. Watts per inference. Matters for the datacenter budget and, acutely, at the edge.
- Model size and flexibility. Does the model fit and run on the device, and can you swap models without swapping hardware?
The trap is optimizing one factor in isolation — usually "fastest" or "cheapest per unit" — and discovering the real constraint was the one you did not measure.
The Three Options, Recapped
From the companion NPU article, in one line each: a CPU runs anything but is slow at matrix math; a GPU is fast and flexible but power-hungry; an NPU is extremely efficient but narrow — inference-only, small-to-medium models, with a toolchain still maturing.
A Worked Comparison
Representative numbers, stated as order-of-magnitude and at INT8 where relevant — 8-bit integer precision, the compact number format a quantized model runs in and the one accelerator throughput is normally rated at. That throughput is quoted in TOPS: trillions of operations per second. Treat these as a starting shape, not a spec sheet — benchmark your own model against the current SKUs before deciding.
| Option (illustrative) | ~INT8 throughput | ~Power | Character |
|---|---|---|---|
| 2× Xeon (AMX/AVX-512)[3] | Low-to-mid tens of TOPS sustained | Hundreds of watts | Already paid for; runs anything; poor efficiency |
| NVIDIA L4-class GPU[1] | ~100+ TOPS | ~72 W | Flexible, strong headroom, per-card cost |
| Hailo-8-class NPU[2] | ~26 TOPS | ~2.5 W | Best efficiency; fixed to supported, quantized models |
The GPU and the NPU both clear a modest inference target easily; the difference is power and flexibility. The GPU can run a model the NPU cannot, but for a model the NPU can run, it does so at roughly a thirtieth of the power of the GPU.
When Each Option Wins
| Option | Wins when |
|---|---|
| CPU | Inference is occasional or tiny, and buying dedicated hardware is not justified — run it on the servers you already have |
| GPU | The model is large or changes often, or you need one flexible device for training and inference |
| NPU | The model is small and fixed, inference is frequent, and power/latency/heat is the binding constraint — especially at the edge |
Budgeting 1,000 Inferences a Second
Work the example concretely. You need to sustain 1,000 inferences/second of a small, quantized vision or language model — a few giga-operations per inference. The arithmetic is deliberately simple:
- Compute the required throughput. A few GOps/inference × 1,000 infer/s is a handful of TOPS. Any of the three options clears the throughput bar.
- Check latency, not just throughput. At 1,000/s with a small model, the binding constraint is usually p99 latency under load — a real-time requirement changes the answer, because batching for throughput raises latency.
- Then look at power. If this is one rack in a datacenter, the GPU's ~72 W is fine and its flexibility is worth it. If this is twenty edge sites, ~2.5 W per NPU versus ~72 W per GPU is the difference between a heat problem and none.
- Then look at the engineers. An NPU means a fixed, quantized model and a vendor toolchain; a GPU means a familiar CUDA/ONNX stack.[4] The toolchain cost is real and often decides it before any hardware number does.
Rule of Thumb: For a fixed, small model at real volume, choose the device with the best watts per inference that the toolchain can actually serve — that is usually an NPU at the edge and a GPU in the datacenter, with the CPU as the "we already own it" fallback. Run the three-way comparison on sustained power and p99 latency against a real benchmark of your model[5]; TOPS alone will pick the wrong hardware.
A Benchmark That Supports a Purchase
Vendor throughput numbers are useful for narrowing a shortlist. The purchase decision needs a test that holds the model, input, precision, batch size, and service-level target constant across candidates.
- Export one production-shaped model and verify that every candidate runs the same operators without silently falling back to the CPU.
- Warm each runtime, then record p50 and p95 latency, sustained throughput, host CPU use, memory use, and wall power for the same request mix.
- Repeat at the concurrency you expect in production. A device that wins at batch 32 can lose an interactive workload that arrives one request at a time.
- Price the full node: accelerator, required host, memory, support, runtime licensing, and engineering time to compile and operate the model.
Decision rule: choose the least expensive supported platform that meets the tail-latency and throughput target with headroom. Peak TOPS is not an acceptance criterion.
Caveats
Three ways this decision goes wrong, in descending order of frequency:
- Benchmarking the wrong model. TOPS is a peak figure, not a sustained one, and a model that does not fit the NPU — too large for its memory, or using a mathematical operation the chip does not implement in hardware (its operator set) — runs on the host CPU instead. Nothing fails and nothing warns you; the work simply moves back onto the hardware you bought the NPU to relieve, and the efficiency goes with it. Benchmark your actual model, quantized the way you will actually run it.
- Ignoring power until the bill arrives. The per-unit price of a GPU is only part of the cost; at fleet or edge scale the electricity, and the cooling needed to remove that heat, run every hour for the life of the device — so watts, not purchase price, decide the total cost of ownership.
- Forgetting the toolchain. The hardware that is fastest on paper is not fastest if your team spends weeks fighting its SDK. Factor in who has to run it.
Inference hardware is not a one-time pick — it is a portfolio decision. The estate that runs occasional inference on CPU, heavy or flexible inference on GPU, and always-on edge inference on NPU is the one that matches its hardware to its actual workload, rather than buying one answer for every question.
References
- NVIDIA — "NVIDIA L4" datasheet and inference benchmarks. NVIDIA Technical Documentation, current.
- Hailo — "Hailo-8" datasheet and TOPS/watt specifications. Hailo Technical Documentation, current.
- Intel — "Intel Xeon AMX/AVX-512" inference capabilities documentation. Intel Technical Documentation, current.
- Microsoft — "ONNX Runtime" hardware acceleration documentation (CPU/GPU/NPU execution providers). Microsoft Learn, current.
- MLCommons — "MLPerf Inference" benchmark results: the standard for comparing inference hardware. MLCommons, current.