Home / Insights / Generative AI and LLMs

Generative AI and LLMs

Small Language Models On-Device for Business Apps: What Became Practical by Mid-2026

Two years ago, on-device language models were a demo. By mid-2026 the three big platform vendors ship them inside the operating system, and open-weight models in the 2–4 billion parameter range run acceptably on ordinary hardware. This guide explains what is now practical, what still is not, and how a product team should decide where each AI feature runs.

TopicsGenerative AI and LLMsMobile App DevelopmentArchitecture and Modernization

Key takeaways

  • On-device small language models (SLMs) are now a platform feature: Apple’s Foundation Models framework, Google’s ML Kit GenAI APIs on Gemini Nano and Microsoft’s Phi Silica on Copilot+ PCs all expose an OS-level model to third-party apps.
  • The sweet spot is bounded text work on data already on the device: summarising, rewriting, extraction into typed structures, classification and short offline assistance. Open-ended reasoning and broad factual recall still belong to larger server models.
  • Expect uneven coverage: each platform model is limited to specific devices, languages and quotas, so every on-device feature needs a server or ‘graceful degradation’ fallback.
  • Open-weight models such as Gemma 3n and Phi-4-mini give you one model across iOS, Android, Windows and desktop, at the cost of shipping and updating the weights yourself.
  • Decide per feature, not per product: a simple routing rule based on privacy, latency, connectivity and task complexity usually gives the best mix of quality and cost.

This article is for CTOs, product leads and architects who are deciding, in 2026, whether a planned AI feature should run on the user’s device, on a server, or both. It focuses on small language models (SLMs), the 1–8 billion parameter class that fits in a few gigabytes of memory, rather than on computer vision or speech, which have run on-device for years.

Much of the earlier guidance on this topic (including our own piece on when a small model beats a frontier model and the early look at Apple Intelligence and Gemini Nano) was written when vendor APIs were in preview. The situation changed during 2025 and the first half of 2026: the platform vendors now ship models inside the OS and document them for third-party developers, and the open-weight models you can embed yourself became genuinely usable at the 2–4B effective-parameter size. At PoliteTech we build these features as part of our Private AI work, where the common thread is that prompts and documents stay inside infrastructure the client controls, and a user’s phone or laptop is the most private infrastructure of all.

The sections below cover what each platform actually provides, which business tasks fit the capability envelope, a decision method for routing work between device and server, implementation details that catch teams out, and the costs and risks to plan for.

What the platform vendors now ship to third-party apps

The biggest change since 2024 is that you no longer have to bundle a model to get one. All three major client platforms expose a system model, which means zero download for the user, memory shared with the OS, and (on two of the three) no inference fee.

Apple: the Foundation Models framework

Apple announced the Foundation Models framework in June 2025 and, according to Apple’s newsroom announcement, it gives any app direct access to the on-device model behind Apple Intelligence, with inference that is “free of cost”, works offline, and can be called “with as few as three lines of code” from Swift. The framework documentation describes the on-device model as suited to summarisation, entity extraction, text refinement, short dialogue and creative content, and points developers to larger server models when they need more reasoning or context. Two features matter most for business apps: guided generation, where the @Generable macro makes the model produce an instance of a Swift type you define rather than free text, and tool calling, where the model can invoke functions you expose, such as a local database search. The practical constraint is device eligibility: Apple Intelligence requires iPhone 15 Pro or later, or an iPad or Mac with an M1 chip or later, so a meaningful share of your iOS users may not have it.

Google: ML Kit GenAI APIs on Gemini Nano

On Android, Google’s ML Kit GenAI APIs expose Gemini Nano through the AICore system service. The documented, task-specific APIs are summarisation (bulleted summaries of articles or chats), proofreading, rewriting in different tones, and image description, with a lower-level prompt API for custom text and multimodal prompts that also supports typed structured output and tool declarations. The documentation is explicit about limits that shape product design: AICore enforces a per-app inference quota and a battery-use quota, inference only runs while your app is the foreground application (background use returns an error), language availability varies by device configuration, and different Gemini Nano versions “can produce different output for the same prompt”. Device coverage is a list of recent flagship phones from Google, Samsung and several other manufacturers, not the whole Android base.

Microsoft: Phi Silica on Copilot+ PCs

