pip, one .onnx model file you already own, and the vendor accelerator driver installed.
/dev/accel*. Exact kernel version — check the documentation for your distribution.onnxruntime and numpy from PyPI.onnxruntime-directml; for other execution providers use the package name listed there..onnx model you actually care about (chat model, embedding model, ASR encoder). If you have none, stop here: without your own model there is nothing to measure.python -m venv npu-check
source npu-check/bin/scripts/activate 2>/dev/null || source npu-check/bin/activate
pip install --upgrade pip
pip install onnxruntime numpyWhy: isolated install means a broken provider wheel cannot break your working Python setup — you delete the folder and you are clean.
How to check: python -c "import onnxruntime, numpy; print(onnxruntime.__version__)" prints a version string, for example 1.20.0, with no traceback.
What to do: list CPU, GPU and accelerator devices, then ask the runtime which execution providers it can actually use.
Get-CimInstance Win32_Processor | Select-Object Name, NumberOfCores, NumberOfLogicalProcessors
Get-CimInstance Win32_VideoController | Select-Object Name, DriverVersion
Get-PnpDevice -Class ComputeAccelerator -ErrorAction SilentlyContinue |
Select-Object Status, FriendlyNamelspci | grep -i -E "npu|neural|vpu"
ls -l /dev/accel* 2>/dev/nullimport onnxruntime as ort
print(ort.__version__)
print(ort.get_available_providers())Why: ComputeAccelerator is the Windows device class NPUs register under, and /dev/accel* is the Linux equivalent. If nothing shows up there, no benchmark will ever be faster — you would be measuring CPU against CPU.
How to check: three concrete signals.
Get-PnpDevice prints a row like OK <vendor NPU name>. Empty output means no driver or no NPU.['CPUExecutionProvider'] alone means your current stack is CPU-only; a list such as ['DmlExecutionProvider', 'CPUExecutionProvider'] or one containing QNNExecutionProvider, OpenVINOExecutionProvider or VitisAIExecutionProvider means an accelerator path exists.Example: on a machine with a working NPU driver you see OK plus the vendor name; the provider list contains a non-CPU entry. On a machine with the chip but no driver, the device class returns nothing and the provider list still shows only CPUExecutionProvider — that is the exact situation where people conclude "the NPU does nothing" when the real problem is the driver.

