The default assumption in enterprise AI is: send data to the cloud, run inference on GPU clusters, return the result. For many workloads, that's correct. For an entire class of use cases, it's wrong — too slow, too expensive, too dependent on connectivity, and too risky from a data sovereignty perspective.
Edge AI flips the model: bring the intelligence to the data, not the data to the intelligence. Small language models (SLMs) and specialised AI agents running on edge hardware — factory floors, retail stores, hospital wards, logistics hubs, autonomous vehicles — deliver real-time decisions without cloud round-trips.
This isn't a compromise. For latency-sensitive, privacy-sensitive, and connectivity-constrained workloads, edge AI is the better architecture. The challenge is the infrastructure: how do you deploy, manage, monitor, and update hundreds or thousands of AI agents running on edge devices?
Why Edge for AI Agents?
Latency
Cloud inference has a physics problem: even with the best network, a round-trip to a cloud region takes 20-80ms. Add inference time (50-500ms for LLMs) and you're at 70-580ms per request. For many use cases, that's fine.
For these use cases, it's not:
- Manufacturing quality control: Camera inspects each product on the assembly line. At 60 products/minute, you have 1 second per product. 500ms cloud round-trip leaves no margin
- Retail real-time: Customer scans an item, agent suggests complementary products. Response must feel instant (under 200ms) or the customer has moved on
- Autonomous robotics: Warehouse robot needs to make navigation decisions every 50ms. Cloud latency is 10x too slow
- Medical alerting: Patient monitoring agent detects anomaly pattern. Alert must fire in under 500ms. Network failure cannot mean missed alert
Edge inference on a local accelerator: 5-50ms. No network dependency. Consistent latency regardless of cloud load or network conditions.
Data Sovereignty and Privacy
Some data should never leave the premises:
- Patient data in hospital wards (GDPR, medical device regulations)
- Production data in manufacturing (trade secrets, industrial espionage risk)
- Video feeds in retail (GDPR, biometric data concerns)
- Financial transaction data at point-of-sale (PCI-DSS, DORA)
Edge AI processes data locally. Raw data never leaves the device. Only results, aggregates, and anomalies are sent to the cloud — if connectivity is available. This isn't just a privacy feature — under DORA and NIS2, it's a regulatory requirement for certain data classifications.
Cost
Cloud GPU inference is expensive at scale:
- 1 million inference requests/day on cloud GPU: ~3,000-8,000 EUR/month
- Same requests on edge accelerator (NVIDIA Jetson, Intel NUC with NPU): ~200 EUR/month amortised hardware cost + ~30 EUR/month electricity
- Cost reduction: 90-95% for high-volume, low-complexity inference
The economics flip when you have high request volume with small models. Cloud is cheaper for low-volume, large-model workloads. Edge is cheaper for high-volume, small-model workloads. Capacity planning must account for both.
Small Models for Edge Deployment
Edge AI doesn't mean running GPT-4 on a Raspberry Pi. It means using the right-sized model for the task:
Edge Model Selection Guide
| Task | Model Size | Hardware | Latency |
|---|---|---|---|
| Text classification | 50-200MB | CPU (any) | 2-10ms |
| Sentiment analysis | 100-300MB | CPU (any) | 5-15ms |
| Named entity recognition | 200-500MB | CPU + 4GB RAM | 5-20ms |
| Product recommendation | 500MB-2GB | CPU + 8GB RAM | 10-30ms |
| Quality inspection (vision) | 100-500MB | NPU/GPU edge | 5-15ms |
| Document summarisation | 1-3GB | Edge GPU (Jetson) | 50-200ms |
| Conversational agent (SLM) | 2-7GB | Edge GPU | 100-500ms |
| Code analysis agent | 3-7GB | Edge GPU + 16GB | 200-800ms |
| FP32 → INT8: | 4x smaller, 2-3x faster, under 1% accuracy loss | ||
| FP32 → INT4: | 8x smaller, 3-5x faster, 1-3% accuracy loss |
A 3B parameter model quantised to INT4 fits in 2GB of RAM and runs inference in under 200ms on a NVIDIA Jetson Orin Nano (a device that costs 250 EUR and draws 15W). That's a conversational agent — understanding context, generating responses, taking actions — running on hardware the size of a credit card.
Kubernetes Recipes
Practical guide for container orchestration and deployment — hands-on patterns you can use today.
View on Amazon →Edge Infrastructure Architecture
Lightweight Kubernetes at the Edge
Full Kubernetes is too heavy for edge devices. Lightweight distributions are purpose-built:
- K3s: Production-grade Kubernetes in under 100MB. Runs on ARM64 and x86. SQLite backend (no etcd needed for single-node). Perfect for edge devices with 2-8GB RAM
- MicroShift: Red Hat's edge Kubernetes, based on OpenShift. Even lighter than K3s. Designed for single-node edge with OTA updates
- KubeEdge: CNCF project specifically for edge computing. Extends cloud Kubernetes to the edge with offline autonomy
# K3s edge deployment (single device)
# Install K3s with GPU support (NVIDIA Jetson)
curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC="
--disable traefik
--disable servicelb
--kubelet-arg=feature-gates=DevicePlugins=true
" sh -
# Deploy NVIDIA device plugin for GPU access
kubectl apply -f nvidia-device-plugin.yaml
# Deploy AI agent
kubectl apply -f agent-deployment.yaml
# Resource footprint:
# K3s control plane: ~300MB RAM, ~0.5 CPU
# NVIDIA plugin: ~50MB RAM
# AI agent (3B model): ~2GB RAM, 1 GPU
# Total: ~2.5GB RAM on a 8GB Jetson device
# Remaining: 5.5GB for OS, model cache, and headroom
Fleet Management
One edge device is easy. 500 edge devices across 50 locations is an operations challenge. Fleet management is essential:
- Rancher / Fleet: Manage hundreds of K3s clusters from a central control plane. Deploy workloads, update configurations, and monitor health — all from a single dashboard
- ArgoCD + ApplicationSets: GitOps for edge. Define the desired state in Git, ApplicationSets deploy to all matching edge clusters. Adding a new edge device means registering it with the fleet — existing workloads deploy automatically
- OTA updates: Model updates distributed via container registry pull. Edge devices check for new images periodically (or on push notification when connected). Rolling updates ensure no downtime — old model serves while new model loads
Fleet management topology
Cloud (Central)
- Fleet Manager (Rancher)
- Model Registry (Harbor)
- Monitoring Aggregator (Thanos)
- Policy Repository (Git)
Edge Sites (50 locations)
Each site
- 1-10 edge devices
Each device
- K3s + AI agent + local model cache
Sync pattern
Cloud → Edge
- Model updates, config changes, policy updates
Edge → Cloud
- Metrics, logs, anomaly alerts, aggregated results
Offline capability
- Edge operates independently for 72+ hours
- Local model cache serves all inference
- Metrics buffered locally, synced when connected
- No degradation of inference capability when offline
Model Distribution Pipeline
Getting models to edge devices efficiently:
- Central training: Models trained in the cloud on GPU clusters (full resources available)
- Optimisation: Model quantised (INT8/INT4), converted to ONNX or TensorRT format, optimised for target edge hardware
- Validation: Optimised model validated against accuracy benchmarks. If accuracy drops below threshold, quantisation is adjusted
- Registry push: Optimised model packaged as OCI container image, pushed to Harbor registry
- Edge pull: Edge devices pull new model image on schedule or notification. Rolling update: old model serves until new model is loaded and validated
- Edge validation: Edge device runs local validation (accuracy check against reference inputs). If validation fails, automatic rollback to previous model version
- Monitoring: Model performance monitored at edge. Drift detection triggers retraining pipeline in the cloud. Cycle repeats
Agent Patterns for Edge
Pattern 1: Autonomous Decision Agent
Makes decisions locally without cloud consultation:
- Use case: Manufacturing quality inspection. Camera captures product image, agent classifies pass/fail, triggers sorting mechanism
- Model: Fine-tuned vision model (MobileNet/EfficientNet), 50-200MB, INT8 quantised
- Latency: 5-15ms per inference
- Cloud interaction: Sends daily quality reports and anomaly alerts. Zero cloud dependency for real-time decisions
Pattern 2: Hybrid Reasoning Agent
Handles routine tasks locally, escalates complex tasks to cloud:
- Use case: Customer service kiosk. SLM handles FAQ, product lookup, and basic troubleshooting. Complex issues (complaints, returns, escalations) forwarded to cloud LLM
- Model: 3B SLM (Phi-3 Mini or similar), INT4 quantised, 2GB
- Latency: 100-300ms for local responses
- Cloud interaction: 15-20% of queries escalated to cloud. 80% handled entirely on-device. Graceful degradation: if cloud is unreachable, agent handles all queries locally with honest "I can help with basic questions" framing
Pattern 3: Collaborative Agent Swarm
Multiple agents on different edge devices collaborating locally:
- Use case: Warehouse robotics. Navigation agents on each robot, coordination agent on edge server, inventory agent connected to WMS
- Communication: Local mesh network (no cloud round-trip). Agents share positions, task assignments, and obstacle maps in real-time
- Cloud interaction: Hourly sync of task completions and metrics. Model updates distributed via fleet management. Route optimisation models retrained in cloud weekly
Operationalizing ML Models: MLOps for Scalable AI
Turn ML prototypes into robust, scalable systems using real-world tools. In collaboration with Starweaver.
Start on Coursera →Security at the Edge
Edge devices have unique security challenges — they're physically accessible, potentially in untrusted locations:
- Signed images: Edge devices only run signed container images. Image signature verified before deployment. Prevents supply chain attacks and tampering
- Encrypted storage: Model weights and inference data encrypted at rest. If device is stolen, data is inaccessible without keys
- Network isolation: Edge devices connect to cloud via VPN/mTLS. No direct internet access. Agents cannot reach arbitrary external services
- Tamper detection: Hardware secure element (TPM/TEE) validates boot chain. If device firmware is tampered with, it refuses to boot the AI workload
- Minimal attack surface: K3s with only required components. No SSH daemon (use Kubernetes exec for remote access). Immutable OS (Flatcar, Talos) where possible
- Agent action boundaries: Same trust and control plane guardrails apply at edge. Rate limiting, output validation, and audit logging — even when offline. Logs synced to cloud when connected
What Open Empower Delivers
- Edge AI assessment: Identify workloads suited for edge deployment. Model sizing, hardware selection, cost-benefit analysis vs. cloud inference
- Edge Kubernetes setup: K3s/MicroShift deployment with GPU support, model serving, and offline capability on your target edge hardware
- Fleet management: Rancher/Fleet + ArgoCD for managing edge device fleets at scale. GitOps model distribution, OTA updates, and rolling deployments
- Model optimisation: Quantisation, ONNX conversion, and hardware-specific optimisation. Accuracy validation pipeline
- Edge security: Image signing, encrypted storage, network isolation, tamper detection, and agent safety boundaries for edge deployments
- Hybrid architecture: Local-first agent design with cloud escalation, offline capability, and store-and-forward telemetry
Not every AI workload belongs in the cloud. Some belong where the data lives. Let's design your edge AI infrastructure.
AI Readiness Checklist
50-point interactive checklist covering strategy, data, infrastructure, governance, and people. Score your organisation's AI readiness.
Get Free Checklist →
Luca Berton
