Skip to main contentSkip to footer

    Top Rated & Verified

    Top Clutch App Development Company Black Owned United StatesTop Clutch Java Developers France 2026Top Clutch Service Line Blind Company Black Owned 2026Top Clutch App Development Company Minority Owned 2026Top Clutch Web Developers Black Owned 2026Top Clutch App Development Company Black Owned 2026Top Clutch Flutter Developers France 2026Top Clutch Health & Wellness App Developers France 2026Top Clutch Swift Company France 2026Top Clutch Machine Learning Company France 2026Top Clutch Chatbot Company France 2026Top Clutch Artificial Intelligence Company France 2026Top Clutch App Development Company Minority Owned Los Angeles
    Back to Blog
    Edge AI
    August 9, 2026
    26 min read

    On-Device AI &Edge Inference in 2026

    What actually runs on a phone or a laptop in 2026, what it costs you in battery and thermal budget, and the honest decision framework for when shipping a model to the device beats calling an API — written for the engineer who has to ship it.

    On-device AI and edge inference in 2026 — small models running locally on phones and laptops, memory bandwidth and thermal constraints, and hybrid cloud escalation
    30–50×
    Memory-bandwidth gap, mobile vs datacenter GPU
    Independent measurement, arXiv 2603.23640
    40 TOPS
    Microsoft Copilot+ PC neural-accelerator floor
    Microsoft Copilot+ requirement, 2026
    20–40%
    Speed lost to thermal throttling after 10–15 min
    Independent measurement, arXiv 2603.23640
    $30k–$80k
    Single production on-device feature, 5–10 weeks
    Frenchy Digital scoping 2026

    Key Takeaways

    • TOPS is a marketing number. Autoregressive decoding is bound by memory bandwidth — roughly 50–90 GB/s on mobile against 2–3 TB/s on a datacenter GPU, a 30–50× gap that dominates throughput regardless of how many TOPS the NPU advertises.
    • The platform state of play as of August 2026: Apple's AFM 3 Core is a 3B dense on-device transformer with quantization-aware training, and AFM 3 Core Advanced is 20B total with only 1–4B activated per request via Instruction-Following Pruning, held in NAND flash rather than RAM.
    • Sustained inference costs 20–40% of speed to thermal throttling after 10–15 minutes, and 30–60% of laptop battery per hour. A 7B model on an 8GB laptop runs at 10–25 tokens/second; an Apple M3 at 50–80.
    • Four-bit floating point is the frontier — NVFP4 at 4.5 bits per element, MXFP4 at 4.25 — but accuracy recovery against BF16 falls from ~99% at 70B–235B to 95–98% at 7B–14B. Quantization hurts small models most, and small models are what fits on a device.
    • On-device wins on privacy, offline operation, zero marginal cost at very high volume, and hard latency floors. It loses on frontier reasoning, long context, and anything needing frequent model updates.
    • The honest architecture is hybrid: classify and route locally, escalate to cloud on confidence or capability gaps, and make the escalation boundary explicit. Apple operates exactly this tiering between AFM 3 Core, AFM 3 Cloud, and AFM 3 Cloud Pro.
    • Frenchy Digital cost bands: discovery and architecture review $9k–$22k; single production on-device feature $30k–$80k; multi-workflow platform with hybrid routing $80k–$200k; enterprise or regulated build $200k–$450k+.

    What Actually Ships On-Device in August 2026

    The interesting thing about on-device AI in 2026 is that the platform vendors have stopped pretending. Both Apple and Google now ship small local models and a cloud tier, and both route between them. That tiering is the honest architecture, and it is worth understanding what each tier actually contains before you decide which one your feature belongs in.

    Apple published its third generation of foundation models on June 8, 2026. Two of the four tiers run on the device. AFM 3 Coreis a 3B dense on-device transformer trained with quantization-aware training, covering roughly 25 locales. Apple reports it was preferred on 45.6% of text prompts against 23.3% for the 2025 on-device baseline, and reports 61% preference on image understanding. Those are Apple's own human evaluations, not independent measurements, and should be read as directional rather than as a benchmark result.

    AFM 3 Core Advanced is the more interesting engineering. It carries 20B total parameters but activates only 1 to 4 billion of them per request, using what Apple calls Instruction-Following Pruning, and it holds the full model in NAND flash rather than resident in RAM. That is the design pattern to notice: on a memory-constrained device you do not win by shrinking the model, you win by reading fewer bytes per token and by keeping the rest of the weights somewhere other than RAM.

    One correction worth making explicitly. The widely quoted 2-bit quantization-aware training scheme, with 4-bit embeddings and an 8-bit KV cache, is documented for Apple's 2025 generation in arXiv 2507.13575. AFM 3 does not publish bit-widths. If you see a 2026 article attributing 2-bit weights to AFM 3, it has laundered a 2025 number into a 2026 claim.

    On Android, Gemini Nano v3runs through AICore. The reported specifications are 1.8B to 3.25B parameters, a context window around 4,096 tokens, 4-bit quantization, sub-second latency, and no per-inference cost — with a requirement of roughly 12GB of RAM plus a flagship chipset. Treat all of that as secondary-sourced. It comes from reporting and community documentation rather than from Google's own published specification, and you should verify it against Google documentation before you commit a device support matrix to it.

    TierWhat it isWhat is reported about itEvidence quality
    Apple AFM 3 Core3B dense transformer, on-device, quantization-aware training. ~25 locales.Apple reports it was preferred on 45.6% of text prompts against 23.3% for the 2025 on-device baseline, and 61% preference on image understanding.Vendor-reported — Apple's own human evaluations, June 8, 2026
    Apple AFM 3 Core Advanced20B total parameters with only 1–4B activated per request, via Instruction-Following Pruning. The full model is held in NAND flash rather than resident in RAM.Apple reports TTS mean opinion score of 4.15/5.0 against 3.87, and dictation preferred 44.7% against 17.6%.Vendor-reported — Apple, June 8, 2026
    Apple AFM 3 Cloud / Cloud ProServer tier. Cloud runs a Parallel-Track mixture-of-experts on Apple silicon; Cloud Pro runs on NVIDIA GPUs in Google Cloud.Apple reports Cloud Pro at +10% on text and +14% on image over Cloud.Vendor-reported — Apple, June 8, 2026
    Google Gemini Nano v3 (Android AICore)Reported at 1.8B–3.25B parameters, ~4,096-token context, 4-bit quantization, sub-second latency, $0 per inference. Requires roughly 12GB of RAM plus a flagship chipset.Pixel 10 and Oppo Find X9 plus 2026 flagships are reported on v3; Pixel 9 and Galaxy Z Fold 7 remain on v2.Secondary sources only — verify against Google documentation before you commit a device matrix
    Microsoft Copilot+ PC classA hardware tier definition rather than a model. The neural-accelerator floor is 40 TOPS.Snapdragon X2 Elite ships an 80 TOPS Hexagon NPU, double the Copilot+ bar and up from 45 TOPS on X Elite.Vendor specifications via trade press, 2026

    Platform state of play for on-device inference as of August 2026, with evidence quality flagged per row.

    The row that matters most to a product engineering lead is the fragmentation one. Pixel 10 and Oppo Find X9 plus 2026 flagships are reported to run Nano v3, while Pixel 9 and the Galaxy Z Fold 7 remain on v2. Your install base is therefore split across model generations you do not control, on a schedule you do not set. Any feature that assumes a single on-device model capability is a feature that will behave differently for a large share of your users, and that difference will surface as support tickets rather than as a metric.

    What does not run on a device, and is not about to

    Frontier-scale models. The tier that tops agent benchmarks lives in datacenters and stays there, and the reason is not that nobody has tried to port it. It is that a model of that size cannot be read out of mobile memory fast enough to generate text at a usable rate, and the flash and RAM budgets on a consumer phone are not within an order of magnitude of what it needs resident.

    Everything in this article is therefore about the 1B to 8B class, quantized to roughly four bits, doing bounded tasks well. That is a genuinely useful capability envelope — classification, extraction, rewriting, summarization of short inputs, structured output, routing, on-device retrieval. It is not a smaller version of a frontier model, and features designed as if it were are the ones that get cut two weeks before launch.

    NPUs, TOPS, and the Number That Does Not Predict Anything

    The hardware tier is easy to state. Microsoft's Copilot+ PC floor is 40 TOPS of neural-accelerator throughput. The Snapdragon X2 Elite ships an 80 TOPS Hexagon NPU — double the Copilot+ bar, and up from 45 TOPS on the previous X Elite. Those numbers are how devices get sorted into marketing tiers, and they are genuinely useful for exactly that purpose.

    They are close to useless for predicting how fast your model will generate text. TOPS measures peak multiply-accumulate throughput, usually at an unstated precision, in a burst the device cannot hold thermally, on an accelerator your inference stack may not even be using. It is a ceiling on arithmetic. Text generation is not limited by arithmetic.

    Say it plainly: TOPS is a marketing number and memory bandwidth is the real constraint. If a device vendor, a framework, or an internal deck leads with TOPS and cannot answer a bandwidth question, nobody in that conversation has measured decode.

    The reason is structural, and it splits cleanly into two phases. Prefill — processing the prompt you already have — is compute-bound and parallel, and this is where an NPU genuinely earns its transistors, along with vision and audio encoders. Decode — generating one token at a time, each conditioned on the last — is serial, and every single token requires reading the active weight set out of memory. There is nothing to parallelize across, so the arithmetic units sit idle waiting for memory.

    That gives you a back-of-the-envelope identity worth writing on a whiteboard before any hardware decision: sustained decode throughput is capped by memory bandwidth divided by the bytes of active weights read per token. Not by TOPS. Which is why a sparsely activated design like AFM 3 Core Advanced, reading only 1 to 4 billion parameters per request out of 20 billion total, is a bandwidth optimization first and a capacity trick second.

    The Real Constraints: Bandwidth, Thermals, and Battery

    This is the section product teams get wrong, and it is the reason on-device features so often demo beautifully and ship badly. There are four physical constraints, they compound, and none of them appear on a spec sheet next to the TOPS figure.

    Memory bandwidth is the dominant one. Independent measurement puts mobile memory subsystems at roughly 50 to 90 GB/s against 2 to 3 TB/s on a datacenter GPU. That is a 30 to 50 times gap, and because decode reads the active weights once per token, it translates almost directly into a throughput ceiling. No NPU headline number closes it. No compiler optimization closes it. It is the shape of the hardware.

    Thermal throttling is the one that ruins demos. Sustained inference costs 20 to 40% of speed after 10 to 15 minutes. Phones have no active cooling; thin laptops have very little. The consequence for engineering practice is specific: a benchmark run on a cold device tells you about minute zero and nothing about minute twelve, and minute twelve is where your user actually is when they are getting value from the feature.

    Battery is the one that shows up in reviews. Laptops burn 30 to 60% of battery per hour during active inference. Phones are constrained harder by thermal envelope than by cell capacity, but the user experience is the same complaint. A local model running continuously in the background is not a feature, it is a support category.

    And the measured throughput numbers are what they are. A 7B model on an 8GB laptop delivers roughly 10 to 25 tokens per second. An Apple M3 delivers roughly 50 to 80. A streaming interface can hide 15 tokens per second reasonably well. A batch job that summarizes forty documents cannot.

    ConstraintThe numberWhy it dominatesWhat to do about it
    Memory bandwidthRoughly 50–90 GB/s on mobile against 2–3 TB/s on a datacenter GPU — a 30–50× gapDecode is bandwidth-bound. Sustained tokens per second is capped by bandwidth divided by the bytes of active weights read per token. This ceiling holds no matter how large the NPU number is.Size the model against bandwidth, not against TOPS. Prefer sparsely activated architectures, which read fewer bytes per token.
    Thermal throttling20–40% of speed lost after 10–15 minutes of sustained inferencePhones have no active cooling and thin laptops have very little. Your first-token demo is not the experience in minute twelve.Benchmark hot, not cold. Design for bursts. Back off or escalate to cloud when the thermal state degrades.
    Battery draw30–60% of laptop battery per hour during active inferenceA resident always-on local assistant is a battery complaint in a store review. Phones are constrained harder by thermal envelope than by cell capacity.Instrument power draw in QA. Gate long-running local work on charging state or explicit user action.
    Measured throughput7B model on an 8GB laptop: 10–25 tokens/second. Apple M3: 50–80 tokens/second.These are the honest planning numbers. A streaming UI can hide 15 tokens/second; a batch summarization job cannot.Set the product's latency budget from the slowest supported device, not from the developer's machine.
    RAM contentionModel weights plus KV cache compete with your application for unified memoryOn mobile, the operating system kills your process, not the model. Long context is expensive twice: once in bandwidth, once in resident memory.Cap context aggressively. Treat the RAM floor as a device-matrix decision made before any code.

    The four physical constraints on on-device inference, with measured figures from independent testing (arXiv 2603.23640) as of 2026.

    Benchmark hot, on battery, on the slowest device you intend to support. Every number improves when you test cold, plugged in, on a flagship — which is exactly why that is the test everyone runs and nobody should trust.

    Frenchy Digital engineering principle

    One more constraint that is easy to miss until integration: the model competes with your application for memory. Weights plus KV cache are resident, and on mobile the operating system does not kill the model, it kills your process. Long context is expensive twice — once in bandwidth per token, once in resident memory — which is a large part of why on-device context windows are small and will stay small.

    The roofline estimate, in the order to do it

    Before you commission any work, do this on a whiteboard in ten minutes. First, take the bytes of weights the model actually reads per token — for a dense model that is all of them, so parameters times bits per element divided by eight; for a sparsely activated model it is only the activated portion. Second, take the device memory bandwidth, which for the mobile class sits in the 50 to 90 GB/s range. Third, divide the second by the first. That is your theoretical decode ceiling in tokens per second, before any overhead at all.

    Then apply reality: real implementations land meaningfully below the roofline, and thermal throttling takes another 20 to 40 percent off after 10 to 15 minutes. Compare the result against the published measurements — 10 to 25 tokens per second for a 7B model on an 8GB laptop, 50 to 80 on an Apple M3 — and if your estimate is wildly above them, your assumption about bandwidth or about active bytes is wrong.

    The value of this exercise is not precision. It is that it tells you in ten minutes whether the feature is plausible, using a number the vendor did not choose for you.

    The Model and Runtime Landscape

    The local runtime ecosystem has consolidated around three projects, with the platform frameworks as a fourth option that most shipping mobile apps should consider first. GitHub star counts below are live figures as of August 10, 2026 — they measure attention, not fitness for your build, and should be read that way.

    RuntimeGitHub starsVersionWhen it is the right choice
    Ollama178,220v0.32.7Fastest path to a working local endpoint. Prototyping, internal tools, desktop applications where a background service is acceptable.
    llama.cpp123,345build b10344The engine a large share of the ecosystem embeds. The realistic choice when you are compiling inference into a native application and need control over the build.
    Apple MLX27,899v0.32.0Apple-silicon specific, array-framework shaped. The right answer for Mac-native work and for research on Apple hardware.
    Platform frameworks (Apple on-device models, Android AICore)Not applicableShips with the OSUsually the best answer on a shipping consumer mobile app: no weights in your bundle, no separate update path, and the vendor owns the battery and thermal behavior.

    Local inference runtimes, live GitHub data as of August 10, 2026. Sources: Ollama, llama.cpp, MLX.

    On the model side, the small-model class has improved considerably and the improvement is real even if the published numbers are not trustworthy in detail. The sub-3B class moved from under 50 MMLU in 2023 to roughly 65 to 70 in 2026. That is a genuine shift in what a phone-resident model can do. It is also measured on a benchmark that has been retired for frontier comparison because it saturated, so treat it as evidence that the class improved and not as a selection criterion.

    ModelShapeReported performanceEvidence quality
    Phi-4-miniSmall denseReported at roughly 67% MMLU and roughly 87% GSM8KSecondary sources
    Llama 3.2 3B3B denseReported at 63.4% MMLU five-shot and 77.7% GSM8KSecondary sources
    Gemma 3 E4B8B total, 4B activated per tokenThe sparsity pattern is the point: fewer bytes read per token means higher decode throughput at a given bandwidthArchitecture as published
    Gemma 4 E4BSmall, memory-optimizedReported to run in roughly 3GB of VRAMSecondary sources
    Qwen3-8B8B denseReported to lead its size class on code generationSecondary sources
    Sub-3B class overallUnder 3B parametersMoved from under 50 MMLU in 2023 to roughly 65–70 MMLU in 2026Secondary sources; MMLU is a saturated academic benchmark and not an agent benchmark

    Small-model options for on-device deployment. All benchmark figures above are secondary-sourced and should be verified against your own task before selection.

    The architectural pattern worth extracting from that table is Gemma 3 E4B: 8B total parameters with 4B activated per token. Combined with Apple's 20B-total, 1–4B-activated design, the direction is unambiguous. On memory-bandwidth-bound hardware, the winning move is to hold more parameters than you read. Expect more of the interesting on-device architectures to be sparsely activated rather than simply small.

    Quantization: 4-Bit Is the Frontier, and It Hurts Small Models Most

    Four-bit floating point is where quantization currently sits. The two formats in contention are NVFP4, which uses 16-element groups with FP8 E4M3 scales for an effective 4.5 bits per element, and MXFP4 at 4.25 bits per element with roughly 15% higher throughput on B200 hardware. Note the qualifier on that throughput figure: it is measured on a datacenter GPU. What matters for device work is that the tooling, kernels, and calibration recipes are maturing around four-bit floating point generally.

    The accuracy story is where the on-device implication lives, and it is not the one the format announcements lead with.

    Format or size classBits per elementMeasured resultThe read
    NVFP44.5 bits per element — 16-element groups with FP8 E4M3 scalesFiner group granularity, higher-fidelity scalesThe accuracy-leaning choice of the two four-bit floating-point formats
    MXFP44.25 bits per elementRoughly 15% higher throughput than NVFP4 on B200 hardwareThe throughput-leaning choice; note that this figure is measured on a datacenter GPU, not on a phone
    70B–235B modelsFour-bit floating pointRoughly 99% accuracy recovery against BF16The size class where four-bit is close to free — and the size class that does not fit on a device
    ~30B modelsFour-bit floating point97–99% accuracy recovery against BF16Still comfortable, still too large for a phone
    7B–14B modelsFour-bit floating point95–98% accuracy recovery against BF16The size class that actually ships on devices — and the one that loses the most to quantization

    Four-bit floating-point formats and accuracy recovery against BF16 by model size. Source: Red Hat Developers, February 2026.

    The compounding problem. Accuracy recovery against BF16 runs roughly 99% at 70B–235B, 97–99% at around 30B, and 95–98% at 7B–14B. Quantization hurts smaller models more — and smaller models are exactly the size class that fits on a device. You are not making one compression decision, you are making two that stack: you pick a small model, then you quantize it hard, and the second decision costs more precisely because of the first.

    This is why quantization-aware training matters as much as it does for the platform models. Apple states that AFM 3 Core was trained with QAT rather than quantized after the fact, which is a materially different proposition from taking an open-weights checkpoint and running post-training quantization over it. If you are quantizing a model yourself, the honest expectation is that you land nearer the bottom of that 95–98% band, on a benchmark, and that your own task may behave worse than the benchmark did.

    The practical instruction is short: never ship a quantization decision without measuring it on your own evaluation set. A three-point drop on MMLU is an abstraction. A three-point drop in structured-output validity, or in tool-argument correctness, is an outage.

    The Decision Framework: When On-Device Wins and When It Loses

    Here is the framework we use on engagements. It is deliberately unsentimental about on-device, because the failure mode we see most often is a team that decided on the architecture before they decided on the requirement.

    RequirementWinnerWhyThe caveat
    Privacy and regulated dataOn-deviceData that must not leave the device makes locality the compliance argument rather than a performance one. This is the strongest case and the one worth paying engineering cost for.Only if nothing escalates. A hybrid fallback that silently sends the same content to a cloud model destroys the claim.
    Offline operationOn-deviceIf a missing network is a functional failure rather than a slowdown — field work, aviation, transit, rural coverage — the local path is the product.You still need a degradation story for devices below the RAM and chipset floor.
    Very high request volumeOn-deviceMarginal inference cost is zero to you; the user pays in battery. At sufficient volume this dominates the fixed engineering cost.The crossover is further out than teams assume, and cloud prices are falling faster than phones are getting faster.
    Hard latency floorsOn-deviceNo network round trip. For interactions where 200–400ms of transit alone breaks the feel — inline completion, live captioning, camera overlays — locality is the only route.Local decode is slow in tokens per second. You win on first-token latency and can lose on total completion time.
    Frontier reasoningCloudA 3B model quantized to four bits is not a substitute for a frontier model on multi-step reasoning, and prompting does not close the gap.Do not let a demo on a curated prompt set convince you otherwise. Test your hardest real cases.
    Long contextCloudGemini Nano v3 is reported at roughly a 4,096-token window, and every KV-cache token competes with your application for RAM. Frontier APIs now routinely offer 1M-token windows.Retrieval can shrink the context requirement, but it does not eliminate the RAM ceiling.
    Frequent model updatesCloudA cloud model changes with a config value. A local model changes with an app release or a multi-gigabyte background download on the platform's schedule.If your model is part of a fast iteration loop, on-device will be the thing that slows the loop.
    Tool-heavy agent loopsCloudAgents use roughly 4× the tokens of a chat interaction and multi-agent systems roughly 15×, per Anthropic's published figures. Multiply that by 10–25 tokens per second locally.A local model can still route or classify inside an otherwise cloud-hosted loop.

    On-device versus cloud inference by requirement — Frenchy Digital decision framework, 2026.

    Two entries deserve expansion because they are the ones most often argued badly.

    Zero marginal cost is real, and it arrives later than people expect. The device path has a large fixed cost — model selection, quantization and its evaluation, packaging, an update mechanism, a per-device QA matrix, thermal and battery testing, and a permanent support category — and a marginal cost of approximately zero. The cloud path is the reverse. That means the comparison is a payback period, not a unit-cost comparison, and the payback period is measured in months of engineering salary against months of API invoices.

    Latency is two different numbers. On-device wins decisively on time to first token, because there is no network. It frequently loses on time to last token, because 10 to 25 tokens per second on a laptop is slower than a hosted small model streaming over a good connection. For inline completion, live captioning, or a camera overlay, first-token latency is the whole experience and local wins. For a long summarization, total completion time is the experience and cloud usually wins.

    The requirement test we run before any architecture discussion

    Ask four questions in order. Does any data in this feature legally or contractually have to stay on the device? Does the feature have to work with no network at all? Will this feature run often enough that per-token cost becomes a line item someone will complain about? Does the interaction break if there is a network round trip in it?

    If the answer to all four is no, build it against an API and revisit in a year. That is not a concession — it is the shortest path to knowing whether the feature is worth having at all, and you can port a working feature to the device far more easily than you can debug a device-side implementation of a feature nobody wanted.

    The Hybrid Architecture Apple Itself Ships

    The strongest argument against pure on-device architecture is that the company with the most commercial incentive to build one did not. Apple's third-generation stack has four tiers: AFM 3 Core and AFM 3 Core Advanced on the device, and a server tier of AFM 3 Cloud — a Parallel-Track mixture-of-experts running on Apple silicon — and AFM 3 Cloud Pro on NVIDIA GPUs in Google Cloud. Apple reports Cloud Pro at +10% on text and +14% on image over Cloud. The company that markets privacy hardest still escalates, and still rents NVIDIA capacity to do it.

    Take that as the reference architecture rather than as a compromise. A hybrid design gets you the privacy and latency properties of local inference on the common case, and frontier capability on the cases that need it. What it costs you is a routing layer that has to be designed as deliberately as the models on either side of it.

    ComponentWhat it doesWhy it earns its placeWhat it costs you
    Local classification and routingA small local model decides whether the request is handled on-device or escalatedCheap, fast, and keeps the routing decision itself privateThe router is a capability judgment made by the least capable model in the system. Calibrate it on real traffic.
    Confidence-gated escalationEscalate when the local model's output fails a check — length, format, refusal, low-confidence signalKeeps the common case local and the hard case correctConfidence signals from small models are poorly calibrated. Treat thresholds as tunable, not as truth.
    Capability-gated escalationRoute by declared task type: summarization local, multi-step reasoning remotePredictable, explainable, and easy to put in a privacy policyRequires a task taxonomy you actually maintain as features ship.
    Explicit user-visible boundaryThe interface shows which mode handled the request, and the user can force local-onlyTurns the escalation policy into a product promise you can keepCosts UI surface. Teams skip it, then cannot defend the privacy claim later.
    Offline degradation pathDefined behavior when the network is gone and the local model is the only optionPrevents the feature from simply failing on a plane or in a basementNeeds its own test plan; it is the path least exercised in development.
    Thermal-aware schedulingBack off local work or escalate when the device reports thermal pressureProtects the user's device and the rest of your applicationRequires reading platform thermal state and having somewhere to escalate to.
    Two-sided cost accountingTrack cloud spend and device-side cost — battery, storage, support tickets — in one placePrevents the crossover analysis from measuring only the half that shows up on an invoiceDevice-side cost is real but does not arrive as a bill, so it is systematically under-counted.

    Hybrid on-device and cloud routing architecture — component breakdown, Frenchy Digital 2026.

    The routing layer is a privacy control, not a performance optimization. If your store listing or privacy policy says a feature runs on the device, then every escalation path is a disclosure. Make the boundary explicit in the interface, enforce it in code rather than in a prompt, log the escalation rate, and give the user a way to force local-only. A router that silently sends a query the user believed was private to a cloud model is not an architecture problem, it is a broken promise you will have to explain publicly.

    One design detail that saves considerable pain later: keep the routing decision separate from the prompt. A router implemented as an instruction inside a system prompt is a router that untrusted content can influence. A router implemented as code, reading typed signals — task type, content length, thermal state, network availability, user preference — is a router you can test, log, and reason about.

    Concretely, this is the layering we deploy. It is deliberately unexciting; the interesting parts of an on-device system are the parts that fail on somebody else's phone.

    • 1. Capability probe at launch: Detect the device class once per session: available RAM, chipset, OS version, platform model availability and generation. Cache it. Every downstream decision reads this rather than re-detecting, and it is the single source of truth for the degradation path.
    • 2. Typed request envelope: Every AI request carries a declared task type, an input size, a sensitivity flag, and a user preference. The router reads fields, never free text. This is what keeps untrusted content from influencing where the content goes.
    • 3. Policy router in code: A deterministic function from envelope plus device capability plus network state plus thermal state to a destination. Testable, loggable, and reviewable in a pull request. No model decides where data goes.
    • 4. Local inference path: Platform model where possible, embedded runtime where not. Bounded context, bounded output length, a hard timeout, and a cancellation path the user can reach.
    • 5. Escalation gate: The only place a request can cross to the cloud. It applies the sensitivity flag, the user preference, and any regulatory rule, and it emits an event whether or not it escalates. One gate, one audit point.
    • 6. Cloud inference path: A hosted model with pinned version, batch and caching applied where the workload allows, and its own cost ceiling. Treat a model upgrade like a schema migration: canary it and watch quality metrics.
    • 7. Output validation: Structured-output schema validation, refusal detection, and length checks run identically on both paths, so a downstream consumer cannot tell which tier produced the result. This is also the confidence signal the router learns from.
    • 8. Offline queue: Work that requires cloud and has no network either degrades explicitly or queues with visible state. Silent failure is the option that generates support tickets.
    • 9. Aggregate telemetry: Latency, throughput, escalation rate, validation failure rate, thermal state, and battery delta — as aggregates, opt-in, with no content. You need the evaluation signal without recreating the disclosure the architecture removed.
    • 10. Kill switch and remote configuration: The ability to disable a path, shift the routing threshold, or force cloud-only without an app release. This is the control that turns a bad model generation from an emergency submission into a config change.

    Computing the Crossover Against Per-Token Billing

    The cost argument for on-device is straightforward to state and easy to get wrong. Local inference has a marginal cost of roughly zero to you — the user pays in battery and storage — against a cloud path billed per token. The crossover is the point where accumulated API spend exceeds the fixed engineering cost of the device path. To find it you need both sides, and most analyses only build the side that arrives as an invoice.

    Start with the cloud side. These are list prices per million tokens, verified against official pricing pages and current as of August 2026. Prices in this market change monthly, so re-verify before you commit a number to a business case.

    Model (as of August 2026)Input / MTokOutput / MTokNotes
    Claude Haiku 4.5$1.00$5.00200K context / 64K max output
    Claude Sonnet 5 (introductory, through Aug 31 2026)$2.00$10.00Rises to $3.00 / $15.00 from Sep 1 2026
    Claude Opus 5$5.00$25.001M context; no long-context premium
    gpt-5.6-luna$0.20$1.20Cached input $0.02
    gpt-5.6-terra$2.00$12.00Cached input $0.20
    Gemini 3.5 Flash-Lite$0.30$2.50Batch and Flex tiers at 50% off standard
    Together AI — gpt-oss-20B serverless$0.05$0.20Open-weight, serverless hosting
    Together AI — Llama 3 8B Lite serverless$0.14$0.14Roughly the same size class you would run on-device

    Selected API pricing as of August 2026. Sources: Anthropic, OpenAI, Google, Together AI.

    For a concrete shape, Anthropic publishes a worked example: a customer-support conversation at roughly 3,700 tokens on Haiku 4.5 costs approximately $37 per 10,000 tickets. That is a vendor-published example rather than an independent measurement, but the arithmetic is checkable against the price table and it gives you a realistic order of magnitude. At that shape, a million conversations a month is a few thousand dollars — a real number, and a smaller number than one senior engineer-month.

    Three adjustments that materially move the cloud side before you compare:

    • Batch and caching discounts: Anthropic's Batch API is 50% off both input and output and stacks with prompt caching, where a cache read costs 0.1x base input. If your workload tolerates latency or repeats a long prefix, the effective price is well below list.
    • The tokenizer shift: Claude 4.7 and later, including Sonnet 5, use a tokenizer that produces roughly 30% more tokens for the same text. The per-token price did not change; the cost per request did. Re-baseline with a token-counting endpoint rather than applying a multiplier to an old estimate.
    • Reasoning tokens bill as output: On both major providers, reasoning tokens are billed at the output rate — the expensive side. A model configured with a high reasoning effort can cost several times a naive estimate built from visible response length.

    Now the device side, which does not arrive as a bill and is therefore systematically under-counted: model selection and quantization plus the evaluation to prove it did not break anything; packaging and an update mechanism; a per-device QA matrix including thermal and battery testing on physical hardware; a degradation path for devices below the floor; and a permanent support category for battery, storage, and device-specific failures. In our scoping, that is the $30k–$80k band for a single feature, and it recurs at a lower rate every year the feature exists.

    The contrarian point, and it matters. Cloud inference prices for a fixed capability level have been falling fast — Epoch AI measured declines of 9x to 900x per year depending on the benchmark, with GPT-4-level performance on GPQA Diamond falling roughly 40x per year. That analysis was published March 12, 2025 and we could not verify a 2026 update, so treat the magnitude as historical. The direction, though, is the problem for on-device business cases: the cloud side of your crossover calculation gets cheaper faster than phones get faster.A payback period of three years computed at today's prices may never actually arrive.

    Which is why the durable arguments for on-device are the non-cost ones. Privacy, offline operation, and latency floors do not erode when someone cuts a price. Pure cost arbitrage does.

    Evaluating Small Models Without Fooling Yourself

    Benchmark scores are unreliable across the board in 2026, and they are least reliable for exactly the model class this article is about. Small models are the ones most likely to have been tuned toward public benchmarks, and public benchmarks are the ones most thoroughly contaminated. If you select an on-device model from a leaderboard, you are selecting on the noisiest available signal.

    ProblemThe documented findingWhy it hits small models hardestWhat to do instead
    MMLU and similar academic scoresRetired for frontier comparison because it saturated; MMLU-Pro is near-saturated at around 90%It is a multiple-choice knowledge test, not a measure of whether a 3B model can do your taskIgnore for selection. Use it only as a coarse sanity floor.
    ContaminationModels score about 3× better on SWE-bench Verified than on freshly decontaminated task sets, and about 6× better at locating edited files without project contextPublished small-model scores are the most likely to reflect training exposure rather than capabilityBuild your own held-out set from data the model could not have seen.
    Reward hackingA UC Berkeley team reached ~100% on Terminal-Bench, SWE-bench Verified, SWE-bench Pro and WebArena, ~98% on GAIA and 73% on OSWorld — without solving a single taskBenchmark scores can be produced by exploiting the harness rather than the problemGrade outcomes in an isolated environment created fresh for each trial.
    Aggregator inflationOne aggregator claimed 92.5% on ARC-AGI-2 and 91.9% on Terminal-Bench 2.0, contradicting primary sources by 8 to 55 pointsSecond-hand leaderboards are unusable as evidenceCite the primary leaderboard or do not cite.
    pass@1 versus pass^kOn tau-bench retail, GPT-4o measured under 50% pass^1 and roughly 25% pass^8Reliability collapses across repeated trials in a way a single-attempt score hides entirelyReport pass^k. For a device feature, the user runs it repeatedly.
    Device-side axes nobody runsThroughput, latency, battery and accuracy measured hot, on battery, across the real device matrixThis is the evaluation that determines whether the feature ships, and it appears on no public leaderboardAutomate it on physical devices in CI. Emulators will not tell you about thermals.

    Why published benchmark scores mislead for on-device model selection, with primary findings. Sources: contamination analysis, UC Berkeley RDI, SWE-rebench.

    The contamination finding is worth stating in full because it is the cleanest evidence available. On decontaminated task sets collected after model training cutoffs, frontier models land dramatically below their scores on the older public benchmarks — roughly three times better on the contaminated set, and about six times better at locating the relevant edited files without project context, which is the kind of result that is difficult to explain by capability. If contamination distorts frontier results that much, it distorts small-model results at least as much.

    The reward-hacking finding is more alarming and less discussed. A UC Berkeley team reached approximately 100% on Terminal-Bench, SWE-bench Verified, SWE-bench Pro and WebArena, roughly 98% on GAIA and 73% on OSWorld, without solving a single task — via test-harness hooks, configuration leakage, prompt-injected judges and environment-state manipulation. A follow-up catalogued 219 distinct flaws across ten benchmarks. A benchmark number, absent a description of the harness that produced it, carries almost no information.

    What to do instead, following Anthropic's published guidance: build 20 to 50 tasks from your own real failures. Run each trial isolated from a clean environment, because shared state produces correlated failures and inflated scores. Grade the outcome, not the path. Calibrate any model-based judge against human labels, and read sampled transcripts weekly. Run the set in CI on every model change. Then add the axis nobody publishes — the same set, on your real device matrix, hot, on battery.

    Report reliability as pass^k rather than pass@1. On the tau-bench retail environment, GPT-4o measured under 50% pass^1 and roughly 25% pass^8 — a reliability collapse across repeated trials that a single-attempt score hides entirely. For a device feature that a user invokes dozens of times a day, pass^k is the number that describes their experience.

    What This Means for Mobile App Builds Specifically

    Everything above becomes concrete the moment you have to ship it inside an app that goes through store review. Here is the checklist we work through with mobile and product engineering leads, in the order the decisions actually have to be made.

    DecisionWhat it coversWhy it bitesHow we handle it
    App size and downloadModel weights either ship in the bundle or download on first runStore size limits, cellular download warnings, and measurable install-funnel drop-off on multi-gigabyte downloadsPrefer platform-provided models. If you must ship weights, download on demand, resumable, on Wi-Fi, after the first meaningful interaction.
    Device matrixRAM floor, chipset floor, OS version floor, and model-generation fragmentationGemini Nano v3 is reported to need roughly 12GB of RAM plus a flagship chipset, and older flagships remain on v2Define the supported matrix before design. Publish it internally. Test on the floor device, not the flagship.
    Degradation pathWhat the feature does on a device below the floorSilent absence is a support ticket; a broken screen is a reviewShip an explicit fallback — cloud, a reduced feature, or a clear unsupported state.
    Battery and thermal QASustained-use power draw and throttling behaviorThis is where local AI features actually fail in the marketAdd power and thermal assertions to the release checklist alongside crash rate.
    Update cadenceHow a model fix reaches usersWithout a weight hot-swap path, a model bug is an app release on the platform's review scheduleDesign the update mechanism at the same time as the feature, or accept the cadence.
    Observability without exfiltrationYou need eval telemetry; the point of on-device is that content does not leaveNaive instrumentation reintroduces the exact disclosure the architecture was meant to removeAggregate, opt-in, no content. Log latency, throughput, escalation rate, and thermal state — not prompts.
    Support loadLocal inference generates a support category cloud inference does notBattery complaints, storage complaints, and device-specific failures all arrive as ticketsBudget support cost into the crossover analysis. It is part of the device-side total.

    On-device AI decisions specific to shipping mobile applications — Frenchy Digital build checklist, 2026.

    The single highest-leverage decision on that list is the first one: whether you ship weights at all. Using the platform-provided model — Apple's on-device foundation models, or Gemini Nano through AICore — means no weights in your bundle, no separate update path, no download funnel, and the platform vendor owning the thermal and battery behavior that would otherwise be your review problem. The cost is that you get the model the platform gives you, on the generations it supports, with the fragmentation described earlier.

    Shipping your own weights buys control and costs everything else. It is the right call when you need a specific fine-tuned behavior, when you need identical behavior across iOS and Android, or when the platform model does not cover your locales. It is the wrong call when the driver is that a benchmark said your chosen open-weights model scores higher, because see the previous section.

    The second-highest-leverage decision is the degradation path. Define, before design, what the feature does on a device below the RAM or chipset floor. Three options are defensible — escalate to cloud, offer a reduced version, or show an explicit unsupported state — and one is not, which is letting the feature silently fail. Half your install base may sit below the floor, and on Android that is not a hypothetical.

    The store-listing trap

    Privacy claims in a store listing, a privacy label, or a marketing page are commitments, and on-device AI invites the strongest version of them. The failure pattern is consistent: a team ships a genuinely local feature, writes that it processes data on your device, then adds a cloud fallback two releases later for quality reasons, and nobody updates the copy because the fallback only fires occasionally.

    Prevent it structurally rather than through diligence. Route every cloud call through one escalation gate, emit an event on every escalation, alert when the escalation rate for a feature marketed as local exceeds zero, and make the privacy copy reference the gate by name in the code comments so the next engineer finds it. This costs an afternoon and removes an entire category of avoidable exposure.

    Add power draw and sustained thermal behavior to the release checklist next to crash-free rate. An AI feature that ships with an unmeasured battery cost is an AI feature that ships with an unmeasured retention cost.

    Frenchy Digital mobile principle

    Red Flags in On-Device AI Claims

    Every one of these has appeared in a real vendor evaluation, an internal architecture review, or a published article we had to correct. None are hypothetical.

    Red flagWhy it matters
    Runs entirely on-device — with a network call in the traceThe most common false claim in this category. Capture the traffic before you believe the marketing, and before you repeat it in your own privacy policy.
    TOPS quoted as the performance claimPeak arithmetic throughput does not predict tokens per second. If a vendor leads with TOPS and cannot answer a bandwidth question, they have not measured decode.
    Benchmarks run cold, plugged in, on a flagshipEvery number improves under those conditions. Sustained, on battery, on your floor device is the only measurement that predicts user experience.
    Aggregator leaderboard screenshots as evidenceSecond-hand leaderboards have been documented contradicting primary sources by 8 to 55 points. Ask for the primary source or discard the claim.
    A 3B model presented as a frontier substituteIt is not, on multi-step reasoning, and no prompt engineering closes the gap. Ask to run your ten hardest real cases live.
    No plan for devices below the RAM or chipset floorHalf your install base may be below it. Absence of a degradation path means the feature is broken for those users, not merely missing.
    Weights with no update path outside app releasesA model regression becomes a store submission. Confirm how a fix reaches a user in under a week before you commit.
    Quantized to four bits with no task-level accuracy measurementAccuracy recovery falls to 95–98% against BF16 at 7B–14B, and small models lose most. Nobody can tell you what that costs on your task except your own evaluation set.
    Private because it is local, with broad tool accessA local model with access to contacts, files, and messages has a larger blast radius, not a smaller one. Locality is not a security control.
    A privacy claim with no explicit escalation boundaryIf the router can send content to a cloud model, the user has to be able to see it and stop it. Otherwise the claim is unsupportable.

    The Frenchy Digital red-flag list for on-device AI claims, 2026.

    Ask for one artifact instead of a deck: a sustained throughput and battery measurement, on your floor device, on battery, after fifteen minutes of continuous use. A vendor who cannot produce it has not run it, and a vendor who has not run it does not know what they are selling you.

    Frenchy Digital buyer principle

    What It Costs to Build This Properly

    These are the bands Frenchy Digital uses to scope on-device and hybrid inference work in 2026. They assume measurement on real hardware is in scope from the start, because retrofitting a device matrix and a thermal test plan after the feature is built is what makes these projects overrun.

    EngagementRangeTimelineTypical scope
    Discovery + architecture review$9k–$22k2–4 weeksDevice matrix, measured throughput and battery baseline on real hardware, on-device versus cloud crossover model, prioritized feature shortlist
    Single production on-device feature (evals + observability)$30k–$80k5–10 weeksOne feature end to end: model selection and quantization, packaging and update path, evaluation set from real failures, thermal and battery QA, aggregate telemetry
    Multi-workflow platform with hybrid routing and integrations$80k–$200k10–18 weeksSeveral features, local classification and escalation layer, cloud fallback with cost controls, cross-platform device matrix, evals in CI on physical devices
    Enterprise / regulated build (SOC 2 posture, HITL, audit logging)$200k–$450k+16–26 weeksRegulated data handling, human-in-the-loop review, audit logging on both local and escalated paths, documentation package, penetration and privacy review support

    Frenchy Digital cost bands for on-device and hybrid AI engagements, 2026.

    Senior-led delivery runs $150 to $225 per hour, and ongoing retainers run $2,500 to $9,500 per month covering model and runtime upgrades, evaluation-set expansion, device-matrix maintenance as new hardware ships, incident response, and a quarterly technical review. Every engagement carries a 30-day post-launch warranty, and you receive a written scope with a fixed-price phased proposal within 5 business days of the discovery call.

    Included at every tier: the device support matrix, a measured throughput and battery baseline on physical hardware rather than emulators, the on-device versus cloud crossover model with your own volumes in it, an evaluation set built from your real failure cases, and full source-code and IP ownership transferred to you at delivery. Frenchy Digital is a senior-led Black-owned Los Angeles agency and we do not build lock-in.

    A budgeting note that surprises people. The discovery band is the one to spend on first and the one teams most often skip. Two to four weeks of measurement on real devices routinely establishes that the intended feature is either comfortably feasible or clearly not, and it does so before anyone has committed six figures to an architecture. We have run discovery engagements whose entire output was a recommendation not to build the on-device path — and that was the highest-return work in the relationship.

    Limitations and Honest Failure Modes

    On-device inference is a genuine capability with a narrower application than the marketing implies. If you are building a business case, build it on the following rather than on a keynote.

    • The bandwidth gap is not closing on your timeline: A 30 to 50 times difference between mobile and datacenter memory bandwidth is a property of the hardware class, not a software problem awaiting a fix. Sparsely activated architectures reduce bytes read per token, which helps at the margin. They do not change the order of magnitude.
    • The cost case erodes over time: Cloud inference prices for a fixed capability level have fallen at rates measured between 9x and 900x per year (Epoch AI, published March 2025; no 2026 update verified). Any crossover analysis with a multi-year payback is competing against a price curve that moves faster than device hardware does.
    • Quantization hurts the size class you are forced into: Accuracy recovery against BF16 is roughly 95 to 98 percent at 7B to 14B, against roughly 99 percent at 70B and above. The device is the hardest place to quantize and the place you have no choice.
    • Fragmentation is permanent: Gemini Nano v3 is reported to require roughly 12GB of RAM plus a flagship chipset, with older flagships remaining on v2. Your install base will always span multiple on-device model generations, and the split is set by device replacement cycles rather than by your release schedule.
    • Locality is not a security control, and prompt injection is not solved: As of August 2026 there is no mitigation that makes an agent safe against prompt injection; the correct framing is defense in depth and blast-radius reduction. Running locally changes the delivery vector — hostile instructions arrive in a shared document, a web page, or a calendar invite instead of through your API — and a local model with access to contacts, files and messages has a larger blast radius than a sandboxed cloud agent. Allowlist tools, reject arguments the user never supplied, and treat retrieved content as data. Map against the OWASP Top 10 for LLM Applications.
    • Vendor preference numbers are internal evaluations: Apple's 45.6 percent versus 23.3 percent text preference and 61 percent image-understanding preference are Apple's own human evaluations against its own prior baseline. They are informative about generational improvement and say nothing comparative about other vendors' models.
    • The Gemini Nano specifications are secondary-sourced: Parameter counts, context window, quantization and RAM requirements for Nano v3 come from reporting rather than from Google's published specification. Verify against Google documentation before any of it enters a device support matrix or a customer commitment.
    • Benchmarks measure the happy path: Published scores are produced on curated tasks, in controlled harnesses, on cold hardware. None of the failure modes that determine whether your feature ships — thermal degradation, memory pressure, a partial download, a device below the floor — appear on any leaderboard.
    • There is no public dataset for your battery question: The 30 to 60 percent per hour figure is an independent measurement across a sample, not a prediction for your workload on your device matrix. Nobody can give you your number except your own instrumentation.

    None of this argues against on-device inference. It argues for deciding on the basis of a requirement rather than an aesthetic, measuring on real hardware before committing, and building the hybrid path so that a wrong guess about the model tier is a routing change rather than a rewrite.

    Deciding Between On-Device and Cloud Inference?

    Book a free 60-minute discovery call with Frenchy Digital — a senior-led Black-owned LA agency. You leave with a device matrix, a measured throughput and battery baseline, and a fixed-price phased proposal within 5 business days. Call +1 (424) 272-5601.

    Deciding Between On-Device and Cloud Inference?

    Book a free 60-minute discovery call. You leave with a device matrix, a measured throughput and battery baseline, and a fixed-price phased proposal within 5 business days.

    1517 S Bentley Ave Unit 204, Los Angeles CA 90025

    Frequently Asked Questions

    Sources & References

    Chris Machetto - CEO & Founder of Frenchy Digital

    Chris Machetto

    CEO & Founder of Frenchy Digital. Building apps and digital products since 2019 for startups and enterprises across LA, San Francisco, Paris, Geneva, and more globally.