Lite / Independent Engineering Research / Week 23
Week 23: Embedded machine learning concepts
This week you will
- Describe training versus inference and why inference must fit memory, time and energy budgets.
- Count MACs and memory footprint of a small network.
- Explain int8 quantisation and measure its accuracy cost.
Lessons
- Training versus inference: counting the cost · about 45 min
Training a speech model took a data centre. Running it fits on a chip in a light switch. What makes the two so different? - Quantisation: fewer bits, smaller models · about 45 min
Store every weight in 8 bits instead of 32 and the model is four times smaller. How much accuracy do you lose? Sometimes almost none. - Fitting a model into memory, time and energy · about 50 min
A smartwatch must recognise a gesture in 20 ms, using under 1 mJ, with 64 KB of RAM. Can your model do it? Work it out before you build it.