Skip to main content
Kerim Akkis Logo

Cutting Latency for On‑Device AI: Simple Settings and Edge Tricks

00:03:24:80

Why does on‑device AI feel sluggish today?

Anyone who has waited a minute for a phone answer has asked: Is the model really that slow, or am I letting it think forever? Modern reasoning models such as Qwen 3.5 write a hidden chain of thought before the final reply. Each token of that internal reasoning costs time on a phone or a modest laptop, so a simple query can sit behind hundreds of unseen tokens.

Editorial illustration for Cutting Latency for On‑Device AI: Simple Settings and Edge Tricks

Who benefits from faster answers?

Fast responses matter to anyone who uses AI as a productivity assistant – writers polishing a sentence, developers looking up a code snippet, or shoppers checking a product detail. At the same time, power users running complex analyses still need the deeper reasoning that larger models provide. The goal is to give each user the right speed‑accuracy balance without a global switch that hurts one use case or the other.

What the latest apps teach us

Off Grid AI Mobile (OGAM) and Off Grid AI Desktop (OGAD) introduced a per‑model "Thinking effort" control. The switch lives in the chat settings sheet and can be set to Off, Light, Standard, Deep or Unlimited, depending on what the model supports. The choice is stored per model, so a quick Qwen 3.5 2B can stay in Off mode while a more careful Qwen 3.5 4B runs in Standard mode. The same principle works on a Mac, Windows or Linux PC with OGAD 0.0.62 or later.

Practical steps developers can take

  • Expose a thinking cap in your UI. Replicate the OGAM/OGAD pattern: a slider or button that limits the number of tokens spent reasoning. For llama.cpp‑based models the budget can be set to 512, 1K, 2K, 4K or 8K tokens; Light, Standard and Deep map to 1K, 4K and 8K respectively.

  • Persist the setting per model. Store the chosen effort in a small JSON file keyed by model name. When the user switches models, read the saved value so the previous preference reappears automatically.

  • Choose the right engine. Models running on llama.cpp respect the token‑based thinking budget, while those on Google’s LiteRT engine do not expose a budget. Selecting llama.cpp when you need fine‑grained control avoids unnecessary latency.

  • Profile on target hardware. Run a quick benchmark on the target phone or laptop to see how many milliseconds each token takes. Use that data to set a default thinking cap that keeps the overall wait reasonable for the user.

Concrete example on a phone

Imagine you keep two models on your iPhone: Qwen 3.5 2B for short rewrites and Qwen 3.5 4B for drafting a business plan. Open Chat settings, set Thinking effort to Off for the 2B model, and to Light for the 4B model. When you ask “What’s 18 % of 2,450?” the 2B model replies instantly because it skips the hidden reasoning chain. When you ask “Create a project roadmap for a new SaaS product,” the 4B model follows the Light cap, stops reasoning after the token limit, and then returns its answer.

Limitations to keep in mind

Not every model can answer without thinking. Some reasoning‑heavy models display a card that says "Model requires thinking for every response" and hide the Off switch. In those cases the best you can do is lower the cap (e.g., Light) to shorten the wait. Also, the Thinking budget cannot exceed the model’s Max output setting, so you must align those two values.

Putting it all together

By exposing a per‑model thinking effort, persisting the choice, and selecting an engine that honors token caps, you give users instant answers for routine tasks while preserving deep reasoning for complex ones. Pair those UI knobs with profiling on the actual device, and you’ll see the waiting time shrink without having to reload models or pay extra.

The latency issue isn’t a hardware limitation alone – it’s a controllable inference strategy. Give developers a few clear settings, and the on‑device experience becomes fast, predictable, and still smart.


If you found this useful, read more in my article archive. I write about full-stack development, AI integration, and the tools I actually use in production.

Share on LinkedIn

Topics

on-device AI · latency · model optimization · edge computing