Save this video free

EfficientML.ai Lecture 6 - Quantization (Part II) (MIT 6.5940 Fall 2026)

MIT HAN Lab · 1:01:48 · Watch on YouTube

Part of Massachusetts Institute of Technology 6.5940 EfficientML.ai. See all 19 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 develops post-training quantization (PTQ) and quantization-aware training (QAT) as ways to reduce model precision while preserving accuracy, moving from per-tensor and per-channel scales to grouped formats such as NVIDIA Blackwell NVFP4 and microscaling (MX). It also explains calibration through clipping and rounding, the straight-through estimator for QAT, binary and ternary arithmetic using XNOR/popcount, and reinforcement-learning-based mixed-precision assignment for balancing accuracy, latency, size, and energy.

Key takeaways

Chapters

0:00 Review: K-Means, Pruning, and Integer Linear Quantization
5:25 PTQ Granularity: Per-Tensor Versus Per-Channel Scales
13:15 Group Quantization and Two-Level Scaling for Low-Bit Formats
17:10 NVFP4 and MX Formats: Counting Scale Bits
25:45 Activation Calibration and Selecting a Quantization Range
31:00 Clipping with KL Divergence and Rounding Beyond Nearest
37:45 QAT Setup: Fake Quantization and Full-Precision Weights
42:55 Straight-Through Estimator and QAT Accuracy Recovery
45:45 Binary Quantization: One-Bit Weights and Scaling
49:55 XNOR-Net: Replacing Binary Dot Products with XNOR and Popcount
54:45 Ternary Quantization and Trainable Ternary Weights
57:25 Hardware-Aware Mixed Precision and Lecture Takeaways

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

Transcript excerpt

0:03 Okay. All right. Let's get started with efficient ML lecture six. We are going to talk about the second part of quantization. So today we'll first review what we learned last time. It's been a week. So we will review the linear quantization the algorithms and then we'll introduce the very important technique for recovering the accuracy after quantization which is PTQ post training uh quantization. This is without having to retrain the model. Okay, first quantize the model and then without any retraining you try to recover the accuracy. How to colleate it? How to do channel quantization? How to do group quantization? uh what is the magic before behind Nvidia blackwells the NV FP4 Nvidia's FP4 format uh why is it so

0:53 powerful and how do we uh recover the accuracy and next we are going to introduce quantization aware training techniques how to uh simulate the inference time quantization during the training and during the finetuning process to recover the accuracy later we'll talk about binary and turnary quantization and automatic mix precision quantization. Okay. So last lecture we talk about these three parts the starting from a floatingoint weights floatingoint arithmetic uh we quantize the weight by k means uh using integer storing the index into the code book. So it's integer weights but floatingoint code book. The arithmetic is still floating point arithmetic.

1:43 Um for the last part of the lecture uh last Thursday we talked about linear quantization using linear weights and also uh fully integer arithmetic. So a review of K means based weight quantization. Remember we have a index which is two bits because we have four entries in the code book. Four entries corresponding to four colors. Uh the first look means clustering cluster similar weights to the same cluster and

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.