Edge AI Deployment: Running Small Models on Devices
Edge AI deployment runs small models on the device itself. LiteRT, ONNX Runtime, ExecuTorch, and Core ML compared, with a six-step path to hardware.
By Galactic News Editorial · Published 2026-11-17T10:30:45+00:00 · Updated 2026-11-17T10:30:45+00:00
Edge AI Deployment: Running Small Models on Devices
Edge AI deployment means running a model on the device itself, not in the cloud. A phone, a camera, a sensor, or a robot runs inference locally. The model must fit in limited memory, run on limited power, and answer fast. This guide explains how edge deployment works, which runtimes to choose, and the steps that take a trained model onto real hardware.
Why Run Models on the Device
Cloud inference is simple. Send the input to a server and wait for the answer. But it has costs. Network latency adds delay. A camera that needs an answer in 50 milliseconds cannot wait for a round trip. Connectivity fails. A device in a warehouse or a field may have no signal at all. Privacy also matters. Audio and video sent to a server create a data trail. On-device inference keeps the data where it was captured.
Cost is the other driver. Cloud inference charges per request. A fleet of cameras sending frames all day adds up fast. On-device inference costs nothing per request after the hardware is bought. That changes the economics for high-volume use cases such as vision, audio, and sensor monitoring.
The trade is size. A model that runs in the cloud can have billions of parameters. An edge model must fit in megabytes. That is where compression and the right runtime come in. Small models are not a compromise here. They are the design target.
The Edge AI Deployment Stack
An edge deployment has four layers. The model is the trained network. The format is the file the runtime reads. The runtime is the software that executes the model. The hardware is the chip that does the math. Each layer constrains the others. A model format the runtime cannot read is useless. An operator the chip cannot accelerate falls back to slow CPU execution.
Quantization shrinks the model first. Dynamic-range quantization stores weights as 8-bit integers while keeping activations in floating point. Full integer quantization goes further and runs the whole model in 8-bit. Both cut model size to roughly a quarter of the original. The accuracy cost is usually small for vision and audio models. Test it on your own data before shipping.
Delegates and execution providers handle acceleration. A runtime can hand parts of the model graph to a GPU, a DSP, or a neural processing unit. Unsupported operators fall back to the CPU. That fallback can erase the speed gain. Check operator support for your model before you commit to a chip.
Choosing a Runtime
Three runtimes cover most edge deployments. LiteRT is Google's on-device framework. It continues the TensorFlow Lite legacy. ONNX Runtime is the portability choice. ExecuTorch is the PyTorch-native option. Apple developers add Core ML as a fourth.
LiteRT converts PyTorch, JAX, or TensorFlow models into the .tflite format. Its quantizer handles post-training quantization. The runtime runs on CPU, GPU, and NPU hardware. For language models, LiteRT-LM adds an orchestration layer with hardware-accelerated inference, multimodal inputs, and constrained decoding. LiteRT.js brings the same models to the browser with WebGPU and WebNN backends. The install is a single Python package.
ONNX Runtime consumes models in the ONNX interchange format. That makes it the best choice when models come from several training frameworks. It runs on Android, iOS, Windows, and Linux with one API. Its execution providers cover CPU, Android NNAPI, iOS Core ML, CUDA, and DirectML. The risk is export drift. A model converted to ONNX can behave differently from the original. Validate the converted model, not just the source.
ExecuTorch is PyTorch's deployment solution for mobile phones, embedded systems, wearables, and microcontrollers. It fits teams whose training pipeline is already PyTorch. Core ML is the native choice for Apple platforms. It compiles .mlmodel files for the target device and uses Apple's Neural Engine.
Comparing the Main Runtimes
| Runtime | Best starting point | Model format | Acceleration | Main risk |
|---|---|---|---|---|
| LiteRT | TensorFlow or Keras models; Android and Google-centered products | .tflite | CPU, GPU, NPU delegates | TensorFlow Lite to LiteRT package transition |
| ONNX Runtime | Mixed model sources; one API across platforms | .onnx | CPU, NNAPI, Core ML, CUDA, DirectML providers | Export drift and unsupported operators |
| ExecuTorch | PyTorch training pipeline | Exported program | CPU, GPU, NPU backends | Newer ecosystem, smaller operator coverage |
| Core ML | Apple platforms only | .mlmodel, compiled to .mlmodelc | Apple Neural Engine, GPU, CPU | Apple-only; no cross-platform reuse |
There is no universal winner. Start with LiteRT for a TensorFlow model and an Android product. Start with ONNX Runtime when portability across frameworks matters most. Start with ExecuTorch when PyTorch is the primary model ecosystem. Start with Core ML when the product is Apple-only.
Deploying a Model in Six Steps
- Define the constraints. Write down the memory budget, the latency target, and the power budget. A model that needs 500 megabytes will not run on a 256-megabyte device. Get the numbers before choosing a runtime.
- Pick the runtime for the target hardware. Match the runtime to the chip. Check which operators your model uses and whether the runtime supports them on that chip. Unsupported operators fall back to CPU and kill performance.
- Convert the model. Export the trained model to the runtime's format. For LiteRT, convert to .tflite. For ONNX Runtime, export to ONNX. For ExecuTorch, export a program from PyTorch. Keep the source model as the reference.
- Quantize and validate. Apply post-training quantization. Then run the quantized model on real inputs. Compare its outputs with the full-precision model. A small accuracy drop is normal. A large one means the model needs quantization-aware training instead.
- Test on the actual device. Emulators lie about speed. Run the model on the real hardware with the real camera or sensor attached. Measure latency, memory, and power under load. Thermal throttling shows up only on device.
- Plan updates. Models need updates like any software. Build a path to ship a new model file without a full app release where possible. Version the model and log which version each device runs.
Common Mistakes to Avoid
The most common mistake is validating only on a workstation. A model that runs in 20 milliseconds on a laptop GPU can take 400 milliseconds on a phone CPU. Measure on the target device from the start.
The second mistake is ignoring operator coverage. A model with an exotic layer will fall back to CPU for that layer. The fallback often costs more than the acceleration saves. Check the operator list before training, not after.
The third mistake is skipping the update path. A model that cannot be updated becomes stale. Data drifts. Accuracy decays. Ship the update mechanism with the first release.
The fourth mistake is treating quantization as free. It usually costs a little accuracy. For safety-critical use cases, such as medical or automotive, that cost needs measurement and sign-off. Never assume it is zero.
Bottom Line
Edge AI deployment is a chain of small decisions. Define the constraints first. Pick the runtime that matches the hardware. Convert, quantize, and validate on the real device. LiteRT, ONNX Runtime, ExecuTorch, and Core ML each cover a different corner of the market. The right one is the one that runs your model, on your chip, inside your latency budget. Measure on hardware, and build the update path on day one.