Most ML projects pick a model first and find hardware later. TinyML reverses the order. On a microcontroller the firmware, the working buffers and the model share the same few hundred kilobytes, so the memory budget is the first design input.
We wrote a longer guide on TinyML at dev-station.tech , with every source linked. Here is the short engineering version.
How big are real TinyML models?
The MLPerf Tiny benchmark publishes a reference model for each of its tasks:
Keyword spotting, DS-CNN: 52.5 KB, target 90% top-1 accuracy
Visual wake words, MobileNetV1: 325 KB, target 80% top-1 accuracy
Anomaly detection, fully connected autoencoder: 270 KB, target 0.85 AUC
The runtime is small too. Google states that the core LiteRT for Microcontrollers runtime fits in 16 KB on an Arm Cortex-M3, with no operating system, no standard C or C++ library and no dynamic memory allocation.
What does the toolchain look like?
Train a small model that uses only supported operations.…