Understanding PyTorch Buffers
Sebastian's books: https://sebastianraschka.com/books/ This video explains what PyTorch buffers are, a concept that is particularly useful when dealing with GPU computations and implement large models like LLMs. Code notebook: https://github.com/rasbt/LLMs-from-scratch/blob/main/ch03/03_understanding-buffers/understanding-buffers.ipynb GitHub discussion about "triu" in the forward pass: https://github.com/rasbt/LLMs-from-scratch/discussions/282 Link to the Studio GPU environment to follow along: https://lightning.ai/seraschka/studios/understanding-pytorch-buffers?section=recent --- To support this channel, please consider purchasing a copy of my books: https://sebastianraschka.com/books/ --- https://twitter.com/rasbt https://linkedin.com/in/sebastianraschka/ https://magazine.sebastianraschka.com