TechPulse
Artificial Intelligence · Demonstration article

When it makes sense to run AI on the device

A local model can remove a network round trip. The next questions concern memory, battery use and the task itself.

Close-up of a computer processor chip on circuit board
Illustrative photograph by He Junhui · Unsplash

Start with the task

A feature with a clear boundary

Consider a photo organizer that labels pictures already stored on a handset. Local processing can keep that particular inference step on the device and avoid waiting for a server response. Android’s LiteRT documentation describes a runtime for such models. The rest of the application still determines what data gets stored or transmitted.

Test the device people own

A useful comparison

Measure startup time, memory use and the time needed to finish a representative batch. Repeat the test on the range of hardware the application supports. The result can be more useful than a single best-case timing because the decision to ship a local model affects installation size and the experience on everyday phones.

Sources and references

About Jordan Ellis

A fictional TechPulse contributor for this demonstration edition.

Related stories