Hybrid Edge-Cloud Inference

Michael BrenndoerferDecember 1, 20262 min read
Language AI HandbookAll chapters
Part 43 of 67Small and On-Device Language Models
Chapter 330Hybrid Edge-Cloud Inference
Reading section 1 of 13 · Hybrid Edge-Cloud Inference · 2 minSection 1 of 13 · 2 min

Section 1 of 13 · 2 min read

Reading settings

Definitions

Choose how many terms have tooltips.

Article links

Make inline references clickable

Notes & comments

A mobile writing assistant can suggest the next word on a phone and use a cloud model for an occasional rewrite. In hybrid edge-cloud inference, the application decides which side handles the work. The models can share a family or use different architectures. Making some requests local can reduce data transfer and keep those features usable during an outage, provided the model fits the device. Test handling of difficult requests, transfer policy, latency, and serving cost separately.

The gap between these two worlds is not primarily about model architecture. It is about orchestration: the control logic that sits above the models, observes what it can observe cheaply, and commits to a division of labor for each request. That control logic is the subject of this chapter. It is where the engineering difficulty lives, because the models themselves are fairly well understood, whereas the rules that decide who should run them are tied to product constraints, user expectations, network physics, and regulatory policy.

We cover three separable ideas that are easy to conflate and must be kept apart:

  • Routing: pick one side (edge or cloud) to serve the whole request.
  • Partitioning: split one inference pass across edge and cloud, e.g. run early layers on device and the rest remotely, or let the edge draft and the cloud verify.
  • Fallback: what happens when the network, the cloud, or the device misbehaves.

We will account for transfer, offline behavior, latency and serving cost. KV Cache and Speculative Decoding explain how memory traffic and sequential decoding affect performance. On a mobile device, the route also depends on what data may be sent and how often the two sides need to communicate.

Comments

Add to the conversation

A question, a correction, or an example from your own work.

No comments yet. Be the first to share your thoughts!

Newsletter

Stay up to date

Get new articles, book updates, and notes on AI and technology.

Unsubscribe at any time. Privacy policy