# Understanding PyTorch Buffers
- [understanding-buffers.ipynb](understanding-buffers.ipynb) explains the idea behind PyTorch buffers, which are used to implement the causal attention mechanism in chapter 3
Below is a video tutorial of me explaining walking through the code:
[](https://www.youtube.com/watch?v=PetlIokI9Ao)