
AI PCs Are Everywhere, but What Can the Hardware Actually Do?
Nearly every laptop sold today carries an “AI PC” badge, courtesy of a built-in Neural Processing Unit. Yet beyond running small local language models in a chat window, most owners never discover what that silicon is genuinely good at. A nagging, decidedly unglamorous IT problem makes the case: roughly a hundred gigabytes of scanned family photographs that needed to be organized, deduplicated and prepared for enhancement. Uploading that much media to a cloud AI API for something as basic as duplicate detection is unreasonable — both in bandwidth cost and in time. The compute had to move to the data, which meant putting an idle NPU to work.
Why Heavy Media Work Belongs on Local Silicon
Archiving thousands of pre-digital photographs and sprawling video files is a household problem now. Those collections routinely span terabytes, and pushing them to a centralized service turns into a bandwidth nightmare. Data privacy is the usual argument for keeping workloads local, but the harder constraint is data gravity: moving bytes costs more than computing on them where they already sit.
This is not an individual inconvenience; it is an industry-wide collision. The default architecture of the AI boom, which routes every inference request to a centralized cloud API, is running into physical limits. Electrical grids simply cannot keep pace with hyperscale build-outs. Recent industry projections suggest US utility capacity will fall short of data center power demand by more than 100 gigawatts by 2030. Regulators are already acting. In September 2026, Virginia — the densest data center market on earth — signed Executive Order 22, sharply restricting state assistance for new hyperscale deployments above 25 megawatts because of acute grid and water constraints. Cloud capacity has a physical ceiling, and that ceiling is precisely why compute must migrate toward the data.
Consumer hardware has been quietly evolving to meet that need. Most modern machines now ship with an NPU purpose-built for tensor operations, and the question is no longer whether edge silicon can replace cloud APIs for heavy media work, but how much of the workload it can absorb.
Understanding the Edge Hardware Trade-Offs
To see why local AI architecture is shifting, it helps to look at how modern silicon splits the workload across different classes of hardware.
- CPU (Central Processing Unit): Handles system logic and file I/O effortlessly, but running continuous neural network math requires brute force — pegging cores at 100 percent utilization, drawing 35W or more and draining a laptop battery quickly.
- GPU (Graphics Processing Unit): Built for massive graphics rendering and high-throughput compute, but power-hungry and usually reserved for heavy graphics work or dedicated model training and inference.
- NPU (Neural Processing Unit): Purpose-built for low-power matrix operations on consumer devices, handling smaller AI workloads at single-digit wattage, roughly 6W.
Apple platforms are a special case. Experimental projects such as qwen-ane have demonstrated that Apple’s 32-core NPU can run massive 27B-parameter models while sipping roughly 8W of power. That efficiency is exactly what the industry needs, though the work remains strictly experimental — inference speeds are not yet viable for production workloads. High-end AI desktops tell the opposite story: systems like the NVIDIA GB10 have no NPU at all, relying instead on enormous GPUs packed with thousands of Tensor Cores and unified memory, with combined consumption sometimes exceeding 160W.
The CLIP Lineage and Why a Mid-Size Vision Encoder Fits
Semantic deduplication works by comparing the distance between image embeddings — high-dimensional digital representations of pictures. Generating those embeddings is the heavy lifting performed by the AI model. Before any image reaches the model, it passes through a pinned preprocessing step: resize the short side to 256 pixels, center-crop to 224, then normalize using published constants. Applying an identical crop and transform to every image on every run is what keeps comparisons mathematically stable.
The foundation for this approach was laid in March 2021, when OpenAI introduced Contrastive Language-Image Pre-training, or CLIP. Before CLIP, computer vision models were largely rigid classifiers trained on fixed datasets, capable of recognizing only a predefined set of categories. CLIP changed that by training a dual-encoder architecture on 400 million image-text pairs scraped from the web. By training an image encoder and a text encoder simultaneously to pull matching pairs together in a shared vector space while pushing mismatched pairs apart, CLIP learned generalized visual concepts rather than narrow labels.
OpenAI published pre-trained weights for several architectures, including ResNet variants and a then-novel Vision Transformer. Over the following years, the open-source community and other AI labs scaled the architecture dramatically, releasing much heavier variants such as ViT-L, ViT-H and ViT-g.
For this pipeline, the OpenCLIP implementation of OpenAI’s original ViT-B-32-quickgelu model sits at the sweet spot for edge hardware: small enough to compile directly into NPU memory without thrashing the host system, yet sophisticated enough to recognize that two photographs taken from slightly different angles share the same subject.
Assembling the Local Stack
The toolchain relies on Python 3.14, PyTorch, OpenCLIP ViT-B/32 and ImageMagick for parallel preprocessing. Model compilers differ by vendor, and that is where the architecture gets interesting. On an Intel platform, OpenVINO — Intel’s model compiler — converts the PyTorch encoder into an optimized Intermediate Representation capable of running on any of the machine’s accelerators: CPU, GPU or NPU.
python3.14 -m venv .venv
source .venv/bin/activate
pip install --upgrade pip
PyTorch — CPU wheels are all the pipeline needs on the host side
pip install torch torchvision --index-url https://download.pytorch.org/whl/cpu
The model: OpenCLIP ships OpenAI's pre-trained ViT-B-32 weights
pip install open_clip_torch
Intel's model compiler + runtime
pip install openvino
The ONNX toolchain
pip install onnx onnxscript
Host-side image handling
pip install numpy pillowBenchmarking the NPU Against the CPU
Running the initial PyTorch script on the CPU was highly taxing. Baseline throughput hovered around 35 milliseconds per photo with power consumption near 47W. That sounds fast for a single image, but processing a large archive kept the processor pegged at nearly 100 percent utilization. Fans spun up immediately, and monitoring tools showed a draw exceeding 46 watts just to crunch matrix math — a brute-force approach that monopolized the machine and drained the battery.
$ sudo ./.venv/bin/python embed.py ./scan --backend cpu
preprocessing: /usr/sbin/magick (parallel, 4 workers)
prepared 373 crop(s) in 0.0s
[1/373] photo0000.png 35.3 ms -> photo0000.vitb32.npy
embedded 373 in 13.3s (28.0 img/s) [backend=cpu, batch=1], avg power 46.9 WExporting the model to OpenVINO’s Intermediate Representation and routing the workload through Intel’s Level-Zero driver directly into the NPU changed the picture. One gotcha is worth knowing: the ONNX exporter bakes batch size into the graph’s internal reshape constants, so the script exports one IR per batch size and the runtime loads whichever matches the requested batch.
A first pass using a naive, synchronous loop — one image down to the silicon at a time — yielded a modest 1.5x speedup and an impressive 2x reduction in power. The bottleneck was not the NPU itself but host-device dispatch overhead. The NPU finished the tensor math in milliseconds, then idled while Python handed it the next image. The Level-Zero driver compiles a hardware blob on first execution, causing a brief delay, but subsequent runs initialize instantly. Once compiled, the encoder runs in fp16, halving memory traffic on the silicon.
$ sudo ./.venv/bin/python embed.py ./scan --backend npu
backend: NPU (compiled clip-vitb32-b1.xml, hint=LATENCY, batch=1)
embedded 373 in 5.7s (65.3 img/s) [backend=npu, batch=1], avg power 27.3 WTo unlock the silicon’s real potential, the script was restructured to use batched inference with OpenVINO’s THROUGHPUT performance hint. Feeding the NPU batches of 16 images simultaneously saturated its execution units and eliminated the dispatch bottleneck. Per-photo inference time dropped to roughly 10.8 milliseconds and end-to-end throughput climbed past 92 images per second — a threefold gain over the serial single-image pass. Raw speed was not the real victory; efficiency was. The NPU chewed through thousands of images in the background at a mere 22.7W, making it possible to process a massive media archive on battery power without triggering the fans.
Filtering the Noise With Cosine Similarity
The final stage is the actual goal: detecting duplicate photographs. The script reads the 512-dimensional embeddings generated by OpenCLIP and normalizes each to unit length, which turns cosine similarity into a plain dot product — a single matrix multiply across the entire archive. By measuring how aligned two points are in mathematical space, the script produces a numerical score of visual similarity.
Photos that clear the similarity threshold — 0.92 in this configuration — are grouped into a duplicate cluster. Because similarity is chained transitively through a union-find structure, a burst of five shots where each neighbor just barely matches still lands in a single cluster. Each cluster’s photos and their embedding sidecars move together into a numbered folder, while unique photos stay put. The scan is non-recursive into subfolders, so re-running the tool on an already-sorted archive is a safe no-op, and a dry-run flag identifies clusters before anything moves.
$ python cluster.py ~/scan
2 cluster(s), 9 photo(s), threshold 0.92:
dup_0001/ (5)
IMG_0412.jpg ... IMG_0416.jpg
dup_0002/ (2)
IMG_0788.jpg, IMG_0789.jpg
moved 9 photo(s) into 2 cluster folder(s)What Local NPUs Mean for the Future of Edge Compute
The demonstration is straightforward: a lightweight model can tap the NPU inside a standard modern laptop and solve a genuine practical problem in the most energy-efficient way available. Batching embeddings for semantic deduplication suits local silicon well, but it only scratches the surface. The same pattern — pinned preprocessing, a compiled encoder, batched dispatch, a vector-space post-processing step — generalizes to transcription, object tagging, quality scoring and dozens of other archive-scale tasks that currently default to the cloud out of habit rather than necessity.
Heavier models, larger context windows and more aggressive quantization are the obvious next frontier. As NPU vendors converge on shared compiler formats and memory bandwidth on consumer chips continues to climb, the dividing line between what belongs in a data center and what belongs on a lap will keep moving toward the edge.
Source:InfoWorld News
