Staging environment
Free Lesson

PyTorch Hooks from A to `full_backward_hook`

45 min
Jul 2, 2025 11:00 AM
Virtual (Zoom)

In this video

What you'll learn

Just what are PyTorch Hooks?

What are hooks in PyTorch? And have you already used them? (Surprisingly: yes)

Why are hooks useful?

Learn the most common ways hooks are currently used and why

Learn to implement them yourself

It's only useful if you know how to do it! We'll make sure by the end you can write your own hooks.

Why this topic matters

Hooks are important in modern Deep Learning, but many (as proven by an earlier X poll) have either: never written one, or even know *what they do*. Truthfully, if you are using anything in the modern DL space (big model inference, large-scale training) hooks make their way everywhere. In this lesson, we're going to dive into them and how they're being used around you.

You'll learn from

Zach Mueller

Zach Mueller

Instructor, Technical Lead at Hugging Face

Previously at

Hugging Face
Accenture
See all products from Walk with Code