On Windows, Phi Silica is a hardware-accelerated on-device model exposed through the Windows App SDK in C# and C++/WinRT. It targets the NPU on Copilot+ PCs, where the model is pre-installed, and offers text generation, summarise and rewrite skills, text-to-table, configurable content filtering and LoRA adapters you train in the cloud and run locally. Access is a Limited Access Feature that requires a token from Microsoft, and the feature is not available in China, which matters if you sell into that market.

What this means in one table

PlatformModel and APIHardware floorNotable constraints (as documented)
iOS, iPadOS, macOSFoundation Models framework, Apple’s on-device modeliPhone 15 Pro or later; M1 or laterApple Intelligence must be enabled; server models recommended for heavy reasoning and long context
AndroidML Kit GenAI APIs on Gemini Nano via AICoreListed recent flagships onlyPer-app and battery quotas; foreground only; language coverage varies by device; output varies across Nano versions
WindowsPhi Silica via Windows App SDKCopilot+ PC with NPU (GPU path with prerequisites)Limited Access Feature token; not available in China
Any (bring your own)Open-weight SLM (Gemma 3n, Phi-4-mini, Qwen, Llama) via llama.cpp, MLX, LiteRT or similarRoughly 2–4 GB free memoryYou ship, update and secure the weights; no OS-level quota but battery and thermal management is yours

Action: pull your analytics for device models and OS versions before any planning meeting. The share of users who can run the platform model decides whether it is a primary path or a nice-to-have.

Open-weight SLMs: one model across every platform

Platform models are convenient but fragmented. If you need the same behaviour on an iPhone, a mid-range Android device, a Windows laptop and a kiosk, the alternative is to embed an open-weight model and run it with a portable runtime.

What the current generation looks like

  • Gemma 3n (Google, released June 2025) is designed for phones, laptops and tablets. According to Google’s developer guide, the E2B and E4B variants run with “as little as 2GB (E2B) and 3GB (E4B) of memory” despite raw parameter counts of 5B and 8B, because of selective parameter loading; the model documentation gives the E2B effective load as 1.91B parameters. It accepts text, image and audio input, has a 32K-token context window, was trained on more than 140 languages, and is released under terms that allow commercial use. Google lists llama.cpp, Ollama, MLX, Google AI Edge and Hugging Face Transformers among the supported runtimes.
  • Phi-4-mini-instruct (Microsoft, February 2025) is a 3.8B-parameter dense model with a 128K context window under an MIT licence. Its model card is refreshingly candid: the model “simply does not have the capacity to store too much factual knowledge”, non-English quality is lower, it can invent function names in tool-calling scenarios, and long conversations can become repetitive. Those are the limitations of the whole class, not just this model.
  • Qwen and Llama families offer comparable sizes; the choice is usually decided by licence terms, language coverage for your users (Vietnamese, Thai and Indonesian coverage varies a lot between families) and benchmark results on your own task.

Why the research community expects this to grow

A June 2025 position paper from NVIDIA researchers, Small Language Models are the Future of Agentic AI, argues that most calls inside agentic systems are narrow, repetitive tasks for which SLMs are “sufficiently capable, more suitable, and more economical”, and that systems needing general conversation should mix several models rather than route everything to one large one. Whatever you think of the title, the operational argument matches what we see in client work: the cost and latency of an AI feature are dominated by a handful of high-volume, low-complexity calls, and those are exactly the ones an SLM handles.

Trade-offs of bringing your own model

FactorPlatform model (Apple, Google, Microsoft)Embedded open-weight SLM
Download and install sizeNone added to your appTypically 1–3 GB extra, usually downloaded after install
Behaviour consistencyChanges when the OS updates the modelFixed until you ship a new version
Cross-platform parityDifferent model and prompts per platformSame model everywhere
Device coverageRecent flagships onlyAny device with enough memory, with your own performance testing
Fine-tuningLoRA adapters where the vendor allowsFull control over tuning and quantisation
Operational burdenLowYou own updates, storage, thermal and battery behaviour

Action: if more than roughly a third of your active devices cannot run the platform model, prototype an embedded SLM early, because its download and memory behaviour will shape onboarding and the app’s size.

Which business tasks fit an on-device SLM

