At 7:02 a.m. you say to your phone, "move my nine o'clock to the afternoon and tell Dana I'm running late." In the next second, several different jobs happen. A tiny always-on model listens for the wake phrase. A speech model turns audio into text. Something decides this is a calendar change and a message, not a question about the weather. Something reads your calendar to find an afternoon gap. Something drafts a short, polite note. Each of these jobs could run on the device in your pocket or on a large model in a data center, and the right answer is different for each.
The lazy design sends everything to the biggest cloud model: simple to build, strong on hard problems, and paying for a network round trip, a per-token bill and a copy of your calendar on someone else's server to decide that "nine o'clock" means nine o'clock. The other lazy design runs everything locally: private and instant, until you ask for something that needs real reasoning and the small model confidently produces nonsense. A personal assistant worth using is a hybrid, and the interesting engineering is in deciding, request by request, where work runs and what data is allowed to leave.
1. Four forces that decide where a request runs
Every placement decision trades off the same four forces. Naming them keeps the discussion honest, because teams usually argue about one and ignore the others.
Latency
Response time has two parts: the network round trip (including connection setup and any queueing at the provider) and the model's own time to first token plus generation time. For a voice interface, small delays are noticeable: a pause after you finish speaking feels like the assistant did not hear you. A local model removes the network hop entirely and can start immediately, but a small model on a laptop or phone typically generates tokens more slowly than a large model on server hardware, so local wins on short outputs and loses on long ones.
Privacy and data exposure
Anything sent to a cloud model leaves your control, subject to the provider's terms, retention and security. For many tasks that is fine. For health notes, financial details, private messages and credentials it may not be, and some data should not leave the device whatever the provider promises. The useful question is not "is the cloud safe" but "what is the minimum this request needs to include".
Capability
Large models are still better at long, multi-step reasoning, difficult code, subtle writing, handling long documents and recovering from ambiguous instructions. Small local models have improved a lot and are good at bounded tasks, but the gap shows up precisely on the requests where being wrong is expensive.
Cost and availability
Cloud models bill per token and can be rate-limited or unreachable. A local model costs electricity, memory and battery, and keeps working on an airplane. Neither is free; the cost just lands in different places.
2. What local models do well, and what they do not
Model quality changes quickly, so this section describes categories of work rather than specific model names. A reasonable current picture, hedged because it may already be out of date when you read it:
- Strong fits for local: wake-word detection, speech-to-text, text-to-speech, intent classification, entity extraction, short summaries, simple rewriting, embeddings for search over your own notes, and structured outputs for constrained tasks such as filling a calendar event.
- Mixed: question answering over a small set of personal documents (good if retrieval does the heavy lifting, shaky if the model must reason across them), drafting routine messages, light code edits.
- Weak fits for local: long-horizon planning, complex debugging, tasks that need broad world knowledge, long-context analysis, and anything where a confident wrong answer is costly and hard to detect.
The memory arithmetic that limits what runs on a device
Two quantities dominate. The first is weight storage: roughly, bytes needed is parameter count times bits per weight divided by eight. A model with around eight billion parameters at 16 bits per weight needs on the order of 16 GB, while quantised to roughly 4 bits per weight it needs on the order of 4 to 5 GB, plus overhead. That difference decides whether it fits next to your other applications. The second is the KV cache, the stored attention state for the conversation so far. It grows with context length and number of layers, so a long conversation can consume more memory than you expected after the weights are loaded. On top of that, token generation speed on consumer hardware is usually limited by memory bandwidth rather than raw compute, because each generated token needs the weights streamed through the processor. Quantisation therefore helps speed as well as size, at some cost in output quality that you should measure on your own tasks.
3. What frontier models still earn their cost for
A frontier model is worth its latency and its bill when the task has some mix of these properties: the answer needs several dependent reasoning steps; the input is long or messy; the task is open-ended, so no template fits; the cost of an error is high enough that you want the strongest available judgement; or the model must use tools over many turns and recover when a step fails.
The honest framing is that a frontier model is an expensive specialist. You call it for the part of the job where specialist ability changes the outcome, and you keep it away from the 80 percent of requests (a loose figure, not a measurement) that are routine. Sending "what time is it in Singapore" to a frontier model is not wrong, but it is waste in latency, money and exposure.
4. The router: deciding per request
The component that makes a hybrid assistant work is the router. It receives a request and chooses an execution path before any heavy model runs. There are two broad designs, and good systems combine them.
Rules first: sensitivity, capability needs, connectivity
Start with cheap deterministic checks. Does the request touch data tagged as private? Is the device offline? Does the intent belong to a short list of known simple actions? These rules are inspectable, testable and fast. A hard rule such as "contact lists and health data never go to the cloud model in raw form" is easier to defend than a learned policy.
Cascade with verification: try cheap, escalate on doubt
For requests that the rules cannot place, try the local model first and escalate to the cloud model when there is a signal of trouble. Useful signals include: the local model's output fails schema validation; the local model returns an explicit "I am not sure" in a structured field; two local samples disagree; the request exceeds a length or complexity threshold. Raw token probabilities can be a weak confidence measure, so do not treat them as calibrated without testing. Cascades save money when most requests succeed locally, and add latency to those that fall through, so track the fall-through rate.
from dataclasses import dataclass
@dataclass
class Request:
text: str
contains_private: bool # set by an upstream tagger or by the data source
online: bool
needs_tools: bool
SIMPLE_INTENTS = {"set_timer", "move_event", "read_event", "toggle_setting"}
def route(req: Request, classify_local, run_local, run_cloud, redact):
# 1. Hard rules: connectivity and data sensitivity.
if not req.online:
return run_local(req.text)
intent, conf = classify_local(req.text) # small model, structured output
if intent in SIMPLE_INTENTS and conf >= 0.8:
result = run_local(req.text)
if result.get("valid"): # schema check on the output
return result # cheap path succeeded
# fall through to escalation on invalid output
# 2. Escalate: strip or pseudonymise private spans before leaving the device.
payload = redact(req.text) if req.contains_private else req.text
return run_cloud(payload, tools_allowed=req.needs_tools)
The 0.8 threshold in this sketch is a placeholder. Choose it from labelled examples of your own traffic, and re-check it when you change the local model.
5. Keeping personal data local
A router decides where a request goes. A data policy decides what goes with it. Four techniques cover most of the ground.
- Retrieve locally, send excerpts. Keep notes, mail and documents in a local index. When the cloud model needs context, send the few passages that answer the question, not the whole archive.
- Redact and restore. Replace names, account numbers and addresses with placeholders before the request leaves, and map them back in the response. This works when the task does not need the real values, and fails when it does ("what is Dana's phone number").
- Tag at the source. Mark data as private when it is ingested (the health app, the banking notification), so the router does not have to guess later from the text.
- Keep memory on the device. Long-term facts about you (preferences, relationships, routines) can live in a local store the assistant queries. Decide explicitly which of them may ever be summarised into a cloud prompt.
6. A worked example: rescheduling and messaging
Take the opening request and follow it through a hybrid assistant.
- Wake word runs on a tiny always-on local model. Nothing leaves the device.
- Speech-to-text runs locally. Audio stays on the device, and only the transcript moves on.
- Intent classification locally yields two actions:
move_eventandsend_message. Both are in the simple list. - Calendar search is plain code over the local calendar. It finds the nine o'clock event and three afternoon gaps. No model needed.
- Parameter extraction by the local model produces
{"event": "09:00 standup", "new_start": "14:00"}, validated against the calendar. The user hears the proposed change and confirms by voice. - Message drafting is a routine, short note, so the local model writes it: "Hi Dana, I'm running about an hour late. Sorry about that." The user approves it before sending.
No cloud call was needed. Now change the request: "Dana and I disagreed about the vendor contract timeline in last week's emails. Draft a reply that proposes a compromise." This requires reading several messages, weighing a conflict and writing carefully, so the router escalates. The local retrieval step pulls the relevant email excerpts, a redaction step replaces the vendor and amounts if the user's policy says so, the cloud model drafts, and the draft returns to the device for the user to review. Same assistant, same user, different path, because the work is different.
7. Failure modes
The router is wrong
If it sends a hard request to the small model, the user gets a plausible but poor answer, and the failure is silent. If it sends easy requests to the cloud, costs and latency climb. Log routing decisions with outcomes (did the user correct or retry?) and review the mismatches regularly.
Confident local wrongness
Small models fail fluently. Put validation on structured outputs, ground answers in retrieved text and show sources, and prefer "I can't do that locally, want me to ask the larger model?" over a fabricated answer. In a personal assistant, a refusal to guess is a feature.
Model drift on both sides
Cloud models are updated by their providers and behaviour can shift between versions. Local models change when you update them. Keep a small regression set of real requests with expected behaviour and run it on every model change, local or remote.
Resource contention on the device
Loading several models (speech, language, embeddings) plus the user's own applications can exhaust memory, make the system swap and drain the battery. Budget memory explicitly, load models on demand with a sensible eviction policy and avoid running heavy inference during low battery.
Context leaks in the escalation path
The cascade quietly resends whatever context the local step had. If the local step saw private data, the escalation prompt can carry it out. Treat the escalation payload as a separate, constructed object, never as a copy of the local prompt.
Offline behaviour that was never designed
Decide what the assistant does when the cloud is unreachable: queue the request, answer with the local model and label it as lower confidence, or decline. Any of those is acceptable. Hanging for thirty seconds is not.
8. Comparing the three architectures
The table compares qualitative properties, not measured numbers. Actual speed, cost and accuracy depend on your hardware, models and tasks, so measure them on your own workload.
| Property | All local | All cloud | Hybrid with a router |
|---|---|---|---|
| Latency on short tasks | Low, no network hop | Higher, includes round trip | Low for local-routed, higher for escalated |
| Capability ceiling | Limited by device memory and compute | Highest available | Highest when escalation works |
| Data exposure | Minimal | All requests leave the device | Only escalated, ideally redacted |
| Works offline | Yes | No | Partially, degrades to local |
| Ongoing cost | Hardware, power, battery | Per-token billing and rate limits | Both, but the cloud share is smaller |
| Engineering complexity | Moderate: model management | Low | Highest: router, redaction, two stacks to test |
| Main risk | Confident wrong answers on hard tasks | Privacy, cost, dependency on availability | Misrouting and leaks in the escalation path |
When not to go hybrid: if your tasks are uniformly hard and you can accept the exposure, a single cloud model is simpler and may well be the better product. If your tasks are uniformly simple and the data is sensitive, all-local is cleaner. A router earns its complexity only when the request mix is genuinely varied.
9. Decision checklist, common mistakes and what to do Monday
Checklist
- Have you listed your actual request types and labelled each by latency need, sensitivity and difficulty?
- Is there a short list of actions that must never reach a cloud model in raw form?
- Does every local structured output have validation, with escalation or refusal on failure?
- Is the escalation payload built explicitly, with redaction where required?
- Do you log routing decisions and outcomes so errors can be found?
- Is there a regression set that runs on every model change?
- Is offline behaviour defined?
Common mistakes
- Choosing the architecture by benchmark headlines rather than by your own request mix.
- Treating the local model's confidence score as calibrated without testing it.
- Redacting text but leaving identifying details in metadata, filenames or tool arguments.
- Letting the cascade resend the full local context on escalation.
- Forgetting that quantisation changes quality, and shipping without re-evaluating.
- Building one big router prompt instead of rules plus a small classifier.
FAQ
Will local models eventually replace cloud models for assistants? For more of the routine work, probably yes, and the line moves every year. Whether the hard tail moves with it is uncertain, so design the router so that moving the line is a configuration change.
Is local always more private? It reduces exposure to the provider, but a compromised device or a careless app still leaks. Local is a good default for data you would not email to a stranger, not a security guarantee.
Should the user see which model answered? For high-stakes answers, yes. A small indicator that a request was escalated helps users calibrate trust and notice unexpected cloud use.
What to do Monday
Export a week of real requests from whatever assistant you use or build. Sort them into three buckets: clearly simple, clearly hard, and sensitive. Run the simple bucket through a small local model and record where it fails the validation you would require. Write the hard rules for the sensitive bucket before you write any routing code. Then build the thinnest possible router (rules plus a validity check with escalation), and compare it against a single-model baseline on your own examples. If it does not beat the baseline on at least one of cost, latency or privacy without losing quality, keep the baseline and revisit when your request mix or the models change.