The idea, explained

Start with the task rather than the fashionable model. A narrow task such as wake-word detection, short transcription or image classification may fit a small local model. A long document, current-information request or multi-step reasoning task may need a larger cloud model. Model size alone does not prove quality or suitability; test the model on representative inputs and errors that matter to the user.

Next, check the device budget. The model and its working data must fit available storage and memory. The processor—CPU, GPU or neural processing unit—must finish within the latency target without unacceptable heat or battery drain. Latency is the elapsed time from request to usable output. Local execution avoids a network round trip, but slow hardware can still make it slower than a cloud service. Cloud execution offers scalable hardware, yet its response time and availability depend on connectivity.

Then map data movement. Local inference can keep raw audio, images or text on the device, which may reduce exposure. It does not eliminate privacy or security duties: local files, logs and model outputs can still leak, and software updates must be maintained. Cloud inference can centralize monitoring and updates, but sending data off-device requires clear consent, transmission security, retention rules and compliance review.

Finally, design failure behaviour. A hybrid system first checks whether the local model is installed, supported and appropriate. It may use local inference for simple or privacy-sensitive requests and route harder requests to the cloud. The product must tell users when data will leave the device, obtain consent when required, and define what happens offline. Measure local and cloud paths separately for quality, latency, energy, cost and failure rate; otherwise the fallback can hide poor performance.

Follow a worked example.

Suppose a note-taking app must summarize 800-word meeting transcripts. The product target is a response within two seconds. Testing shows a local model takes 1.2 seconds, uses 600 MB of memory and produces an acceptable summary on 88 of 100 representative transcripts. A cloud model takes 0.7 seconds of compute plus a typical 0.6-second network round trip, for 1.3 seconds total, and succeeds on 95 of 100 transcripts. The cloud call costs $0.004.

For ordinary short meetings on supported devices, the local path meets the two-second target, avoids a per-call charge and keeps the transcript on the device. For complex transcripts that exceed the local model’s input limit, the app can offer a cloud option after explaining that the text will be uploaded. If 10,000 daily summaries use the cloud, the stated inference charge is 10,000 × $0.004 = $40 per day, before other infrastructure costs. If half can run locally, the direct cloud charge falls to about $20 per day. The team should still compare quality by transcript type rather than assume the smaller local model is always good enough.

Where people get stuck

A common misconception is that local AI is automatically private, fast and free. It can still store sensitive data insecurely, perform poorly on weak hardware, consume battery, require a large download and create update work. The opposite misconception is that cloud AI is always stronger. A small task-specific local model may be faster and sufficiently accurate. Choose with tested requirements, not with the labels local, cloud, small or large.

Now try it yourself.

Pause before opening each answer. Explain your reasoning in your own words.

1. Check the core idea

A translation feature has a 1.5-second latency target. Its local model takes 1.1 seconds and meets the quality threshold on 92% of tested phrases. Its cloud model takes 0.5 seconds of compute plus 0.8 seconds of network time and meets the threshold on 97%. Which path meets the latency target, and what additional fact is needed before choosing one as the default?

Reveal the answer & reasoning

Both meet the target: local latency is 1.1 seconds, while cloud latency is 0.5 + 0.8 = 1.3 seconds. The cloud path has higher measured quality, but that alone does not decide the default. The team must also know requirements such as whether phrases may leave the device, expected connectivity, device support, cost, battery use and the consequences of the remaining errors. A sensible design could default to local for private or offline use and offer cloud processing for harder phrases with informed consent.

Why this was added

The library explains inference, quantization and deployment performance, but it does not teach the distinct product decision between local, cloud and hybrid inference paths.