Vendor documentation and our own evaluations point to the same envelope. A task fits an on-device SLM when the input is short to medium, the output is constrained, the knowledge needed is in the prompt rather than in the model’s memory, and an occasional imperfect answer is cheap to correct.

Good fits

  • Summarising content that is already on the device: notes, chat threads, call transcripts, inspection reports. The ML Kit and Apple APIs both list summarisation as a first-class task.
  • Extraction into typed structures: turning a dictated note into fields (date, customer, amount, follow-up), using guided generation on Apple or structured output on the prompt API. The schema does the quality work; the model only fills it.
  • Classification and tagging: routing a support message, flagging a form as incomplete, labelling an expense. Apple’s content-tagging model and Phi Silica’s text-to-table are built for exactly this.
  • Rewriting and tone adjustment: field staff drafting a customer message, a technician cleaning up a report.
  • Offline assistance: natural-language search over local data, guided forms, and in-app help where connectivity is unreliable, which is a daily reality for logistics and field-service apps in Southeast Asia.

Poor fits

  • Questions that depend on broad world knowledge or current events; the Phi-4-mini card says plainly that small models cannot store much factual knowledge.
  • Multi-step reasoning over long documents; Apple’s own documentation directs developers to server models for “more reasoning capabilities and context size”.
  • Any task where an error has legal, financial or safety consequences without a human check.
  • Anything that must run in the background on Android, since AICore blocks background inference.

An illustrative example

For example, a 40-vehicle delivery company might want drivers to dictate a short note at each drop (“left with neighbour at number 12, gate code changed”) and have it filed as structured proof-of-delivery data. That is a near-ideal on-device task: short input, fixed schema, data that should not leave the phone unnecessarily, and a workflow that must keep working in a basement car park. The same company’s weekly route-optimisation report, which reasons over thousands of stops, belongs on a server.

Action: write down each candidate AI feature as a one-line task with input length, output type and consequence of error. The poor fits usually reveal themselves in that sentence.

How to decide where each feature runs

The mistake we see most often is deciding at product level (“we are an on-device-first app”) rather than per feature. A routing rule that engineers can apply mechanically works better.

A decision table

QuestionIf yesIf no
Does the input contain personal or confidential data that has no business reason to leave the device?Prefer on-device; server only with explicit consent and a data-processing basisEither
Must the feature work offline or on poor connectivity?On-device, with the result queued for optional server enrichment laterEither
Is the output a short, schema-constrained structure or a rewrite of the input?On-device SLM is usually sufficientLean to server
Does the task need more than a few thousand tokens of context or multi-step reasoning?Server modelOn-device
Will the call volume be high and the margin thin?On-device removes per-call inference costCost is not the deciding factor
Does a wrong answer carry financial, legal or safety risk?Either, but with human confirmation in the UIEither

Hybrid is the normal outcome

Apply the table honestly and most products end with a hybrid: a handful of high-frequency, privacy-sensitive tasks on-device, a server path for the rest, and the same server path as fallback when the device cannot run the model. Apple’s documentation describes exactly this split between the on-device model and larger server models, and our guide to choosing a private AI deployment option covers the server side of that hybrid, including self-hosting open models in your own VPC when the data is sensitive but the task is too heavy for a phone.

Design the fallback first

Because eligibility differs by device, OS version, language and quota, the fallback is not an edge case; it is a primary path for a large share of users. Decide, per feature, whether the fallback is a server model (same behaviour, different privacy posture, needs consent), a reduced feature (manual form instead of extraction) or hiding the feature entirely. The user experience should tell people what happened: the ML Kit documentation’s quota and background errors, for instance, should surface as “try again in a moment” or a manual path, never as a silent failure.

Action: for each feature, record the on-device path, the fallback, and the trigger that switches between them. That document becomes your test plan.

Implementation details that catch teams out

The APIs are simple to call; the engineering is in everything around them.

Prompting and structured output

  • Treat the schema as the contract. On Apple, define a @Generable type; on Android’s prompt API use structured output; with embedded models use grammar-constrained decoding in the runtime. Free-text parsing with regular expressions is where on-device projects go wrong.
  • Keep instructions short. Small models follow concise instructions better than long policy documents, and every instruction token costs latency on a phone.
  • Version your prompts. Apple’s documentation includes guidance on updating prompts for new model versions, and the Android documentation warns that different Gemini Nano versions produce different output. You need an evaluation set that runs against each OS release.

