The notebook number is not a budget
A model that meets an accuracy target on a workstation can still fail on a device. The gap is not mysterious. It is memory, latency, power and contention with everything else the product is doing.
Write the budget before selecting the model. Otherwise every later measurement becomes a debate about whether the target was realistic.
A model is not an edge model until it has run on the target board with the rest of the pipeline active.
Write four numbers first
- p95 latency: from input arriving to the result being available. Use p95, not the mean.
- Peak memory: RAM and flash, including runtime buffers and model storage.
- Average and peak power: measured during sustained inference, not a single inference.
- Accuracy floor: the lowest quality the product can tolerate, measured on your data.
These four numbers define the trade space. If accuracy cannot be met inside the other three budgets, the answer is a different model, a different sensor path or a hybrid architecture. It is not wishful thinking.
Profile with the whole pipeline running
Benchmarking inference alone produces flattering numbers. On a real device, feature extraction, audio capture, connectivity and the UI are all competing for the same CPU, memory bandwidth and power budget.
Run the full product loop on the target board. Log per-stage timing and peak memory. Look for the stage that dominates, not the stage you expected to dominate.
Where the budget usually goes
- Feature extraction: often costs more than inference and runs on the wrong core.
- Memory copies: moving buffers between runtimes and processors without owning the cost.
- Runtime initialisation: paid on every wake if the process is not kept warm.
- Contention: the audio or radio pipeline needs the same DSP at the same moment.
Fixing these is usually cheaper than retraining. It is also less visible, which is why it gets skipped.
Local, hybrid or cloud
Decide with evidence. If local inference fits the four numbers, keep it local. If it misses on latency but the network is reliable, a hybrid path can use local wake and cloud understanding. If connectivity is the constraint, spend effort on a smaller local model rather than a clever fallback.
Whatever you choose, write the reason down. Six months later someone will ask why the architecture looks the way it does.
Make the budget a test
Put the measurement script in the repository and run it on every release that touches the model or the runtime. If the numbers regress, the build fails. That is the difference between a budget and a slide.
This note describes a method, not a product recommendation. If you want help applying it to your hardware, send us the target and the constraint.