cd /news/artificial-intelligence/i-thought-my-on-device-ai-model-was-… · home topics artificial-intelligence article
[ARTICLE · art-84716] src=pub.towardsai.net ↗ pub= topic=artificial-intelligence verified=true sentiment=· neutral

I Thought My On-Device AI Model Was Slow. I Was Profiling the Wrong Thing.

A developer profiling an on-device AI model discovered that raw inference time was not the bottleneck, contrary to common assumptions, and that input processing times remained high on low-end devices. The developer, Asutosh Nayak, shared the findings in a Medium post, noting that optimizing prompts and quantized models did not solve the issue, and that the real performance trap required unconventional workarounds. The post highlights the challenges of running AI models on edge devices like Android, where only certain formats such as .litertlm and .onnx are efficient.

read1 min views1 publishedAug 3, 2026
I Thought My On-Device AI Model Was Slow. I Was Profiling the Wrong Thing.
Image: Pub (auto-discovered)

Member-only story

When optimizing on-device AI, we often obsess over inference time — the raw milliseconds a model spends processing tokens. I spent days tuning prompts and finding fast quantized models, yet my input processing times were still screaming on low-end devices.

What I uncovered during a late-night profiling session completely shattered my assumptions and common knowledge on the internet.

It turns out, raw inference time wasn’t the bottleneck. It wasn’t even close. In this post, I’ll share the unexpected performance trap that derailed my app, the dead ends I hit, and the unconventional workarounds that finally saved it.

If you have been following me or have read my earlier post on this topic, where I discussed many tricks to get the most out of on-device AI SLMs, you know that I believe we can only achieve true democratization of AI only consumers when consumers can run AI models on their personal devices. This also gives us the much needed data privacy. To that end, for everything I build, the first attempt is to squeeze things on edge device. But it’s a path paved with thorns. Every single step is a struggle and heartache.

Limited Choices

If you want to run models on edge device, let’s say on Android, you are cornered with limited choices. Android (or any other edge device OS) can run only certain formats efficiently like .litertlm, .onnx etc. Compound that with the fact that…

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @asutosh nayak 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
Live at https://your-agent.zahid.host
Get free account → Pricing
from €0/mo · no card required
LIVE [news/i-thought-my-on-devi…] indexed:0 read:1min 2026-08-03 ·