Save this video free

EfficientML.ai Lecture 11 - TinyEngine and Parallel Processing (MIT 6.5940 Fall 2026)

MIT HAN Lab · 1:15:33 · Watch on YouTube

Part of Massachusetts Institute of Technology 6.5940 EfficientML.ai. See all 20 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

The lecture connects TinyEngine's MCU inference work to parallel-processing techniques that improve neural-network execution without changing model outputs. It covers loop ordering, tiling and unrolling; SIMD, pthreads, OpenMP and CUDA; and convolution methods including im2col, in-place depthwise convolution, layout selection and Winograd, with examples reporting speedups of roughly 12x, 20x, 3x and 100x for different optimizations.

Key takeaways

Chapters

0:00 TinyEngine and the Edge AI Resource Gap
5:08 Matrix Multiplication Loop Reordering Improves Data Locality
9:50 Cache Tiling Fits Matrix Multiplication to Memory Hierarchy
16:19 Loop Unrolling Trades Code Size for Lower Control Overhead
23:00 Instruction Sets and SIMD Data-Level Parallelism
34:15 CPU Multithreading and Pthreads Row Partitioning
40:47 OpenMP Parallelizes Matrix Multiplication with Directives
43:11 CUDA Threads, Blocks and Grids Map Work to GPUs
48:06 CUDA Memory Spaces and Shared-Memory Tiled Matrix Multiplication
54:24 Tensor Core MMA Accelerates Tiled Matrix Multiplication
59:02 Im2col Converts Convolution into Matrix Multiplication
1:03:29 In-Place Depthwise Convolution Cuts Peak Activation Memory
1:05:25 NHWC and NCHW Layouts Match Different Convolutions
1:08:33 Winograd Convolution Reduces Multiplications for Small Filters
1:13:19 TinyEngine, TinyChatEngine and Parallel Computing Resources

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:01 Okay. All right everyone let's get started with today's lecture. So today we are going to talk about uh tiny engine and the parallel processing. So if you'll still remember last week we discussed uh MCNET which is about you know compress uh uh deploying models uh compress both weights and activations to fit in into very age devices like microcontrollers with uh hundreds of kilobytes of ondevice memory and so that's mainly about the model part like how do we optimize the model architectures how do we pruning how do we compress the model and do uh new architecture search. So today we are going to talk about the uh inference engine part of the MCUNET the tiny

0:49 engine and we will also cover uh something related to parallel computing such as uh mod thread computing and a brief introduction to the uh GPU uh GPU and CUDA coding. So uh this is the overview of today's lecture. uh we will begin with edge AI and the constraints of microcontrollers. So you can uh regard it as a very brief recap of the last lectures contents and the main focus for today's parallel computing include you know loop optimizations uh SIMD computing and multi- threading and CUDA as well. So we will cover inference optimizations such as uh image to column uh which you

1:37 are already very familiar with it in deep learning course and we will also talk about in place steps wise convolution uh memory layout and uh another optimization named the window convolution. So let's get started with a brief introduction uh to the edge AI and some motivation of running neuronet networks directly on resource constraint devices. So as we all know edge devices are almost everywhere. Uh it can be used in smartphones, vehicles, robots, uh your

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, MIT HAN Lab.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.