Module 13 · Lesson 7 of 8Pro
Smaller models: pruning and distillation
- Level
- Advanced
- Reading time
- 18 min
When you finish this page you can
- Explain why zeroing weights with unstructured pruning leaves the file size and speed of a dense model unchanged.
- Prune a PyTorch model with a mask, retrain it, and make the pruning permanent.
- Distil a large model into a small one with temperature-softened labels and a two-part loss.
- Choose between training small, pruning and distilling from three checks: file size, time on the target device and per-class accuracy.
Builds on 3 lessons
Start with Module 09, lesson 1128 minVideo lesson · coming soon
A 102 MB model for a 25 MB slot
Our biggest sale ever · Black Friday
Flat 50% Off
Pro
Continue reading
Unlock every course, now and later
- System Design, live
- AI Engineering, live
- Data Engineering, live
- Machine Learning Engineering, live
- Inference Engineering, coming soon
- AI Research, coming soon
- Performance Engineering, coming soon
- Agent & Harness Engineering, coming soon
- LLM Fine-tuning, coming soon
- LLM Pre-training & Post-training, coming soon
- Reinforcement Learning, coming soon
- AI Infrastructure & Platform Engineering, coming soon
- AI Evaluation & Safety, coming soon
- Forward Deployed Engineering, coming soon
- Cloud Computing, coming soon
- DevOps, coming soon
50% off · Annual and Lifetime
BLACKFRIDAY50Applied at checkout
View all plansAlready Pro? Sign in