Evaluation

Build a labelled set of a few hundred real (anonymised) inputs per task before you choose a model, and score each candidate on it: platform model, two or three open-weight SLMs at different quantisation levels, and the server model you would otherwise use. Measure exact-match or field-level accuracy for extraction, human-rated quality for rewriting, and latency on your slowest supported device, not on the developer’s laptop. Apple ships evaluation tooling and Instruments support for token and latency analysis; for embedded models, record tokens per second and peak memory on each device class.

Resource management on the device

  • Load the model lazily and release it when the feature is idle; a resident 2–3 GB model competes with everything else on the phone.
  • Respect quotas and battery. Android’s AICore enforces both; on other platforms you must set your own limits so a looping feature does not drain a battery.
  • Download weights for embedded models after install, on Wi-Fi, with a visible progress state and the option to defer. Microsoft’s guidance to show a consent dialog before downloading a multi-gigabyte model and to use plain language such as “optional AI model” is good practice everywhere.

Safety and content filtering

Platform models include guardrails you cannot remove; embedded models include nothing unless you add it. For user-facing generation, add an input check (is this request in scope?) and an output check (does it contain anything the policy forbids?), both of which a tiny classifier or the same SLM can run. Apple’s documentation on improving the safety of generative output and Phi Silica’s configurable content filter show the vendors expect you to do this work, not just rely on the model.

A step-by-step rollout

  1. Pick one feature from the good-fit list with clear success metrics.
  2. Build the evaluation set and score three candidates, including the server baseline.
  3. Implement the on-device path with structured output and the agreed fallback.
  4. Ship to a small cohort with telemetry on eligibility, latency, errors and fallback rate (never the content itself).
  5. Compare quality and cost against the server baseline over two to four weeks before widening the rollout.

Costs, risks and what to budget for

On-device inference removes the per-call API bill, but it does not remove cost; it moves it. The figures below are illustrative assumptions for planning, not benchmarks.

Where the money goes

  • Engineering time: building a hybrid feature (on-device path, fallback, evaluation, telemetry) is typically more work than a single server call; assume one and a half to two times the effort of a server-only version of the same feature as a planning rule, then validate it in the first sprint.
  • Device testing: a small lab of real devices across the memory and chip tiers you support, plus a cloud device farm for breadth. Emulators are not adequate for latency or thermal behaviour.
  • Model updates: for embedded models, a release process for new weights, including storage and bandwidth for multi-gigabyte downloads.
  • Server fallback: you still pay inference for ineligible devices and heavy tasks, so the saving is proportional to the share of calls that stay on-device.

Risks to manage

RiskMitigation
Platform model changes behaviour after an OS updateAutomated evaluation on each beta OS; versioned prompts; feature flags to disable a path quickly
Language coverage differs from your user baseEvaluate in every supported language on real devices; route unsupported languages to the server path
Quality is below the server baseline for some inputsConfidence rules (for example, missing required fields) that trigger the fallback or a human check
App size and battery complaintsDeferred downloads, idle unloading, explicit opt-in for the on-device model
Regulatory expectations on AI transparencyTell users when content is AI-generated and keep a record of model versions; Microsoft already notes that some Windows AI text output may carry an invisible watermark and that labelling obligations are the developer’s responsibility
Vendor access controlsPhi Silica requires a Limited Access token; plan the request lead time and the regional gaps into the roadmap

Where the business case is strongest

In our experience the case is strongest when three things coincide: high call volume with thin margins, data that users and regulators would rather keep local, and connectivity that cannot be assumed. Field service, healthcare documentation, logistics and retail store operations tick all three; a marketing content tool for office workers with fast internet usually does not, and a server model remains the simpler choice there. If you need the private posture without the device constraints, a self-hosted SLM in your own cloud is the middle path, and the same evaluation set serves both decisions.

A readiness checklist for an on-device AI feature

