Deployment goals and information boundaries
On-device means execution on the user's endpoint. Here, local also includes a stated nearby computing environment. A nearby server remains another machine, with its own administrator and communication boundary; geographical proximity does not establish ownership.
Inference applies an already trained model without updating its learned parameters. The request-serving path explains that operation. Application location and inference location can differ: a function called from a laptop may execute on a remote GPU, as demonstrated by Runpod's decorated-function workflow.
Execution and disclosure follow separate paths
ExampleLocal inference can coexist with outbound records.
Read the diagram as text
- Endpoint application.
- On-device model. Same endpoint.
- Nearby model server. Separate machine; identify its administrator.
- Cloud model. Remote service.
- Local records.
- External recipient.
- Endpoint application → On-device model: Local route: prompt.
- Endpoint application → Nearby model server: Nearby route: network prompt.
- Endpoint application → Cloud model: Cloud route: network prompt.
- On-device model → Local records: Saved output.
- Local records → External recipient: Optional synchronization.
- Endpoint application → External recipient: Optional diagnostics.
| Goal | Placement consequence | Remaining obligation |
|---|---|---|
| No external processing | Keep every protected processing stage within the permitted environment. | Include transcription, tools, and application data paths—not only generation. |
| Disconnected completion | Remove network dependencies from the promised task. | Provision required assets before disconnection. |
| Responsive interaction | Compare complete application latency across feasible placements. | Removing network delay does not establish faster model execution. |
| Personalization | Local context can support personalized features without a model-server transfer. | Specify which personal records the application retains or synchronizes. |
| Lower operating cost | Compare cost per completed useful task at equivalent quality and service requirements. | Include unsuccessful attempts and retained operational work. |
Local cost includes allocated hardware depreciation, energy, maintenance, software, and staff time. Count depreciation or the full purchase in a period model, not both. Low utilization spreads fixed costs over fewer completed tasks. Remote comparison must include service charges and retained integration costs; electricity alone does not represent full local ownership cost.
A trust boundary separates assumptions about control or authority. Local processing changes one boundary; privacy also depends on collection, access, disclosure, and retention. An information inventory should trace prompts, outputs, local records, backups, synchronization, and diagnostic traffic. A model service's isolation or non-retention behavior does not describe everything its calling application does.
Derived information can remain sensitive. An embedding is a numerical representation of input; researchers have reconstructed text from embeddings under specified model-access conditions. Local conversion into vectors therefore does not establish safe disclosure. Minimization limits what is collected and transferred rather than assuming transformation removes identification risk.
The host must also be trusted: operating-system policy can permit inspection of another process's memory. Process separation alone does not protect prompts from a compromised host. Downloaded model files create a separate artifact-exposure surface. Finally, an air gap excludes physical connections and automated logical transfers; temporary disconnection or a loopback endpoint does not establish one.
Workloads and device acceptance conditions
A workload contract states useful results, input and output shapes, arrivals, concurrent work, deadlines, and session conditions. A service objective is a declared acceptance target. Model size cannot substitute for these requirements: a narrow task may benefit more from specialization than from broad generation capabilities.
Tokens are text units represented by vocabulary IDs, not necessarily words; Tokenization explains their boundaries. For summarization, record the joint distribution of complete input and output lengths. Long inputs paired with long outputs create a different device workload from either length in isolation, as described in workload shape and service objectives.
Continuous input and bounded completion
Example timingsEarly output and finished work occur at different times.
Read the diagram as text
- Dictation task excerpt. Six seconds elapsed. 0 to 6 seconds; duration 6 seconds.
- Audio capture. 0 to 5 seconds; duration 5 seconds. Parent: Dictation task excerpt.
- Partial transcription. Revisable text while input continues. 0.5 to 5.2 seconds; duration 4.7 seconds. Parent: Dictation task excerpt.
- Finalize transcript. 5.2 to 6 seconds; duration 0.8 seconds. Parent: Dictation task excerpt.
- Summary task. Four seconds elapsed. 0 to 4 seconds; duration 4 seconds.
- Prompt processing. 0 to 1 seconds; duration 1 seconds. Parent: Summary task.
- Output generation. First output precedes completion. 1 to 4 seconds; duration 3 seconds. Parent: Summary task.
The following requirements define two example applications; they are acceptance targets, not published device results. Summarization produces a bounded document result. Dictation continuously converts incoming speech into text, and early partial text can change before finalization.
| Contract dimension | Interactive summarization | Sustained dictation |
|---|---|---|
| Useful result | Preserve required facts, names, and qualifications; compare against an extractive baseline that selects source sentences. | Preserve spoken content, including names and corrections; score representative audio conditions. |
| Input and output | 512–2,048 complete prompt tokens; at most 128 generated tokens. | Continuous microphone input; distinguish revisable partial text from final text. |
| Timing targets | First useful text within one second and completed result within five seconds for at least 95% of requests. | First partial within 0.5 seconds; finalization within one second after an utterance ends; no growing backlog. |
| Arrivals and duration | One active request; replacement requests cancel obsolete work. | Twenty-minute session, including pauses and resumed speech. |
| Supported conditions | Declare device and OS classes, available memory, competing applications, and initialization state. | Also declare microphone conditions, screen activity, charging, battery state, and background activity. |
Time to first token, or TTFT, measures request submission to receipt of the first generated response. Completion latency ends at the final response. Neither necessarily measures first useful content. A p95 is a percentile of specified observations, not an average; report deadline misses as well. Bundled streaming responses do not expose every internal token-emission time.
Fast partial transcription can coexist with late or unstable final text. Conversely, a quick summary opening can precede an incomplete answer. Separate these milestones using the latency boundaries. Task effectiveness needs its own evidence: MobileAIBench separates task evaluation from mobile resource measurements, and its summarization overlap scores do not by themselves establish factual fidelity.
Peak memory and shared device capacity
Download size measures transferred files; installed storage measures persistent assets. Resident memory is memory currently held in RAM by a process. Peak running demand includes more than weights: request state, temporary execution storage, media, runtime, and application allocations coexist. The operating system and competing applications need capacity outside that budget.
Weights are learned numerical parameters. Activations are intermediate numerical results; scratch space is temporary execution storage. A language model's KV cache retains context-dependent attention keys and values, not tokens themselves or durable conversation records. KV state and the resident memory budget explains why that request-dependent allocation must remain separate from shared weights.
Loading exceeds an otherwise adequate budget
ExampleLater steady execution can fit while initialization fails.
One workload, successive phases
All categories share one allocation allowance.
Scroll sideways if the figure extends beyond the screen.
- 1. Simultaneous total
- 2. Allocation allowance
Read coordinates and regions as data
X: 0–5 seconds; Y: 0–2600 MiB, increasing up. Axes scaled independently; screen angles and distances are not comparable.
(1, 2300); (2, 2100); (3, 1900); (4, 2000)
(0.2, 2200); (4.8, 2200)
Loading: (1, 2440)
Prompt: (2, 1920)
Generation: (3, 1720)
Longer output: (4, 1830)
Assume the application has a 2,200 MiB allocation allowance after reserving capacity for the system and competing work. MiB means 1,048,576 bytes. The ledger below supplies the plotted totals. Temporary loading allocations exceed the allowance even though every later phase fits; independently adding category maxima would instead overestimate simultaneous demand.
| Allocation, MiB | Loading | Prompt processing | Generation | Longer generation |
|---|---|---|---|---|
| Resident weights | 800 | 800 | 800 | 800 |
| Request state | 0 | 400 | 600 | 700 |
| Temporary loading/execution buffers | 1,100 | 500 | 100 | 100 |
| Runtime and application | 300 | 300 | 300 | 300 |
| Media buffers | 100 | 100 | 100 | 100 |
| Simultaneous total | 2,300 | 2,100 | 1,900 | 2,000 |
A published fixture illustrates the file-versus-process distinction without supplying an allocation breakdown. Google's FunctionGemma Mobile Actions dynamic-int8 configuration reports a 288 MB model and 551 MB peak RSS, or resident set size. The test used a Samsung S25 Ultra CPU, LiteRT XNNPACK, four threads, 512 prefill tokens, and 32 decode tokens. RSS is not whole-device demand.
Dynamic KV allocations grow with retained history; static caches reserve capacity in advance. Windowed architectures follow different retention rules. More cache slots do not extend a model's supported sequence length. Limit complete input plus reserved output, using complete-request budgeting, and qualify concurrency separately because simultaneous requests can require additional state.
Unified memory lets processors access a shared pool; MLX on Apple silicon avoids explicit array copies between separate CPU and GPU memory spaces. Count shared allocations once. Separate-memory systems require a budget for each pool and any duplicated buffers. Neither arrangement removes competition for capacity. Under memory pressure, a mobile operating system may terminate the application.
Actual execution across processors
An inference runtime loads a model and executes its numerical operations. The CPU is a general-purpose processor; the GPU executes parallel workloads; an NPU, or neural processing unit, specializes in neural-network operations. A backend or execution provider is the runtime component that executes supported work on a processor.
Capacity determines whether allocations fit. Memory bandwidth determines how quickly operands move; arithmetic capacity determines how quickly operations execute. Dispatch and synchronization add overhead. Inference bottlenecks depend on workload shape and hardware. An advertised peak arithmetic rate omits these other limits and cannot predict complete application latency.
Accelerated regions still need connecting work
ExampleProcessor crossings can outweigh faster operations.
Read the diagram as text
- CPU preprocessing.
- GPU subgraph A. Supported operations.
- CPU operation. Unsupported by this GPU delegate.
- GPU subgraph B. Supported operations.
- CPU postprocessing.
- CPU preprocessing → GPU subgraph A: Input tensor handoff.
- GPU subgraph A → CPU operation: Intermediate tensor; synchronize.
- CPU operation → GPU subgraph B: Intermediate tensor handoff.
- GPU subgraph B → CPU postprocessing: Output tensor; synchronize.
Prompt processing and iterative generation can stress different resources. Processing many prompt positions together often offers more arithmetic reuse; small-batch decoding can depend heavily on repeatedly moving weights and retained state. These are workload tendencies, not universal diagnoses. The DGX Spark account similarly distinguishes enough memory to hold a model from enough bandwidth to run it responsively.
An operator is a numerical operation in the model graph. ONNX Runtime asks execution providers which operations they support, then assigns graph regions accordingly. A successfully loaded model therefore does not establish that every operation reaches the intended accelerator. Preprocessing and postprocessing also contribute to the application path.
| Execution arrangement | Potential benefit | Cost to inspect |
|---|---|---|
| CPU-only | No CPU–GPU crossings inside the graph. | CPU computation time and competition with application work. |
| Partially delegated | Supported graph regions use the accelerator. | Synchronization and tensor movement between processor regions. |
| Shared CPU–GPU memory | Some explicit array-copy requirements disappear. | Dependencies, bandwidth use, and simultaneous application demand remain. |
Verify placement with execution traces, operator timings, and accelerator activity. Windows NPU tooling can identify processes submitting work; hardware presence alone cannot. A utilization percentage also cannot isolate useful computation from waiting or overhead. Detailed kernel diagnosis belongs in finding the limiting resource.
Compatible models, artifacts, and runtimes
Quantization represents numerical values using a smaller set of possibilities, often with fewer bits. It can reduce weight storage and memory traffic, but quality and execution cost depend on the model, format, and supported operations. Weight-only quantization does not automatically shrink KV state, activations, or workspace. Quantization covers numerical formats and calibration.
Select for the required task before selecting for size. FunctionGemma targets structured mobile function calls and is not intended as a direct dialogue model. Its reported task-specialization gain does not establish successful authorized actions. A fluent general-purpose model and a narrow action model solve different parts of an application contract.
A model artifact is a deployable representation of model data. Conversion changes that representation for a target runtime. A hardware delegate assigns supported operations to specialized execution. Architecture, artifact format, and runtime are separate choices: llama.cpp, for example, uses GGUF files and supports several processor backends and quantization formats.
| Check | Required evidence |
|---|---|
| Task and output meaning | Representative task results, including whether an output is dialogue, a summary, or a proposed action. |
| Exact artifact | Checkpoint revision, architecture, numerical format, and supported runtime backend. |
| Input preparation | Matching tokenizer, chat template, media preprocessing, and special-token handling. |
| Operation coverage | Accepted operations and actual processor assignments; record partial acceleration explicitly. |
| Platform and footprint | Supported OS/device configuration, preparation behavior, and measured peak application demand. |
| Distribution and use | Actual terms for the artifact revision, referenced policies, and relevant upstream terms. |
Models sharing an architecture can require different message serialization. Incorrect role markers or duplicated special tokens can change behavior even when execution succeeds. Preserve the selected checkpoint's preprocessing contract; tokenizer and model compatibility explains this interface.
| Packaging | Integration consequence |
|---|---|
| Native library | Inference can execute inside the application process; compiled dependencies and target compatibility remain part of distribution. |
| Browser-managed model | Browser download, update, eligibility, and purge rules affect readiness. |
| Local service | A process boundary and endpoint exposure must be configured, independently of model location. |
Model-card license metadata helps locate terms; it is not the complete agreement. Download availability and a runtime's software license do not establish permission to distribute model weights. Review the exact intended use and artifact separately. Compatibility tables suit this decision because each row records a distinct requirement rather than a causal sequence.
Installation and changing readiness
Provisioning makes required assets available before use. A model bundle includes weights, tokenizer or other preprocessing assets, and configuration. Installing an inference library does not provision that bundle. Foundry Local's demonstration downloaded models in advance to remove the model-fetch dependency during execution.
A cold start begins without the relevant loaded execution state; it does not describe physical temperature. Warmup performs initialization or preliminary execution before measured work. Initialization, warmup, and steady inference are separate measurements. Keeping a model loaded can avoid repeated startup but retains memory; any energy advantage requires a full-session comparison.
Bundle identity outlasts readiness
ExampleSelecting a bundle does not make its assets permanently available.
Identity exists without files.
Read the diagram as text
- Selected bundle B. Weights, preprocessing assets, configuration.
- Assets absent.
- Download incomplete.
- Assets installed.
- Execution ready.
- Assets evicted.
- Selected bundle B → Assets absent: Not provisioned.
- Selected bundle B → Download incomplete: Acquisition started.
- Selected bundle B → Assets installed: Installation completed.
- Assets installed → Execution ready: Initialization succeeds.
- Selected bundle B → Assets evicted: Purge removes assets.
- Absent. Identity exists without files. Active: Selected bundle B, Assets absent. New: Selected bundle B, Assets absent.
- Acquiring. Partial download is unusable. Active: Selected bundle B, Download incomplete. New: Download incomplete.
- Installed. Execution remains unloaded. Active: Selected bundle B, Assets installed. New: Assets installed.
- Ready. Installed assets remain visible. Active: Selected bundle B, Assets installed, Execution ready. New: Execution ready.
- Evicted. Readiness must be restored. Active: Selected bundle B, Assets evicted. New: Assets evicted.
Readiness means the required assets and execution state are usable now. Firebase distinguishes unavailable, downloadable, downloading, and available models; warmup separately initializes execution. An inference request does not automatically download missing assets. Its configured execution mode determines whether local unavailability causes failure or permitted cloud fallback.
Initialization caches are implementation-specific. Apple's Stable Diffusion implementation distinguishes first-load preparation from subsequent cached loads, with behavior depending on asset form and compute selection. An earlier successful run cannot establish that a changed configuration will reuse the same preparation state.
For application-managed bundles, require complete downloads, compatibility checks, staged activation, interrupted-install cleanup, and recovery to a known working bundle. Reserve storage for temporary assets and any retained previous version. These are implementation requirements: authenticated files alone do not establish atomic installation or successful initialization.
Artifact verification starts with trusted update metadata and checks authorized signatures, versions, expiration, hashes, and lengths. TUF illustrates why a signature alone does not establish freshness. Authentication also does not prove model safety. Model artifacts and inference exposure separates these controls from protecting user inputs during execution.
Sustained energy and thermal limits
Power, measured in watts, is the rate of energy use; energy, measured in joules, accumulates over time. A thermal budget is sustainable heat dissipation under current conditions; thermal throttling reduces performance near thermal limits.
Duty cycle is the fraction of time actively computing. Continuous dictation and occasional summaries impose different active and idle patterns. Compare processor choice, residency, and work frequency over the whole session while holding quality and deadlines fixed. Lower instantaneous power can still consume more energy per useful task if completion takes longer.
Heat dissipation limits sustained work
Initial speed can exceed sustained throughput.
Read the diagram as text
- Sustained computation.
- Heat balance.
- Sustainable load.
- Protective limits.
- Possible slowdown.
- Thermal observations.
- Sustained computation → Heat balance: Heat production.
- Heat balance → Sustainable load: Sufficient dissipation.
- Heat balance → Protective limits: Heat accumulation.
- Protective limits → Possible slowdown: Performance reduced.
- Heat balance → Thermal observations: Monitor.
Assume one valid counter increases by 24,000,000 microwatt-seconds over 12 seconds while four useful tasks finish. That is 24 joules, two watts on average, and six joules per task. The result describes the measured rail and interval, not automatically the entire device or the application's isolated consumption.
Use matching rail identities and counter epochs, rejecting resets. Android's power observations are device-level and can include other applications. Missing rails are unavailable coverage, not zero consumption. Battery percentage, charge, and instantaneous current are not themselves energy. Record elapsed time, ambient conditions, charging, cooling, screen activity, and background work alongside useful completions.
Track latency, completions, and thermal state throughout identical sustained work. Correlated slowdown need not be exclusively thermal. Execution warmup does not establish thermal equilibrium.
Admission, cancellation, and application lifetime
Admission control decides whether new work may start within resource and policy limits. Backpressure slows producers when consumers cannot keep up. Graceful degradation reduces work while exposing a narrower result. Bound input size, concurrency, and pending work; a request count alone ignores differences in resource demand.
A queue does not automatically provide backpressure. Pipecat's inspected FrameQueue inherits unbounded capacity; its interruption reset is separate from limiting incoming work. For dictation, accumulating audio faster than it is processed increases delay and pending storage. For summaries, obsolete requests should not consume an unlimited queue behind the current request.
Admit work only within the current contract
ExamplePlatform eligibility precedes resource scheduling.
Read the diagram as text
- Platform and policy eligibility.
- Resource and deadline check.
- Admit full work.
- Reduced-mode check.
- Run validated reduced mode.
- Bounded-deferral check.
- Defer until deadline.
- Report unavailable.
- Platform and policy eligibility → Report unavailable: Execution prohibited.
- Platform and policy eligibility → Resource and deadline check: Execution permitted.
- Resource and deadline check → Admit full work: Full work fits.
- Resource and deadline check → Reduced-mode check: Full work exceeds limits.
- Reduced-mode check → Run validated reduced mode: Validated mode fits.
- Reduced-mode check → Bounded-deferral check: No suitable reduced mode.
- Bounded-deferral check → Defer until deadline: Queue space and time remain.
- Bounded-deferral check → Report unavailable: Bounded wait unavailable.
A reduced-work mode must retain its declared usefulness. An approved smaller summarizer may meet the same fidelity target; simply discarding audio samples may destroy recognition evidence. If no validated reduced mode meets the contract, defer within a bounded deadline or report unavailability. General capacity scheduling belongs in LLM Inference.
Platform eligibility is independent of spare hardware capacity. ML Kit GenAI requires the top foreground application and applies request and battery-use quotas; a foreground service can still be blocked. These restrictions apply to those managed APIs, not every Android runtime.
Cancellation must reach the computation that consumes resources. gRPC generally cannot interrupt application handlers automatically; handlers must cooperate. Ending a stream therefore does not establish stopped inference. Verify queued-work removal and buffer release separately, and distinguish request-owned buffers from intentionally resident model allocations.
Android may reclaim an application process even while a thread is doing work. Persist task identity and committed progress separately from transient inference state, then recheck readiness when resuming. Harness Engineering covers durable execution; progress and interruption covers communicating what actually stopped, survived, or needs restarting.
Complete offline capabilities
Offline inference executes a model without a network dependency during execution. A complete offline task additionally needs dependency closure: every prerequisite required for its promised outcome must be available. Audit assets, authentication, local documents and indexes, preprocessing, tools, license checks, save locations, telemetry, and updates.
| State | Honest capability contract |
|---|---|
| Unprovisioned first launch | Features needing absent model assets remain unavailable until provisioning completes. |
| Provisioned disconnection | Only tasks whose assets, inputs, and completion paths are local can finish. |
| Model eviction | A previous successful run does not ensure another disconnected run. |
| Stale local data | Expose the applicable freshness limit; cached records may not represent current remote state. |
| Expired remote credentials | Do not treat queued retries as authorized remote completion. |
Local completion precedes optional synchronization
ExampleA saved summary and a confirmed remote copy are different outcomes.
Read the diagram as text
- Provisioned model assets.
- Local document.
- Local summarization.
- Locally saved summary.
- Pending synchronization.
- Remote copy confirmed.
- Provisioned model assets → Local summarization: Required execution assets.
- Local document → Local summarization: Required source data.
- Local summarization → Locally saved summary: Result saved locally.
- Locally saved summary → Pending synchronization: If synchronization requested.
- Pending synchronization → Remote copy confirmed: Authorized transfer acknowledged.
Local computation can support complete, bounded actions. A demonstrated laptop agent interpreted dice requests and called a local random-number tool. That example establishes a narrow local execution path; it does not establish that arbitrary agents, remote tools, or their initial installation work disconnected.
Generated text, a locally saved result, queued synchronization, and confirmed remote completion are distinct outcomes. Reconnection can introduce conflicts. Keep pending work visible and preserve authorization at disclosure boundaries; offline operation creates no exception to permissions.
An unconfirmed remote mutation remains uncertain. A timed-out operation may already have changed the receiving system. Retain its operation identifier and reconcile before repeating it, using enforced idempotency where supported. Uncertain effects and safe retries explains why timeout and cancellation are not evidence of reversal.
Local-cloud routing and transfer outcomes
Routing chooses an execution location for a request or stage. Cloud fallback uses remote processing when the preferred local route cannot proceed. The decision must join task capability, current resources, connectivity, latency, transfer cost, and data permissions. Local failure alone supplies no authority to disclose information.
| Placement | Information crossing the boundary | Without the remote stage |
|---|---|---|
| Fully local | No model-server transfer is needed for summarization. | The provisioned local task can continue. |
| Local preparation, cloud generation | Prepared text or another derived representation goes to the remote model. | Preparation may remain available, but the cloud-generated summary does not. |
| Local-first with permitted escalation | A payload crosses only when escalation conditions and transfer authorization hold. | Return an acceptable local result or explicit unavailability. |
Authorization and display eligibility differ
ExampleA late reply cannot replace the current revision.
Only V1 was authorized.
Read the diagram as text
- Cloud request R1: V1.
- Local request R2: V2.
- R1 accepted remotely.
- R1 superseded; cancellation requested.
- R2 result: current display.
- R1 late reply: display rejected.
- Cloud request R1: V1 → R1 accepted remotely: Remote acceptance.
- Cloud request R1: V1 → R1 superseded; cancellation requested: Revision replaced.
- Local request R2: V2 → R2 result: current display: Local completion.
- Cloud request R1: V1 → R1 late reply: display rejected: Obsolete revision.
- Accepted. Only V1 was authorized. Active: Cloud request R1: V1, R1 accepted remotely. New: Cloud request R1: V1, R1 accepted remotely.
- Corrected. V2 has no cloud authorization. Active: Cloud request R1: V1, R1 accepted remotely, Local request R2: V2, R1 superseded; cancellation requested. New: Local request R2: V2, R1 superseded; cancellation requested.
- Completed locally. V2 meets the task contract. Active: Cloud request R1: V1, R1 accepted remotely, Local request R2: V2, R1 superseded; cancellation requested, R2 result: current display. New: R2 result: current display.
- Late reply. Current V2 output remains. Active: Cloud request R1: V1, R1 accepted remotely, Local request R2: V2, R1 superseded; cancellation requested, R2 result: current display, R1 late reply: display rejected. New: R1 late reply: display rejected.
Firebase's PREFER_ON_DEVICE permits fallback, whereas ONLY_ON_DEVICE fails when local execution cannot proceed. Unsupported request features can also cause permitted fallback; responses identify the execution source. These settings implement routing behavior, not user authorization. The application must independently enforce and communicate its transfer policy.
A handoff contract records payload identity, destination, authorization scope and lifetime, retained copies, application/model version, request identity, and expected result. Validate the result before downstream use. Authorization to process one document revision does not automatically authorize transferring its replacement.
Model-reported confidence is not automatically a reliable escalation signal. An acceptance threshold changes how much work remains local, but the error rate among accepted cases must be measured. Calibration and selective automation explains that evidence. General routing optimization belongs in AI Cost and Performance Engineering.
For a corrected summary request, two checks remain independent: whether an earlier transfer was authorized and whether its reply still belongs in the current view. Track request and revision identity. A superseded reply can be excluded from display while remote cancellation remains incomplete; suppressing display does not reverse remote effects.
Qualification under real operating conditions
A deployment is qualified for a stated configuration and operating envelope, not for a model name alone. Record artifact revision, preprocessing, numerical format, runtime/backend, processor placement, OS, workload lengths, concurrency, arrivals, repetitions, and measurement boundaries. Engine benchmarks must be followed by measurements inside the actual application.
Select prompts, formats, and other configurations using validation cases, then freeze them before final held-out evaluation. Repeatedly tuning against the final test set makes reported results optimistic. Controlled comparisons explain this separation. Device feasibility and task correctness need to pass together.
| Condition | Required observation | Decision rule |
|---|---|---|
| Representative tasks | Fidelity or recognition errors, baseline comparison, and declared useful completions. | Apply the frozen quality criterion, including important failure categories. |
| Fresh versus reused execution state | Initialization, first useful output, and completion latency. | Do not hide startup behind a warm-only result. |
| Long session and competing work | Deadline misses, thermal observations, and useful throughput over time. | Require the intended session to remain within its operating contract. |
| Loading and memory pressure | Peak application demand, allocation failures, and process survival. | Qualify the least-capable supported configuration. |
| Disconnected and damaged readiness | Completion after missing assets, interrupted updates, eviction, or unusable credentials. | Distinguish successful local work from explicit unavailability. |
| Transfer and cancellation boundaries | Actual execution source, outbound traffic, cancellation outcome, and late-reply handling. | Forbidden escalation must not become an undisclosed cloud request. |
| Cost comparison | Allocated costs divided by comparable useful completions, including failed-attempt costs. | Keep task mix, quality, and service requirements equivalent. |
Report failures and deadline misses alongside latency distributions. A remote benchmark includes network and client behavior; an inadequate load generator can conceal serving capacity. Separate those effects before attributing a result to the model. A single successful request cannot qualify the workload's arrival pattern or sustained concurrency.
Keep process state and thermal state independent in the test matrix: a newly loaded model may run on an already hot device. Missing observations remain untested coverage. Telemetry resource limits explain why instrumentation cannot observe everything. Requalify affected claims after changes to models, numerical formats, backends, platform behavior, or application dependencies.
Open questions
Portable admission estimates remain difficult because runtime allocations and competing application demand change independently. Better estimates would prevent avoidable failures without rejecting useful work. Progress would mean predicting peak demand within stated error bounds across loading, request lengths, concurrency, and unseen device conditions.
The best residency and duty-cycle policy for intermittent assistance remains workload-dependent. Keeping execution state ready may reduce delay while changing retained resources and session energy. Progress would compare policies over identical arrival traces, including idle periods, with equal quality and deadline criteria and clearly bounded energy coverage.
Reliable bundle replacement during disconnection remains an integration problem. Authenticity checks cannot ensure compatible initialization, and retained assets consume limited storage. Progress would demonstrate interrupted-download recovery, complete-bundle activation, and restoration of a working version without mixing preprocessing and weight revisions.
Useful local-to-cloud minimization remains difficult because derived representations may retain sensitive source information. Smaller payloads alone do not establish reduced disclosure. Progress would pair task-utility measurements with explicit reconstruction or identification attacks under a stated recipient-access model.























































































































