Pidoku
29On-Device and Edge Inference
On this page

On-Device and Edge Inference

Module 297 lessons~8h 45m

Lessons, in order

29.a The Device Landscape and Its LimitsThe device landscape is the set of machines people run models on outside the data centre, and the limits each one sets. This module goes deeper than the overview in 15.e: how the engines … 1h 29.b llama.cpp and GGUF from the Insidellama.cpp is the C/C++ inference engine behind most local LLM use: Ollama, LM Studio, many phone apps and desktop tools run it, directly or through its library. GGUF is its file format. 15.e … 1h 30m 29.c Apple Silicon and MLXApple silicon is the most common high-bandwidth, large-memory hardware outside the data centre: every Mac since 2020 and every recent iPhone and iPad. Its defining feature is unified memory: … 1h 15m 29.d Mobile Runtimes: ExecuTorch, LiteRT, ONNX Runtime GenAIA mobile runtime is the engine an app embeds to run a model on a phone, tablet, laptop, browser or embedded board. In 2026 three open runtimes cover most of the field, plus the … 1h 15m 29.e NPUsAn NPU is an accelerator for the matrix and vector maths of neural networks, built into nearly every 2026 phone and laptop SoC. It gives up the generality of a GPU (no graphics, limited … 1h 15m 29.f Quantization for the EdgeModule 13 and 10.l teach quantization in general: number formats, GPTQ and AWQ, FP8 and FP4, KV-cache quantization. This lesson is about what changes on devices, where quantization stops … 1h 15m 29.g Hybrid On-Device and CloudHybrid inference is the design where a feature runs on the device when it can and in the cloud when it must, with the user seeing one product. It is how all three OS vendors now ship AI: 1h 15m

About this module

Running models on phones, laptops, desk machines and embedded boards, in depth: the limits each device sets, llama.cpp and GGUF from the inside, Apple silicon and MLX, the mobile runtimes (ExecuTorch, LiteRT, ONNX Runtime GenAI) and OS models, NPUs, quantization for small devices, and splitting work between the device and the cloud. 15.e gives the overview of local engines; this module goes deeper.

Lessons#

#LessonTime
29.aThe Device Landscape and Its Limits60 min
29.bllama.cpp and GGUF from the Inside90 min
29.cApple Silicon and MLX75 min
29.dMobile Runtimes: ExecuTorch, LiteRT, ONNX Runtime GenAI75 min
29.eNPUs75 min
29.fQuantization for the Edge75 min
29.gHybrid On-Device and Cloud75 min

Previous: Correctness, Determinism and Quality

↑↓ navigate↵ openesc close

100% drag to pan · scroll or pinch to zoom · double-click to zoom in