What to do: run one script, change only the providers list, record median latency. Save it as bench.py.
import time, statistics
import numpy as np
import onnxruntime as ort
MODEL = "<model.onnx>" # path to your own model file
PROVIDERS = ["CPUExecutionProvider"] # swap for the provider found in Step 1
so = ort.SessionOptions()
so.intra_op_num_threads = 4 # keep identical across runs
sess = ort.InferenceSession(MODEL, sess_options=so, providers=PROVIDERS)
print("active:", sess.get_providers())
inp = sess.get_inputs()[0]
shape = [d if isinstance(d, int) else 1 for d in inp.shape]
feed = {inp.name: np.random.rand(*shape).astype(np.float32)}
for _ in range(3): # warm-up, not measured
sess.run(None, feed)
times = []
for _ in range(20):
t0 = time.perf_counter()
sess.run(None, feed)
times.append((time.perf_counter() - t0) * 1000)
print(f"median {statistics.median(times):.1f} ms | min {min(times):.1f} ms")Why: vendor slides quote peak TOPS (trillions of operations per second) for a single operator shape. Your model is a graph with memory traffic between operators, so the number that matters is end-to-end latency on *your* file. Changing only PROVIDERS keeps everything else constant — that is the only honest A/B.
How to check: active: must echo the provider you asked for. If you request an accelerator and it silently falls back, the line still prints CPUExecutionProvider — a fallback that looks like a success until you read that line.
Run the matrix and fill the table with your own numbers:
| Run | Provider requested | `active:` printed | Median ms | Battery % before/after 15 min | Fan audible |
|---|---|---|---|---|---|
| 1 | `CPUExecutionProvider` | CPU | (yours) | (yours) | no |
| 2 | accelerator (on charger) | ? | (yours) | n/a | ? |
| 3 | accelerator (on battery) | ? | (yours) | (yours) | ? |
Measure both plugged-in and on-battery states, because many laptops cap accelerator clocks when unplugged:
Get-CimInstance Win32_Battery | Select-Object EstimatedChargeRemainingExample: a 15-minute loop of run 2 with the charger out, then re-run the battery query — if the percentage drops faster than during the CPU run *and* latency did not improve, the NPU is burning power without paying you back on that model.
What to do: apply the checklist to the table from Step 2. Answer each item with the measured evidence, not with the marketing page.
active: showed a non-CPU provider in at least one run.Why: the checklist converts a hardware argument into an application argument. Two of six boxes failing means the cheaper machine with more RAM is the better buy for your workload.
How to check: count the ticked boxes. Six out of six — buy the AI PC. Three or fewer — the NPU is not part of your workflow; spend the difference on RAM or a bigger SSD. Four or five — revisit after your main app ships accelerator support; note the date in the checklist.
If you work on macOS, the criteria differ: read MacBook Air M5 for AI: should you buy it in 2026 before comparing any TOPS figures across platforms.
| Workload | What actually limits speed | Does the NPU help? |
|---|---|---|
| Cloud chat (ChatGPT, Claude, Gemini in a browser) | Network and the provider's GPUs | No — the request never touches your silicon |
| Local LLM chat with a large model | Memory capacity and memory bandwidth | Rarely — the model is bandwidth-bound, not math-bound |
| Always-on audio (meeting transcription, live captions) | Sustained low power draw | Yes — this is the design case for an NPU |
| Photo/video effects in an editor | The editor's own acceleration path | Only if the editor lists NPU support |
| Batch image generation | Raw matrix throughput | Usually the GPU wins |
| Code completion in the IDE | Whether the plugin runs locally at all | Only with a local model and a documented backend |
Example: live captions running for a two-hour meeting is a workload where a small always-on block wins on battery; a one-off 40-minute transcription is a workload where a GPU or even a well-threaded CPU finishes sooner. Same chip, two different verdicts — which is why the Step 2 table is per-model, not per-laptop.
Problem. Requesting an accelerator crashes on session creation.
ValueError: This ORT build has ['CPUExecutionProvider'] enabled. Since ORT 1.9, you are required to explicitly set the providers parameter when instantiating InferenceSession.onnxruntime package is CPU-only.pip install onnxruntime-directml), re-run print(ort.get_available_providers()), then set PROVIDERS to the exact string from that list.Problem. Import fails after installing the vendor wheel.
ModuleNotFoundError: No module named 'onnxruntime'python -c "import sys; print(sys.executable)" and compare with the pip -V path; reinstall from inside the venv with python -m pip install <wheel-name>.Problem. Task Manager has no NPU tile and Step 1 prints nothing.
Get-PnpDevice -Class ComputeAccelerator returns no rows and the provider list is ['CPUExecutionProvider'].dxdiag confirms CPU/GPU identity if you still doubt the model number.Run Step 1 to see whether an accelerator is exposed at all, then Step 2 to get one median latency number for CPU versus accelerator on your own model. Take the six-box checklist from Step 3 to the store — that sheet, not the TOPS figure, is what tells you whether the extra money buys anything for your work.
Does an NPU make ChatGPT or Claude answer faster?
No. Those requests run on remote servers; your laptop only sends text and renders the reply. An NPU matters only for models that run locally.
Can I add an NPU to a laptop I already own?
No. NPUs are soldered into the SoC. The upgrade path for local inference on an existing machine is the GPU, more RAM, or a smaller/quantized model — verify what your runtime supports in its docs.
Is a higher TOPS number always better?
No. TOPS describes peak math throughput on ideal shapes. Local inference is usually limited by memory capacity and bandwidth, so a model that does not fit in RAM loses to a slower chip that does. The Step 2 median is the number to trust.
Do I need an AI PC to run code assistants locally?
Only if your assistant runs a local model. Many assistants are cloud-backed and gain nothing from the NPU; for editor-level choices, compare GitHub Copilot vs Cursor before assuming hardware is the bottleneck.
Status: practical guide. Some statements come from vendors; verify in your environment.
Time to complete: 45–60 minutes (one benchmark run plus a battery run). Difficulty: Intermediate.
Machine data: Citation Map JSON · JSON-LD · Semantic Embeddings — separate stage.
| Entity | Type | Role |
|---|---|---|
| AI PC или обычный ноутбук | тема/инструмент | упоминается в заголовке, TL;DR или разделах гайда |
| нужен ли AI PC | тема/инструмент | упоминается в заголовке, TL;DR или разделах гайда |
| AI PC что это и зачем | тема/инструмент | упоминается в заголовке, TL;DR или разделах гайда |
| Windows | платформа/технология | упоминается в заголовке, TL;DR или разделах гайда |
| Linux | платформа/технология | упоминается в заголовке, TL;DR или разделах гайда |
| Python | платформа/технология | упоминается в заголовке, TL;DR или разделах гайда |
No independent confirmation is provided; source claims and editorial conclusions are separated below.
| Source | Type | Role |
|---|---|---|
| No external links | — | — |
Cite as: AI Release. AI PC или обычный ноутбук: что выбрать в 2026 году и когда NPU бесполезен. ai-release.org.