Skip to main content

2 posts tagged with "edge-inference"

View all tags

When the Round Trip Is the Bug: The Case for On-Device Inference You Keep Dismissing

· 9 min read
Tian Pan
Software Engineer

Here is a number that should bother you more than it does: the median network round trip to a cloud LLM endpoint costs you somewhere between 48 and 800 milliseconds before the model emits a single token. That is not inference time. That is not queue time. That is the price of leaving the building — DNS, TLS, the haul to the nearest region, the haul back. For a single chat completion, you never notice it. For an agent that makes nine sequential tool calls to answer one question, you just shipped five seconds of pure transit latency, and your users feel every bit of it.

Most teams treat the round trip as a fixed cost of doing business, something you optimize around with streaming and spinners. But for a growing class of workloads, the round trip is the bug. The model you need is small enough to run where the data already lives, the task is repetitive enough that the marginal cloud cost compounds into real money, and the data is sensitive enough that shipping it to a third party is a liability you keep quietly accepting. On-device and edge inference is the option most engineering teams dismiss reflexively — "the local models aren't good enough" — and the dismissal is increasingly wrong.

The Edge Inference Decision Framework: When to Run AI Models Locally Instead of in the Cloud

· 12 min read
Tian Pan
Software Engineer

Most teams make the cloud-vs-edge decision by gut instinct: cloud is easier, so they default to cloud. Then a HIPAA audit hits, or the latency SLO slips by 400ms, or the monthly invoice arrives. Only then do they ask whether some of that inference should have been local all along.

The answer is almost never "all cloud" or "all edge." The teams running production AI at scale have settled on a tiered architecture: an on-device or on-premise model handles the majority of requests, and a cloud frontier model catches what the smaller model can't. Getting that routing right is an engineering decision, not an intuition.

This is the decision framework for making it rigorously.