Use this before committing a feature to the roadmap.

  1. We have device and OS analytics and know what share of active users can run each platform model.
  2. The feature is described as a bounded task with a defined output schema and a stated consequence of error.
  3. We have an evaluation set of real, anonymised inputs and have scored the platform model, at least one embedded SLM and the server baseline on it.
  4. Latency and peak memory are measured on the slowest device we support, in each language we support.
  5. The fallback path is designed, and the trigger conditions (ineligible device, quota error, low confidence, unsupported language) are written down.
  6. Prompts are versioned and the evaluation runs automatically against OS betas and model updates.
  7. Input and output safety checks exist, even where the platform provides its own.
  8. Telemetry captures eligibility, latency, errors and fallback rate without capturing user content.
  9. Users are told when a feature uses AI, when a model download is needed, and when their data leaves the device.
  10. The budget includes device testing, model update logistics and the server fallback bill.

If you can tick all ten, the feature is ready to build. If you cannot tick the first three, it is not yet ready to estimate. For web-delivered products, the same thinking applies with a different runtime, which we covered in our article on in-browser AI with WebGPU and built-in browser models.

Frequently asked questions

Do on-device models cost anything per call?

The Apple Foundation Models framework is described by Apple as providing inference free of cost, and embedded open-weight models have no per-call fee. The costs are engineering time, device testing, model distribution and the server fallback for devices that cannot run the model.

Can we fine-tune the platform model for our domain?

Partially. Microsoft documents LoRA adapters for Phi Silica, and Apple has published adapter training tooling for its on-device model, but the base model, its guardrails and its update schedule stay with the vendor. For full control over tuning you need an embedded open-weight model.

How accurate are small models compared with a frontier model?

On narrow, schema-constrained tasks with the needed context in the prompt, a 2–4B model is often close enough that the difference does not change the business outcome. On open-ended reasoning and factual recall the gap is large; the Phi-4-mini model card explicitly notes that small models cannot store much factual knowledge. Measure on your own evaluation set rather than relying on public benchmarks.

What about users with older phones?

Platform models require recent hardware (for example, iPhone 15 Pro or later for Apple Intelligence; a list of recent flagships for Gemini Nano). Older devices need either an embedded SLM that fits their memory or the server fallback. Your analytics decide which path is primary.

Does running on-device solve our privacy obligations?

It helps, because the content never leaves the device, but it does not remove obligations around transparency, user consent for the fallback path, or how you log and store results afterwards. Treat on-device inference as a strong data-minimisation measure, not as a substitute for a privacy review.

Should we start with the platform model or an embedded one?

Start with the platform model if your user base is largely on eligible devices and you can accept platform-specific behaviour; it is the fastest route to a shipped feature. Choose an embedded model when cross-platform parity, older devices or behaviour stability matter more than convenience.

Sources and methodology

Guidance reflects PoliteTech delivery experience. The external references below informed specific points in this article.

  1. Apple Newsroom: Apple Intelligence gets even more powerful with new capabilities across Apple devices (9 June 2025) — accessed 10 November 2026. Foundation Models framework announcement; free, offline on-device inference; device eligibility for Apple Intelligence
  2. Apple Developer Documentation: Foundation Models framework — accessed 10 November 2026. On-device model task suitability, guided generation with @Generable, tool calling, guidance to use server models for heavier reasoning and context
  3. Google ML Kit: GenAI APIs (on-device, Gemini Nano) — accessed 10 November 2026. Summarisation, proofreading, rewriting, image description and prompt APIs; AICore quotas, foreground-only inference, device and language coverage caveats
  4. Google Developers Blog: Introducing Gemma 3n developer guide (26 June 2025) — accessed 10 November 2026. Gemma 3n memory footprint (about 2 GB E2B, 3 GB E4B), modalities, language coverage, supported runtimes
  5. Hugging Face: microsoft/Phi-4-mini-instruct model card (February 2025) — accessed 10 November 2026. 3.8B parameters, 128K context, MIT licence, documented limitations on factual knowledge, non-English quality and tool calling
  6. Microsoft Learn: Phi Silica in the Windows App SDK — accessed 10 November 2026. On-device model on Copilot+ PCs, Limited Access Feature, regional availability, LoRA adapters, content filtering, model download consent guidance
  7. arXiv: Small Language Models are the Future of Agentic AI (Belcak et al., June 2025) — accessed 10 November 2026. Position that SLMs are sufficient and more economical for most repetitive agentic calls, and that heterogeneous model mixes are the natural design

Which of your AI features could run on the device instead of the cloud?

We evaluate platform and open-weight small models against your real data, design the on-device and fallback paths, and build the feature end to end.