On-device and hybrid inference 00:00:01 The note that must stay on the train A passenger dictates a private note just as the train enters a tunnel. Vale's app promised to summarize that note on the device. When the phone runs short of memory, a very fast cloud service is reachable again. Does the original promise travel with the request? Device inference brings weights and computation close to personal data, but memory, battery, thermals and model availability vary by device. Hybrid applications choose among local inference, permitted cloud execution and a reduced-function offline path. Define which fields may leave the device before routing. a user’s private input cannot become cloud-eligible simply because a local attempt was slow. Walk through the decision before loading the model. A local-only label follows the note across retries. Battery, temperature and free memory determine feasibility. They do not silently edit that label. 00:01:01 Follow a local request The user has chosen offline processing and the note cannot be routed to an external endpoint. The runtime loads supported weights and checks the requested context against the available budget. Offer deferred local processing or a shorter user-selected input. Only eligible requests can take a cloud route. 00:01:21 Profile the second minute Check model availability, supported features, context limit and available resources before execution. Choose a bounded task shape and retain a deterministic fallback for basic product functions. A tablet can tag a short note locally but cannot process the full meeting transcript within its context window. Separate technical feasibility from data policy. A cloud model may be faster or more capable while remaining ineligible for one document. Decide whether a redacted fragment can leave the device under the product’s explicit contract. A private journal entry is local-only. If the engine is unavailable, preserve editing and defer summarization. Cold start reflects model loading, while repeated generation can reveal thermal or memory pressure. Compare equivalent inputs and report quality as well as latency, energy and failure behavior. A phone completes its first summary quickly but slows after the fifth minute of continuous generation. Use sustained measurements for an always-on application. Measure cold start, sustained latency after the device warms, peak memory and accuracy for the required languages. Quantization can reduce weights, but context memory and temporary buffers still matter. In a hybrid system the boundary also governs telemetry, retries and cached responses. Provide an intelligible outcome when an eligible model is unavailable. 00:02:54 What happens under memory pressure? Memory pressure prevents local generation for a local-only note. Which fallback respects the contract? Failure changes feasibility. It does not change the user’s permission for data movement. Keep the note intact and offer a shorter local run or a later attempt. A good hybrid design makes the boundary visible exactly when the convenient route becomes unavailable.